-   Linux - Software (
-   -   Image dump / Text-to-bin utility (

ugenn 11-11-2003 08:59 PM

Image dump / Text-to-bin utility
1. Is there any command-line utility which can take an image file in a well-known format (eg gif, png, bmp), print the dimensions/info and dump the raw bytes and palette?

2. Is there a utility which can take a text string and output to stdout the binary representation of the string (I dont mean 0s and 1s here, I mean the actual byte encoding) in a specified endian order?

yapp 11-12-2003 04:36 AM

1) something like "file", or a progam from the "imagemagic" package will do.

2) perhaps a hexview program? :rolleyes: I'm not sure about this one.

ugenn 11-12-2003 03:27 PM

which program from imagemagick were u referring to? i couldnt find any command-line utilities in the package.

yapp 11-13-2003 02:24 AM

:eek: after looking in the imagemagic package I didn't find anything useful too :confused: recently I found the 'convert' program, but I was expecting a little more from imagemagic.

ugenn 11-13-2003 12:19 PM

After some hunting, I managed to stumble upon netpbm, which does more or less what I want.

As for the 2nd, I couldn't find anything, so I just hacked up my own little app.

All times are GMT -5. The time now is 11:19 AM.