Coder Social home page Coder Social logo

pngextract's Introduction

PNGExtract

Extract PNG images from (binary) files

Usage

pngextract <binary file> [output filename]

Example output

$ pngextract binary.bin

Found PNG #0
PNG written to binary.bin.0.png
Found PNG #1
PNG written to binary.bin.1.png
done
$ pngextract binary.bin output

Found PNG #0
PNG written to output.0.png
Found PNG #1
PNG written to output.1.png
done

License

WTPL

pngextract's People

Contributors

jomo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

c-urly thesima

pngextract's Issues

Invalid argument @ io_fread on large files

Having a file that is larger that 2 GB (which seems to be a limit for File.read at line 48)

when using this script having a error

% ./pngextract assets.bin 
Traceback (most recent call last):
	3: from ./pngextract:46:in `<main>'
	2: from ./pngextract:46:in `loop'
	1: from ./pngextract:48:in `block in <main>'
./pngextract:48:in `read': Invalid argument @ io_fread - assets.bin (Errno::EINVAL)

Not familiar a lot with ruby, is there a way to workaround this? Maybe read file memory-mapped? Or at least in chunks?

I am having trouble downloading this

I attempted to just run the function from the command prompt in the folder the bin and pngextract files where in, I also referenced a different install of pngextract in the path environment variable, How DO you install it.

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.