Named transformation with user-defined variables not working
I'm working with Strict Transformations mode disabled and I'm trying the following named transformation (portfolio_color_replacement) with user-defined variables:
My original image looks like this:
If I try to use the replace color effect like this https://res.cloudinary.com/torrevia/image/upload/e_replace_color:0000ff:20:d22210/samples/dessert-on-a-plate I get the following result:
But it doesn't work with user-defined variables: https://res.cloudinary.com/torrevia/image/upload/$tocolor_!rgb:0000ff!,$tolerance_20,$fromcolor_!rgb:d22210!/t_portfolio_color_replacement/samples/dessert-on-a-plate. I'm getting a 400 error in $tolerance variable:
I already tried to separate these variables value assingment with / and with comma and also tried changing the variables order but nothing worked.
Can somebody help with this ? Why I'm getting this error ?
Best Answer
-
Hi @fahico98 ,
Thanks for reaching out.
So I see you are defining
rgb
in your variables but no need to this, see this https://res.cloudinary.com/torrevia/image/upload/$tocolor_!0000ff!,$tolerance_20,$fromcolor_!d22210!/e_replace_color:$tocolor:$tolerance:$fromcolor/samples/dessert-on-a-plateHope this helps.
Kind Regards,
Thomas
0
Answers
-
That worked... Thank you very much 👍️
0