Best way to apply Perspective distorted image as a layer?
Posted: 2011-03-01T09:49:44-07:00
I looked for this question in old posts but didn't come up with quite the same issue.
I know this is a common question, though - what is the best way to perspective distort (or for that matter, apply any complex distortion) an image and then add it as a layer into another image?
I've got perspective distortion working :
But looking at the Layers explanation page http://www.imagemagick.org/Usage/layers/ I'm not sure how to first distort the image then add it into the second image all in one command.
If I distort the image as a seperate step, then I would imagine it would be difficult to grabbed only the warped portion (since parts will be blank from distort) and carry that over into a seperate image.
I know this is a common question, though - what is the best way to perspective distort (or for that matter, apply any complex distortion) an image and then add it as a layer into another image?
I've got perspective distortion working :
Code: Select all
convert trial.jpg -matte -virtual-pixel transparent -distort Perspective "0,0 335,945 0,1127 292,1499 1539,1127 1208,1229 1539,0 1208,399" trail_pers.png
If I distort the image as a seperate step, then I would imagine it would be difficult to grabbed only the warped portion (since parts will be blank from distort) and carry that over into a seperate image.