GithubHelp home page GithubHelp logo

418sec / node-pngdefry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ink-zone/node-pngdefry

0.0 2.0 6.0 193 KB

Repairing iPhone fried PNGs using Node.js

License: MIT License

JavaScript 2.76% C 97.17% Makefile 0.08%

node-pngdefry's Introduction

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

node-pngdefry's People

Contributors

0x-leen avatar caidurbin avatar cesartrigo avatar huntr-helper avatar mufeedvh avatar taisukeh avatar tyrone-sudeium avatar ullmark avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.