Extra file extensions
Using Java Cloudinary 1.6 libraries, uploading image with .jpg file extension has additional .jpg appended to the secure_url and url values. The following is the Cloudinary Response:
{"tags":[],"bytes":731646,"etag":"77132eca4e99f5807bd1b2ea2f064e32","width":1000,"public_id":"root/product-details/1466740026347_rototilling-back-yard.jpg","format":"jpg","type":"upload","original_filename":"file","url":"http://res.cloudinary.com/openrental/image/upload/v1489869782/root/product-details/1466740026347_rototilling-back-yard.jpg.jpg","version":1489869782,"height":680,"resource_type":"image","created_at":"2017-03-18T20:43:02.000Z","signature":"1198542190e80385c476235a27c20ccc6789a62a","secure_url":"https://res.cloudinary.com/openrental/image/upload/v1489869782/root/product-details/1466740026347_rototilling-back-yard.jpg.jpg"}
-
Hi Dan, when you upload your images while setting a public_id parameter that includes an extension, this extension becomes part of the image ID (i.e., public ID) and not the desired format for delivery. Image's format can be set upon delivery using a transformation. For converting the image's format before it is saved on your account, please use incoming transformations.
Please sign in to leave a comment.
Comments
1 comment