I have not tried, but would be surprised if it didn't work with -distort.
Regions are handled at a higher level than the other operators.
Yeap they work. But with some problems.
But user specified control points are relative to an image that contains a layer offset. as such
control points may not be working as you expect and could be different from distort to distort.
For example
Code: Select all
convert logo: -region 150x150+200+80 -distort SRT 10 show:
shows the reagion is being rotated but around the original center of the image (due to image offsets). BUT
Code: Select all
convert logo: -region 150x150+200+80 -distort SRT '75,75, 1,10' show:
rotates the image with a center at 75,75 pixels relative to the top left coordinates of the image!
Also when regions are pasted back into the original image, they do not appear to use layer offsets, but are always positioned according to the original region offset. (composite geometry, not layer page offset)
Unless someone cares to take the time to work out exactly HOW regions should work and be applied, then I think regions will not be very useful with distorts.
I also thing I'll need to look at a refinement of how coordinates are to be handled in SRT when a layer offset is present. I think the center should always default to the center of the actual image and not the center of the virtual canvas. On the other hand user coordinates probably should be relative to image for -distort, and relative to the virtual canvas for +distort.
Comments welcome.