cloudex icon indicating copy to clipboard operation
cloudex copied to clipboard

Using eager transformations in image upload.

Open radglob opened this issue 5 years ago • 1 comments

I haven't been able to upload images using eager transformations. For my application, I just want to resize images to a certain width by default. Cloudinary seems to support this, and while I understand how to fetch images with certain dimensions using Cloudex.URL.for, I haven't been able to get resizing to work on upload.

I might be missing something obvious.

radglob avatar Jan 09 '19 20:01 radglob

I realise this is quite an old issue but this had me stuck for a while tonight. I've created a pull request that adds :eager to the UploadedImage struct, this should allow you to access the eagerly transformed images.

It's also important to use the Rest API syntax for the transform properties: "c_crop,w_500,h_500,g_face" instead of a map or keyword list as per some of the Cloudinary SDKs.

ClementineOldfield avatar Jul 23 '20 11:07 ClementineOldfield