]> git.imager.perl.org - imager.git/commit
[rt #94292] add jpeg_optimize to enable optimized Huffman tables
authorTony Cook <tony@develop-help.com>
Mon, 31 Mar 2014 12:00:01 +0000 (23:00 +1100)
committerTony Cook <tony@develop-help.com>
Mon, 31 Mar 2014 12:00:01 +0000 (23:00 +1100)
commitf9152a93cb623da8acf2cf9ff929625c83d180e7
tree91447ea699fb8a3e01fcd1eba5753a8b953f0b9c
parentc757e2117ca7424dd35a0b0266bbc52c14344149
[rt #94292] add jpeg_optimize to enable optimized Huffman tables

This can significantly reduce file size, but uses more memory and time.

For one sample image (mostly sky), this reduced the file size from
445930 bytes to 272933 bytes, with a 12% increase in CPU usage.
JPEG/JPEG.pm
JPEG/imjpeg.c
JPEG/t/t10jpeg.t
lib/Imager/Files.pod