Page 1 of 1

distort - Please correct my mistake

Posted: 2016-07-06T01:35:52-07:00
by agriz

Code: Select all

convert card.png \( 9555947511400691.png -alpha set -virtual-pixel transparent -distort Perspective '0,0 0,46  118,0 82,0  0,205 138,148  118,205 222,90'  \) -gravity none -geometry +0+0 -compose Over -composite output.png
Image
Image
Image

Re: distort - Please correct my mistake

Posted: 2016-07-06T09:25:40-07:00
by fmw42
What is your IM version and platform? Please always provide that.

You do not say where you want the image placed!

Try this (+distort and -layers merge). See the examples on the distort documentation page

Code: Select all

convert card.png \( 9555947511400691.png -alpha set -virtual-pixel transparent +distort Perspective '0,0 0,46  118,0 82,0  0,205 138,148  118,205 222,90'  \) -layers merge +repage output.png
And adjust your coordinates appropriately.

Re: distort - Please correct my mistake

Posted: 2016-07-06T21:04:59-07:00
by agriz
Thank you sir. Best fit works good. I am using the latest version.