PM Distort syntax for Arc

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
gubach
Posts: 45
Joined: 2013-12-13T11:13:29-07:00
Authentication code: 6789

PM Distort syntax for Arc

Post by gubach »

After it was clarifyed that Arc and Polar are available via PM the question how to translate the
command line syntax remains. Here examples for the simplified and complete Arc syntax:

a) Arc with simplified syntax
command line: convert input.png -virtual-pixel HorizontalTile -background black -distort Arc 360 output.png

PM: $image->Distort(method=>'Arc', points=>'360', 'virtual-pixel'=>'HorizontalTile', background=>'black');


b) Arc with complete syntax
command line: convert input -virtual-pixel HorizontalTile -background black -distort Arc '360 0 2000 0' output

PM: $arc_string = '360 0 ' . $arc_ring_radius . ' 0';
$image->Distort(method=>'Arc', points=>"$arc_string", 'virtual-pixel'=>'HorizontalTile', background=>'black');


Both PM statements are not working; no error messages but $image remain unchanged. What went wrong?
Thank you!
gubach
Posts: 45
Joined: 2013-12-13T11:13:29-07:00
Authentication code: 6789

Re: PM Distort syntax for Arc

Post by gubach »

Please help with the PM syntax because writing an intermediate png costs a lot of time in my huge batch runs. I cant find any PM arc examples on Google. Thank you very much!
Post Reply