distort - Please correct my mistake

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
agriz
Posts: 237
Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308

distort - Please correct my mistake

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: distort - Please correct my mistake

Post 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.
agriz
Posts: 237
Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308

Re: distort - Please correct my mistake

Post by agriz »

Thank you sir. Best fit works good. I am using the latest version.
Post Reply