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.
Convert from RGBA 5551,4444,8888 to png
Re: Convert from RGBA 5551,4444,8888 to png
rgba 8888 is the default for format "RGBA"
rgba 4444 is "-depth 4 file.rgba"
e.g.,
I don't know how to express rgba 5551.
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