List Info

Thread: Problem reducing colours using PerlMagick




Problem reducing colours using PerlMagick
user name
2006-10-19 16:35:49
I am having problems trying to reduce colors with Quantize
using PerlMagick.

The following script

#!/usr/bin/perl -w
use strict;

use Image::Magick;
my $image = Image::Magick->new;
$image->Read('test.png');
$image->Quantize(colors=>16);
$image->Write('test_reduced.png');


IM 6.2.2 - appears to have no effect.

IM 6.2.8 - reduces the colors but distorts the image as can
be seen 
in these examples

   http://www.fu2
k.org/alex/junk/test.png
   http:/
/www.fu2k.org/alex/junk/test_reduced.png


Am I doing something wrong? Is this a bug in PerlMagick? Any

suggestions as to how else to achieve this?
_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )