in reply to How to keep Imager's image files small ?
This is fairly simple:
For example
my $pal = $source->to_paletted ( max_colors => 16, translate => "errdiff", ) or die $source->errstr; $pal->write(file => "foo.png") or die $pal->errstr;
That said, unless your images start with a small number of colours (non-photographic, no blends, little anti-aliasing) the results are going to be fairly ugly. You should test with some representative source images.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to keep Imager's image files small ?
by Anonymous Monk on Jul 28, 2012 at 03:49 UTC |