Re: PerlMagick: Transform may not work
Anthony Thyssen <[email protected]> Wed, 4 Nov 2009 15:14:52 +1000
| Newsgroups | gmane.comp.video.image-magick.devel |
|---|---|
| Message-ID | <20091104151452.6f6373d8@wraith> |
On Tue, 3 Nov 2009 21:22:46 +0100 ademmler <[email protected]> wrote: | Hi, | | I trying to use PerlMagick to rotate an image from his center. | Therefore I want to use the "transform" function - unfortunatley | nothing happens. | Below my sample. | | Thx Alex | | use strict; | use Image::Magick; | | my $file = $ARGV[0] || die "Missing input file\n"; | | my $test = Image::Magick->new(); | $test->Set(density => '150'); | $test->Read($file); | | $test->Transform(rotate=>'5', gravity=>'Center'); | | $test->Write('rot-'. $file); | try using the new distort function with the SRT method See details in http://www.imagemagick.org/Usage/distorts/#srt and the function in the "demo.pl" of the "demos" perl examples directory usally this is installed in /usr/share/doc/ImageMagick-perl-*/demo/demo.pl (search for Distort). The example is for an 'arc' distort but the same principles apply Anthony Thyssen ( System Programmer ) <[email protected]> ----------------------------------------------------------------------------- Scotty: I beamed the whole kit and kaboodle over to the Klingons engine room... where they'll be no tribble at all. Startrek -- "The Trouble With Tribbles" ----------------------------------------------------------------------------- Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/