Trying to Create 32-bit Integer RAW Image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Try the following:
  • convert xc:#af037b -depth 32 logo.rgb
We get
  • -> od -x logo.rgb
    0000000 afaf afaf 0303 0303 7b7b 7b7b
Is that what you are looking for? We're using ImageMagick-6.2.9-6, the current release.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Ok, try this:
  • stream -depth 8 -map ppprpppgpppb -storage-type char image.png image.raw
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

MIFF is the perferred image format when piping because it is the only format that retains all of the ImageMagick image attributes and metadata.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Yes, use miff:- to force the output format to MIFF.
Post Reply