I am trying to increase the number of colors in an image, but it is not working.
$img = Image::Magick->new;
$img->Read('../images/logo.gif');
my $nu = $img->Get('colors');
$img->Set(colors=>256);
$img->Quantize();
my $nu1 = $img->Get('colors');
nu and nu1 remains the same- 127 in my case. Any help is appriciated.
| [reply] [d/l] |
| [reply] |
Actually, I am trying to print/display an image on the pdf file. Using:
my $image = PDF_load_image($p, "gif", "../images/logo.gif","");
but, this function does not support less than 128 colors. Is there is any other thing I can do to display an image to PDF file?
Thanks for your help.
| [reply] |