Convert from RGBA 5551,4444,8888 to png

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
gamax92
Posts: 3
Joined: 2012-12-08T13:11:23-07:00
Authentication code: 6789

Convert from RGBA 5551,4444,8888 to png

Post by gamax92 »

I'm having trouble trying to get these raw data formats to a readable png image.
I'd also like to know how to convert back from png to these formats.

EDIT: It would be easiest if i could specify how many bits that each channel was taking up.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: Convert from RGBA 5551,4444,8888 to png

Post by glennrp »

rgba 8888 is the default for format "RGBA"
rgba 4444 is "-depth 4 file.rgba"

e.g.,

Code: Select all

convert logo: -transparent white -depth 4 logo4.rgba
convert -size 640x480 -depth 4 logo4.rgba logo4.png
I don't know how to express rgba 5551.
Post Reply