Posted on 2007-12-07 10:33:00-08 by brianski in response to 6636
Re: miscellaneous questions from a newcomer

Excellent, thanks for your answers!

As for the common compression control, hmmm. You're right, it does get messy since Imager has both lossy and lossless backends. I guess what I really need (read: want) is a way to set defaults for my prefered compression levels at Imager->new() timem so I don't have to specify the compression level I want whenever I call write(). So I would say my $img = Imager->new(default_jpeg_compression => 33, default_png_compression => 9, default_tiff_compression => ...); Later calls to write with explicit arguments would of course could override these defaults, however. Whatcha think?

I wonder how much work it would be to create a stand-alone implementation of LZW to fall back on for gif compression. giflib and libgd (at least) both have working implementations which might be snarfed if the license is compatible (this is thinking out loud more than a request)

Cheers,
Brian

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.