Closed ewal closed 7 years ago
You can do something like the following:
var tr = cloudinary.Transformation.new();
tr.crop('crop').width(1000).height(1000).chain().crop('limit').height(500);
tag = cl.image(cloudinaryId, tr);
Please let me know if this works for you?
Very cool. I'll try it and let you now. Didn't realize that it was possible to pass transformations to the image method that way but in hindsight I could of course have tested.
(Tried this with both
imageTag
andImageTag
). I'm trying to chain a transformation on an imageTag but get an error sayingUncaught Unknown cloud_name
when using.chain()
before calling.toHtml()
.Example code:
Should it be possible to chain transformations this way or am I doing it wrong?