x/y offset for tiling
I can tile an overlay image using the steps mentioned here:
But I would then like overlay the same image with an x offset so that the new image overlays appear in between the existing overlay images.
The desired effect would be similar to this: The heart is shifted left by 50% of it's width before it is tiled.

Adding an x_<> transform doesn't work:
https://res.cloudinary.com/demo/image/upload/
l_cloudinary_icon,w_1.5,c_lpad,e_brightness:200,o_50/w_0.3,fl_relative/fl_layer_apply.tiled/
l_cloudinary_icon,w_1.5,c_lpad,e_brightness:200,o_50/w_0.3,fl_relative/fl_layer_apply.tiled,x_200/
kitten_fighting.gif
-
Hi,
Would this be what you are looking for?
Best,
Mo
0 -
Thanks Mo, that looks like exactly what I'm looking for.
0 -
Great Alinea,
Glad I could help.
Let us know if you need any further assistance.
Best,
Mo
0 -
Hi Mo, I'm back!
I managed to get your example working with text layers:
Which I was really pleased with until I removed /$w_w/l_1px/ which stopped it from working and I don't know why!
However, that's not the main reason for coming back to you (although I'd still like to know the answer to increase my Cloudinary knowledge):
I took the url above and tried to get it to work on my account:
https://res.cloudinary.com/ffspud/image/upload/$w_w/l_1px/l_text:Arial_25:INTERNAL%20USE%20ONLY,a_-45,co_black,o_20/fl_layer_apply/l_text:Arial_25:INTERNAL%20USE%20ONLY,a_-45,co_black,o_20/fl_layer_apply,x_100/fl_layer_apply.tiled/
v1614164281/website/development/swirls-WATERMARKBASE.jpgBut it didn't work, so I tried to use the basic sample image in my account: https://res.cloudinary.com/ffspud/image/upload/sample
But that also didn't work.
Can you tell me where I'm going to wrong please.
0 -
Hi Alinea,
The reason the transformation failed when you removed /$w_w/l_1px/ was because when that overlay (l_1px) was removed, then there was an unnecessary /fl_layer_apply/ (a bit later in the URL). Removing that one would make it work:
https://res.cloudinary.com/eyalkatzt/image/upload/l_text:Arial_25:INTERNAL%20USE%20ONLY,a_-45,co_black,o_20/l_text:Arial_25:INTERNAL%20USE%20ONLY,a_-45,co_black,o_20/fl_layer_apply,x_100/fl_layer_apply.tiled/sampleThe reason why it failed on your account is that this transformation did include the `l_1px` part, which could only work if your account had a resource with the public_id of `1px`, and since that doesn't seem to be the case at the moment, that's why the transformation failed. Fortunately, it seems like that part is actually unnecessary, and therefore you should be able to safely remove it, similar to the example above:
https://res.cloudinary.com/ffspud/image/upload/l_text:Arial_25:INTERNAL%20USE%20ONLY,a_-45,co_black,o_20/l_text:Arial_25:INTERNAL%20USE%20ONLY,a_-45,co_black,o_20/fl_layer_apply,x_100/fl_layer_apply.tiled/v1614164281/website/development/swirls-WATERMARKBASE.jpgLet me know if this works for you?
Thanks,
Itay0
Post is closed for comments.
Comments
5 comments