Page 1 of 1

Convert from RGBA 5551,4444,8888 to png

Posted: 2012-12-08T13:21:38-07:00
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.

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

Posted: 2012-12-08T19:30:10-07:00
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.