perspective distorsion problem
Posted: 2011-06-16T23:33:10-07:00
dear friends, got an issue with perspective distorsion,maybe you can help me
1) ive been using imagemagick for a long time, all works great, now im trying for the first time to do a simple perspective distorsion, like any of these, in php :
$command= "convert ".$source." -matte -virtual-pixel transparent -distort Perspective '7,40 124,330 4,124 4,223 85,122 400,123 85,2 200,30' ".$target;
$command= "convert ".$source." -matte -virtual-pixel transparent -distort Perspective '0,0,0,0 0,90,0,90 90,0,90,25 90,90,90,65' ".$target;
but nothing happens, no change in the result, anything im doing wrong? my version of imagemagick is the latest
2) the other thing is, if i have a sequence like this
$command= 'convert -size 1000x631 xc:none ';
$command .='-draw "image over 0,0 0,0 \''.$source1.'\'" ';
$command .='-draw "image over 0,0 0,0 \''.$source2.'\'" ';
$command .='-draw "image over 0,0 0,0 \''.$source3.'\'" ';
$command.=' -quality 85 '.$target;
can i apply to one of those sources a perspective distorsion with resizing included and include it all in the same command? if so, how?
thanks so very much for your help as always
Jav
1) ive been using imagemagick for a long time, all works great, now im trying for the first time to do a simple perspective distorsion, like any of these, in php :
$command= "convert ".$source." -matte -virtual-pixel transparent -distort Perspective '7,40 124,330 4,124 4,223 85,122 400,123 85,2 200,30' ".$target;
$command= "convert ".$source." -matte -virtual-pixel transparent -distort Perspective '0,0,0,0 0,90,0,90 90,0,90,25 90,90,90,65' ".$target;
but nothing happens, no change in the result, anything im doing wrong? my version of imagemagick is the latest
2) the other thing is, if i have a sequence like this
$command= 'convert -size 1000x631 xc:none ';
$command .='-draw "image over 0,0 0,0 \''.$source1.'\'" ';
$command .='-draw "image over 0,0 0,0 \''.$source2.'\'" ';
$command .='-draw "image over 0,0 0,0 \''.$source3.'\'" ';
$command.=' -quality 85 '.$target;
can i apply to one of those sources a perspective distorsion with resizing included and include it all in the same command? if so, how?
thanks so very much for your help as always
Jav