Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using eager transformations in image upload. #52

Open
radglob opened this issue Jan 9, 2019 · 1 comment · May be fixed by #69
Open

Using eager transformations in image upload. #52

radglob opened this issue Jan 9, 2019 · 1 comment · May be fixed by #69

Comments

@radglob
Copy link

radglob commented Jan 9, 2019

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.

@ClementineOldfield
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants