LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-11-2003, 09:59 PM   #1
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
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?
 
Old 11-12-2003, 05:36 AM   #2
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

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

2) perhaps a hexview program? I'm not sure about this one.
 
Old 11-12-2003, 04:27 PM   #3
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Original Poster
Rep: Reputation: 30
which program from imagemagick were u referring to? i couldnt find any command-line utilities in the package.
 
Old 11-13-2003, 03:24 AM   #4
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
after looking in the imagemagic package I didn't find anything useful too recently I found the 'convert' program, but I was expecting a little more from imagemagic.
 
Old 11-13-2003, 01:19 PM   #5
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Original Poster
Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
create floppy image using dump cccc Linux - Hardware 2 08-07-2005 02:31 PM
How to burn a CD directly from a .bin image? Hano Linux - Software 1 12-09-2004 07:11 AM
Mounting bin/cue image nrunge Linux - Software 1 11-11-2003 08:12 PM
Does anyone know of a modem data dump utility? goat_jr Linux - Hardware 1 07-28-2003 08:41 PM
.bin image browser/extractor ? AekaGSR Linux - Newbie 3 06-26-2003 04:28 PM


All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration