[magick-users] disable antialias on rotations with perlMagick
Ian
perlMagick at zestysoft.com
Wed Jul 26 16:59:03 PDT 2006
>> I was wondering if there was a way to turn off antialiasing for
>> rotation,
>> or a different method to rotate an image w/o otherwise altering the
>> data?
>
> You could try to do an affine transform. You'll have to look up the
> parameters for a rotate transform, though.
>
> GNS
>
Thanks for the advice.
I gave this a try:
$image->AffineTransform(rotate=>1);
But the AA still happens. I've even tried:
$image->Read('testimage.jpg');
$image->Write('testimage.png');
$image = Image::Magick->new();
$image->Read('testimage.png');
$image->Set(antialias=>'False');
for (my $i = 0; $i < 45; $i++)
{
$image->AffineTransform(rotate=>1);
}
$image->Write("blurrymess.png");
in case the jpg lossy format was somehow messing with things, but that
didn't help either.
More information about the Magick-users
mailing list