Image Optimizations via Node.Js SDK
I am applying some image optimization options like fecth_format and quality during upload using the Node.js SDK. The resulting URL doesn't come with these parameters. Are these optimizations already applied or do I have to manipulate the URL on the server/client-side to apply these transformations via the delivery URL?
-
Hi Paul,
I assume that you are applying an incoming transformation that modifies the uploaded image before it is stored in your account. Therefore, the image that will be stored in your account after using incoming transformations, is the original image with all the requested transformations applied. That is why you only receive the original URL to the asset, which will contain the transformations applied to the original.
If you want to keep the original image that you are upload and also transform it to create different derived/transformed versions, then you need to use eager transformations rather than incoming transformations.
Please see the following section in the documentation for more information on eager transformations:
https://cloudinary.com/documentation/transformations_on_upload#eager_transformationsHope this is helpful!
Thanks,
Wissam
0 -
Hi Wissam,
this was helpful. Thank you!
0
Post is closed for comments.
Comments
2 comments