-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does QOI support grayscale? #293
Comments
Support: yes, good at it: no. Of course you can encode grayscale images with qoi, but it will always use 3 channels for it. The resulting file size will be closer to uncompressed than PNG. A "qoi-like" file format focusing on 1 channel sounds like a fun experiment though. Could probably get good results with storing small chunks as 4bit nibbles. May I ask: what's your use-case? |
Hi @phoboslab , thanks ! My usecase is 5 GBytes of grayscale images from a high-speed industrial camera. |
same use-case here. Images from industrial cameras or artificial sources. 8-bit greyscale images of varying dimensions (~1k x 1k up to ~16k x 80k) |
I was exploring general data compression similar to QOI for small arbitrary data and I wanted something super simple, fast, and with reasonable compression. I came up with this general-purpose (untested) compression format idea:
Keep in mind, I've not done any experiments, so this is just all words on a page. But I am curious what you all might see with compression ratios using this. Edit: improve max compression, simplify loading |
Hi, I wonder if the QOI format also covers grayscale? As I understood it is designed mainly for 3 and 4 channels.
The text was updated successfully, but these errors were encountered: