web2ajax : The Blog

mar201031No talk

PunyPNG - PNG Compression and Image Optimization

Perhaps you already know smushit, the Yahoo! service that compress your png files without alterate them.

First in the domain, the service has some inconvenients as multiple images upload.

With PunyPNG, no problem : you can upload up to 50 files and download a zip archive containing all optimized images.

And it’s not all : fully supports for PNG, .GIF, .JPG, no problem of transparency.

The icing on the cake : once registered, you can use punyPNG’s API.
For example, if you want to optimize a single image (in a batch for example), simply call :


http://www.gracepointafterfive.com/punypng/api/optimize?img=http://www.conradchu.com/images/portfolio/targets.gif&key=fe79db612343cbc781d4faddd22990d282e24e75c

Will return in JSON :

{"savings_bytes": 7149, "original_url": "http://www.conradchu.com/images/portfolio/targets.gif", "original_size": 35071, "optimized_url": "http://www.gracepointafterfive.com/punypng/attachments/eb1955a35625ea97e107132cbd49b65840d35532/targets.gif.png", "group_id": "", "savings_percent": 21, "optimized_size": 27922}

Web2ajaX images are optimized with PunyPNG, and I find no degradation, adopted ?

Click on ‘Visit Link’ to have more infos.

Pas de commentaire

Pas encore de commentaire.

LEAVE A COMMENT