Posterize doesn't work...everything else does
Posted: 2009-08-29T17:15:38-07:00
I'm using PerlMagick in a CGI script, and for some reason Posterize does not work. I've tried other things like Crop, and they work fine. What's so unique about Posterize?
Here's my code:
This same code works fine for me on my local machine. Any thoughts?
Here's my code:
Code: Select all
use Image::Magick;
my $image = Image::Magick->new;
$img_open = $image->Read("test.png");
$img_open = $image->Posterize(levels=>'4');
$img_open = $image->Set( page=>'0x0+0+0');
$img_open = $image->Write("test2.png");