Re: [dev] Looking for simple, alpha supporting image format
On Jul 18, 2014, at 1:10 PM, FRIGN <dev_AT_frign.de> wrote:
> I'd rather put it this way:
>
> Bytes Description
> 13 ASCII string: "img13w4h4rgba"
> 4 32 bit Big-Endian integer for width
> 4 32 bit Big-Endian integer for height
> (w*h) Raw RGBA.
I think it would be slightly more useful to put the number of bits per channel in the header instead of the string "rgba". It would allow more freedom in reducing the file size when color depth isn't very important. For example, you could do 5658 or 4444 or 6666 or 8880 (to omit alpha, even though currently omitting the "a" does the same). I can think of some cases where overlays might benefit from something like 1115. (There's still no real way to do monochrome.)
The header would need to be rearranged a little, to separate it from the height field length. The simplest way would be to add a "b" before the numbers, making the first part, say, "img14w4h4b8888".
Regards,
Samuel
Received on Fri Jul 18 2014 - 20:28:15 CEST
This archive was generated by hypermail 2.3.0
: Fri Jul 18 2014 - 20:36:15 CEST