What if I am doing relatively simple manipulations like taking a single image, resizing it, adding a colored border, and rotating it over a transparent background?
Are there any benchmarks for performance?
I wouldn't mind using an API, but I keep running into differences in how things are done.
For instance, using the command line I did this very simply:
Code: Select all
convert rose: -resize 200x200 -mattecolor red -frame 5x5 -background none -rotate 10 roseOut.png
The result was beautiful.
But try making it look nice in PerlMagick:
Code: Select all
#!/usr/bin/perl
use Image::Magick;
use strict;
my $image = new Image::Magick;
my $x = $image->Read( "rose.png" );
warn "$x" if "$x";
$x = $image->Resize( width=>200, height=>200 );
warn "$x" if "$x";
$x = $image->Set( mattecolor => "red" );
warn "$x" if "$x";
$x = $image->Frame( geometry=>"5x5+0+0" );
warn "$x" if "$x";
$x = $image->Rotate( degrees=>10, color=>"none"); # color sets background color
warn "$x" if "$x";
$x = $image->Write( "roseOut.png" );
warn "$x" if "$x";
The image is not happy.
The rotated image has a non-transparent background and the resize operation creates lines through the image.