geektron has asked for the wisdom of the Perl Monks concerning the following question:
the client is uploading a handful ( 1 .. n ) PNG files. i can Get the colors using $obj->Get( 'colors' ), but in the documentation there's doesn't seem to be an analog for setting the same parameter ...
the online docs indicate that options that are "gettable" have analogs in convert ... but attempting to set the colors gives error 410, which is:
410 OptionError a command-line option was malformed
the code i've tried:
andmy $err = $magick->Resize( height => 338, width => 450, colors => 128 +);
both of which return the 410 error ...my $err = $magick->Resize( height => 338, width => 450 ); $err = $magick->Set( -colors => 128 );
can the number of colors be reset?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Image::Magick and colors
by kvale (Monsignor) on Jul 18, 2005 at 18:49 UTC | |
by geektron (Curate) on Jul 18, 2005 at 19:06 UTC | |
|
Re: Image::Magick and colors
by japhy (Canon) on Jul 18, 2005 at 18:42 UTC | |
by geektron (Curate) on Jul 18, 2005 at 19:04 UTC | |
by japhy (Canon) on Jul 19, 2005 at 12:05 UTC |