(12-27-2023, 01:00 PM)rich2005 Wrote: (12-27-2023, 09:25 AM)Alan Wrote: Is there any option that we create a new layer that has the curvy shape and save it as xcf so any image pasted to this layer will look curvy?
I did it with the plug-in-curve-bend but it takes a lot of data which is not practical.
If there is any easier way please let me know and thank you in advance.
Maybe a possibility. Another way to bend is a displacement map. While the on canvas tool is a GEGL function the devs do have a compatibility plug-in-displace which might be easier than curve-bend to code.
Just a quick example:
Yes, but you have to be able to generate that displace map...
In fact I looked into that problem(*), and for performance reasons, you want to create the displace map in one go (not pixel by pixel, and possibly even avoid line by line), and you can generate a single gradient only if the displace value depends only on the X or Y coordinate (and not on both) which is isn't the case here.
To make things a bit more difficult, nothing says that the required transform is linear (IMHO you would need at least one more line in the middle in additions to the two at the top/bottom, and you want the reciprocal transform, because a displace map doesn't tell where a pixel of the source goes, but where a pixels in the result comes from.
So, not unfeasible, but to the person ho undertakes it, best of luck.
(*) because my
ofn-flatten-cylinder script uses a displace map, which in this case is workable for the simple cases.