Skip to content

Commit

Permalink
Update README and add screenshot.
Browse files Browse the repository at this point in the history
  • Loading branch information
jweyrich committed May 27, 2020
1 parent d2b734a commit 9511c15
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
# imgify - Convert any file to PNG and back

![Screenshot](/screenshot.png?raw=true "screenshot")

## Install dependencies

Install `libpng`:

- Debian, Ubuntu

`sudo apt-get install -y libpng-dev`

- CentOS, Fedora, RedHat

`sudo yum install libpng-devel`

## Get the source and compile

git clone https://github.com/jweyrich/imgify.git
cd imgify
make

## Usage

### bin2png

usage: bin2png -i <in_filename> -o <out_filename> [-p <pad_byte>]

Example:

./bin2png -i /mach_kernel -o mach_kernel.png
Input file => /mach_kernel
size => 8394688 bytes
Output file => mach_kernel.png
size => 4524970 bytes
image => 1449x1449 px, 32 bpp, 929px padding

### png2bin

usage: png2bin -i <in_filename> -o <out_filename> [-p <pad_byte>]

Example:

./png2bin -i mach_kernel.png -o mach_kernel.bin
Input file => mach_kernel.png
size => 4524970 bytes
image => 1449x1449 px, 32 bpp, 929px padding
Output file => mach_kernel.bin
size => 8394688 bytes

## License

imgify is distributed under a GPL V2 licence. See the LICENSE file for more information.
imgify is distributed under a GPL V2 licence. See the LICENSE file for more information.
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9511c15

Please sign in to comment.