Skip to content

Using eager transformations in image upload. #52

Open

Description

@radglob

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.

Activity

  1. ClementineOldfield commented on Jul 23, 2020

    @ClementineOldfield

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions