It appears that there is no way to save RGB files in 3-Byte uncompressed files. PNG files are compressed, and if RGB files are saved as FITS they use 2 Bytes for each color, even though the data is only 8 bits, ie they take up twice as much space as necessary.
Am I missing something?
Uncompressed 24-bit RGB files
- admin
- Site Admin
- Posts: 13319
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Uncompressed 24-bit RGB files
PNG files are compressed, but the compression is lossless, which means that the compressed file is a perfect copy of the uncompressed file with no loss of detail. This means there is no good reason to have an uncompressed image file format for 8 bits.
cheers,
Robin
cheers,
Robin
Re: Uncompressed 24-bit RGB files
If you are writing your own image analysis software, operating with , for example, a BMP or FITS file is much easier. But when the FITS file is 2 X the needed size there is a huge waste of disk space.
I conclude from Robin's answer that there is no 24 bit uncompressed RGB format.
I conclude from Robin's answer that there is no 24 bit uncompressed RGB format.
- admin
- Site Admin
- Posts: 13319
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Uncompressed 24-bit RGB files
What programming language/environment are you using? There are often libraries to load PNG images. If that is not available then adding a BMP output is possible.
cheers,
Robin
cheers,
Robin