cloudinary / pkg-cloudinary-core

Distribution repository for the Cloudinary JavaScript library. Cloudinary is an end-to-end solution for all your image and video needs.
MIT License
54 stars 28 forks source link

Width: auto transform parameter do not work #12

Closed moimael closed 7 years ago

moimael commented 7 years ago

HI,

I just migrated from cloudinary node version to this one, and the url generation seem broken in some case.

If I pass a transform object to cl.url with width: 'auto', it's not present as w_auto in the url, while the other transform params are present.

Thanks.

nadavofi commented 7 years ago

Hi, can you try specifying a crop mode? You can use the default "scale" mode, e.g.:

cl.url("sample.jpg", {width: "auto",crop: "scale"})

Let us know if it's working for you.

nadavofi commented 7 years ago

I'm closing this thread due to the time elapsed. Please feel free to follow up here or by opening another issue, or contact Cloudinary's support