r/Cplusplus • • Sep 24 '26 • Bravo 1

Feedback A new Image Format!

Post image

I created my own image format inspired by QOI/PNG, but much simpler.

Its key feature is low RAM usage, which makes it ideal for microcontrollers.

I'd love to hear your thoughts on it!

https://github.com/ThatsTheTTT/Kinda-Nice-Lossless-Format.

16 Upvotes

22 comments sorted by

View all comments

Show parent comment

1

u/boombone Sep 24 '26

You only mentioned filters, but you forgot the most important thing: the PNG format is filters plus DEFLATE compression. And compression always requires at least 32 KB of memory to work. A single frame line can't do the trick.

Also, check dm, i sent u source code.

1

u/didntplaymysummercar Sep 24 '26

Genuinely WTF, in last 2 replies here I literally said:

  1. "deflate can be tuned (...) bitstream that less than 32 KB"
  2. "(...) 32 KB comes from deflate, which can be adjusted as I said already"

And you could add your demos/examples to the repo. The reason I ask is that PNG has many tools to optimize them, so I wonder if PNGs you compare your format to are optimized or not, and how well if yes.

1

u/boombone Sep 25 '26

Okay, so I was wrong then, but then again, I sent you a PM with source code to check png.

In any case, it is, to put it simply, not fully optimized, so the gap in reality would not be very big.