3 ms·
The article is wrong. The very first image is 375 bytes, not 1024: https://www.haiku-os.org/docs/userguide/images/apps-images/i-o-m-terminal-bitmap32.png https
by imaginenore 10y ago
The article is wrong. The very first image is 375 bytes, not 1024:
https://www.haiku-os.org/docs/userguide/images/apps-images/i-o-m-terminal-bitmap32.png https://www.haiku-os.org/docs/userguide/images/apps-images/i...
And I was able to losslessly reduce it to 298 bytes with PNGOUT.
The smaller image is 257 bytes, and I reduced it to 186.
- mrb 10y agoGood spotting. Also I am curious to know the size of the SVG icon compressed with gzip. I can't find the original file that they claim is 7192 bytes.
- prashnts 10y agoThe article talks about raw bitmaps, though, while PNG is a bitmap compressed with deflate. Since rendering a bitmap is straightforward, I imagine it would be preferred here for performance (I am just guessing here).
- imaginenore 10y agoIsn't HVIF compressed SVG? They basically substituted the verbose tags with binary, which is a form of compression.
- prashnts 10y agoYou're right of course. However, I'd not call it compression of SVG. HVIF seems to have defined a simplified encoding (probably inspired by SVG)? [Edit]: HVIF is rendered in a single pass (except in a few cases), while SVGs (and most vector format) render each element individually.