7bp / pnguncrush

Png uncrush

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pnguncrush

Reverts Apple PNG optimization used to create .ipa packages. Uncrushed file does not contains multiple IDAT chunks. It is a basic PNG image structured as follows: IHDR, IDAT, IEND; Based on peperzaken procedure: https://github.com/peperzaken/iPhone-optimized-PNG-reverse-script

Sample Usage

Conversion to string:

$decoder = new PPngUncrush('path/to/source/crushed.png');

$img = $decoder->uncrush();

Conversion to file:

$decoder = new PPngUncrush('/path/to/source/crushed.png');

$decoder->uncrush('/path/to/destination/uncrushed.png');

About

Png uncrush


Languages

Language:PHP 100.0%