cloudinary

Bulk upload large images to cloudinary

ぃ、小莉子 提交于 2019-12-06 02:04:37
Is there a way to bulk upload images to my cloudinary account? I am looking to import 100 images of 3MB each at a time. Thank you. You can use Cloudinary's upload API to upload images one by one. Here is a sample upload code in Python . If your images are already in a public location, you can specify the remote HTTP URL as the file parameter instead of sending the actual image's data. This allows much faster uploading. If your images are in an Amazon S3 bucket, images can be fetched by Cloudinary directly from S3 for reaching even higher upload performance. You can also run your upload code

Using jCrop with cloudinary through rails 4 to crop before creating image

99封情书 提交于 2019-12-05 19:21:01
I've been at this for some time now. I"m using cloudinary to upload photos and am trying to implement a cropping feature using jcrop on a photo create action. After I implemented cloudinary I followed railscasts #182 on Jcrop. I think I'm having problems getting the new cropped parameters (x,y,w,h) back to the uploader before the image is saved. Update: I'm not even getting the values put into the f.text_fields. When I move the cropper around, there should be new values right? Here's a pic of what it looks like with empty fields: Also when I submit the photo, now I'm getting conflicting

How can I use Cloudinary to output a url with transformation as a string?

旧城冷巷雨未停 提交于 2019-12-05 16:04:55
I'll preface this by saying that may be approaching this incorrectly. What I'm trying to do is pass the url w/transformation into JS using a data- attribute. Currently, I'm using the following to generate the image tag: = cl_image_tag(image.asset.filename.to_s, transformation: "scroller", :"data-medium" => image.asset.filename.to_s) Which produces this: <img src="http://res.cloudinary.com/bucket/image/upload/t_scroller/v1373070863/s1ufy3nygii85ytoeent.jpg" data-medium="s1ufy3nygii85ytoeent.jpg"> What I'd like to be able to do is have it output this (Utilizing the t_medium named transition I've

How to associate direct upload fields with a model using Cloudinary in Rails?

我与影子孤独终老i 提交于 2019-12-05 11:24:50
With Cloudinary and their Carrierwave plugin I can write a form in my view that will upload an image to their cloud and bind it to a model attribute called picture , like so: <%= form_for(@post) do |post_form| %> <%= post_form.hidden_field(:picture_cache) %> <%= post_form.file_field(:picture) %> <% end %> This works. But I can't figure out how to bind the attribute to the model while following their documentation for direct uploads in Rails . Their example uses a form_tag that isn't bound to a model: <%= form_tag(some_path, :method => :post) do %> <%= cl_image_upload_tag(:image_id) %> ... <%=

How to show progress while upload file to Cloudinary in Android?

与世无争的帅哥 提交于 2019-12-05 08:11:15
问题 I implemented the uploading function the file to Cloudinary. Cloudinary cloudinary = new Cloudinary(Constants.CLOUDINARY_URL); try { FileInputStream is = new FileInputStream(new File(filePath)); Uploader uploader = cloudinary.uploader(); Map map = uploader.upload(is, new HashMap()); return map; } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } Now I would like to show the uploading percent in progress bar while upload. But I can't find

Upload image to Cloudinary using PHP Codeigniter

寵の児 提交于 2019-12-04 22:09:34
Can someone help me how to upload an image into Cloudninary using CodeIgniter? I don't know how to install the Cloudinary to CodeIgniter and use it because I'm new to PHP CodeIgniter. Please help me thank you. Update! I was able to solve it. See the first answer. cheers First You need to download the cloudinary php script here https://github.com/cloudinary/cloudinary_php . Now extract the downloaded file and copy the files from src folder. Now in you codeigniter app, go to appplication folder and then third_party folder. Inside the third_party folder create a folder name cloudinary, and inside

How to upload files from dropzone to cloudinary

不打扰是莪最后的温柔 提交于 2019-12-04 15:18:30
var myDropzone = new Dropzone("#product-image-drpzone", { // Prevents Dropzone from uploading dropped files immediately autoProcessQueue: false, addRemoveLinks: true, autoQueue: false, acceptedFiles: '.jpg,.png,.jpeg,.gif', url: 'https://api.cloudinary.com/v1_1/something/image/upload', //put it in the main url file once done maxfilesexceeded: function (file) { ToasterWrapper.errorMessage('You have uploaded more than 4 images!', false); return; }, init: function () { // You might want to show the submit button only when // files are dropped here: myDropzone = this; var imagesArr = [];

How to show progress while upload file to Cloudinary in Android?

怎甘沉沦 提交于 2019-12-03 20:33:16
I implemented the uploading function the file to Cloudinary. Cloudinary cloudinary = new Cloudinary(Constants.CLOUDINARY_URL); try { FileInputStream is = new FileInputStream(new File(filePath)); Uploader uploader = cloudinary.uploader(); Map map = uploader.upload(is, new HashMap()); return map; } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } Now I would like to show the uploading percent in progress bar while upload. But I can't find any callback function to get uploading percent. Please help me. Thanks. cprakashagr answer actually

How to implement jQuery direct upload to Cloudinary on node.js

感情迁移 提交于 2019-12-03 06:44:34
I'm trying to implement direct uploads to Cloudinary via their jQuery plugin to a Node.js application, and am wondering if anyone can help me close some gaps in their examples. Here's the blog post that explains how to do it: http://cloudinary.com/blog/direct_image_uploads_from_the_browser_to_the_cloud_with_jquery In the "Other development frameworks and advanced usage" section, the part I'm stuck on is: "Set data-form-data to be JSON representation of the upload API params. The mandatory fields are api_key, timestamp, signature and callback.", and more specifically: "The signature needs to be

Android: Uploading a photo in Cloudinary with progress callback in HttpURLConnection

China☆狼群 提交于 2019-12-01 04:16:20
I'm trying to modify the open source library of cloudinary so that I can listen to the progress of the upload of my photo. The library class contains a MultipartUtility java class that I modified to listen to the progress of the upload. The original code before modifications can be found on github: https://github.com/cloudinary/cloudinary_java/blob/master/cloudinary-android/src/main/java/com/cloudinary/android/MultipartUtility.java I literally modified it to resemble the code from another cloud service CloudFS that supports progress when uploading files / images etc: https://github.com/bitcasa