png

pngdefry

Repairing iPhone fried PNGs using Node.js

Showing:

Popularity

Downloads/wk

10

GitHub Stars

23

Maintenance

Last Commit

1yr ago

Contributors

8

Package

Dependencies

1

Size (min+gzip)

0.7KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

node-pngdefry Build Status NPM Version

Repairing iPhone fried PNGs using Node.js.

This is a Node.js wrapper for pngdefry command line tool (created by Jongware) that reverses CgBI optimization on png images included into iPA files to make the images readable by the browser.

Why you may need it ?

If you want for any reason to extract App Icons (PNG images) out of iPA files (iOS Apps) you will need this ; becuase you gonna find that those extracted PNG images are not readable by the browser .

Apple uses PNGCursh open source library to crush png images inside iPA files, to revese this provess back you need to do it throw pngdefy lib.

Command line

$ npm install -g pngdefry

then run:

$ pngdefry -i icon.png -o icon.new.png

In Node project

$ npm install pngdefry --save-dev
var pngdefry = require('pngdefry');
var path = require('path');

var input = path.join(__dirname, 'icon.png');
var output = path.join(__dirname, 'icon.new.png');

pngdefry(input, output, function(err) {
  if (err) {
    return;
  }

  console.log('success');
});

Test

$ npm test

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100