Named transformation with user-defined variables not allowed
I'm trying to define a named transformation for my web application user profile picture section for a cropped image, I defined the followed transformation in the transformation builder:
I'm working with Strict Transformations mode enabled and I tried to crop a public image with "upload" Delivery type just like this:
But the given image was not delivered and I got an "401 Unauthorized" error. Debuging with Cloudinary Media Inspector Google Chrome extension it looks like this:
It shows the user defined variables ($w, $h, $x, $y) values assignment transformations as not allowed transformations.
If I set the "pp_crop" transformation with static values instead variables it works fine.
Can somebody help me with this ?
Thanks in advance.
Best Answer
-
Hi there,
I think the reason this is not working is that you have strict transformations enabled. Dynamic transformations with strict transformation enabled will require a signed delivery URL. Please take a look at the following documentation to learn more:
https://cloudinary.com/documentation/delivery_url_signaturesGive that a try and let me know if you have any questions.
Kind regards,
Tia
Helpful Links For You
š¬ Share questions, connect with other users in our Cloudinary Community forums and Discord server!
š§āš Join our Cloudinary Academy for free courses, workshops and other educational resources.
š Read our documentation for in-depth details on Cloudinary product features and capabilities
š° Check out the Cloudinary blog for the latest company news and insights1
Answers
-
Hi there,
Thanks for reaching out.
In your delivery URL, I see that you are putting a slash ( / ) between each transformation. You should use a comma instead
.../$w_100,$h_100,$x_50,$y_50/t_pp_crop/...
Can you make those adjustments and let me know how it goes?
Kind regards,
Tia
Helpful Links For You
š¬ Share questions, connect with other users in our Cloudinary Community forums and Discord server!
š§āš Join our Cloudinary Academy for free courses, workshops and other educational resources.
š Read our documentation for in-depth details on Cloudinary product features and capabilities
š° Check out the Cloudinary blog for the latest company news and insights1 -
0
-
Hi team,
Thank you for your answer.
I already tried with commas instead slashes but a got the same error.
0 -
Thank you so much !
0 -
Hi Fahico,
Great to know that this has been sorted out.
If you have more questions please feel free to reach out!
Best Regards,
John
0