Code: Select all
convert checks.png -matte -virtual-pixel transparent -distort Perspective "0,0,25,25 0,90,0,90 90,0,70,25 90,90,90,65" checks_distort.png
Code: Select all
use Image::Magick;
$checks = Image::Magick->new;
$checks->Set(size=>"90x90",matte=>"True");
$checks->Read('checks.png');
$checks->Distort(virtual-pixel=>"transparent", distort=>"Perspective", points=>"0,0,25,25 0,90,0,90 90,0,70,25 90,90,90,65");
$checks->Write("PNG24:checks_distort.png");
I'm using ActivePerl 5.8.8 and ImageMagick 6.3.6 Q16 under Windows XP Pro.