Subject: | colors |
Looks promising!
What I deerly miss is a limit on the number of colors in the target image. I resize images mostly to generate a normalized set of images from a collection of different sources: they all end having the same maximum size and a maximum number of (64) colors to make them look at least a bit alike, like:
$ convert foo.jpg -size 600x800 -resize 600x800 -colors 64 foo.png
where 600 is fixed and 800 is calculated as using keep_aspect => 1
my $is = Image::Scale->new ($img);
$is->resize_gd ({ width => $width, keep_aspect => 1 });
$is->save_png ($img =~ s/jpg$/png/r);
works relatively well, but I'd like to see a limit on the number of colors