Any perl hackers on the list? If so, you might be interested
to know
I've just uploaded version 0.14 of Image::Pngslimmer to
CPAN.
>From the README...
use Image::Pngslimmer
Image::Pngslimmer::ispng($blob) - returns 1 if the BLOB
conforms to the
structure for a PNG and that all CRCs are correct.
Image::Pngslimmer::discard_noncritical($blob) - returns a
BLOB stripped
of any non-critcal chunks. If the passed-in BLOB does not
conform to the
basic structure of a PNG the returned BLOB is identical to
the passed-in
BLOB. The passed in BLOB is not altered by this function.
Image::Pngslimmer::analyze($blob) - after calling
Image::Pngslimmer::ispng($blob) this will iterate through
the chunks in
the supplied byte stream represented by $blob and return an
array of
strings describing the chunks in the PNG. It can be useful
for testing
the "before and after" effect of
discard_noncritical($blob).
Image::Pngzlimmer::zlibshrink($blob) will attempt to improve
compression
of the supplied BLOB
Image::Pngslimmer::filter($blob) will attempt to apply
adaptive
filtering for better compression of the supplied BLOB -
filtering
normally results in better compression once zlibshrink() is
reapplied if
the original image is truecolour.
Image::Pngslimmer::indexcolours($blob) will attempt to
losslessly
convert the supplied PNG to a colour indexed image - of the
image
contains more than 256 colours this will not work and the
original PNG
is returned instead.
Image::Pngslimmer::palettize($blob) will colour index (with
a PLTE
chunk) a 24 bit RGB image. If the original image has 256
colours or less
it will do this losslessly but calling indexcolours(),
otherwise it will
generate a 256 colur palette by using the median cut
algorithm.
Image::Pngslimmer::reportcolours($blob) will return details
of the
colour frequencies in the passed in PNG.
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
png-mng-implement mailing list
png-mng-implement lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-m
ng-implement
|