On Tue, 3 Nov 2009 21:22:46 +0100 ademmler <n...@ademmler.com> 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 ) <a.thys...@griffith.edu.au> ----------------------------------------------------------------------------- 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/ _______________________________________________ Magick-developers mailing list Magick-developers@imagemagick.org http://studio.imagemagick.org/mailman/listinfo/magick-developers