-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,35 @@ | ||
# imgify - Convert any file to PNG and back | ||
|
||
 | ||
|
||
## 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. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.