Hacker News new | ask | show | jobs
by DarkLilac 4315 days ago
Thank you for the feedback, everyone. I don't envision it as a replacement for PNG, which has features Sxz isn't designed for, gamma correction, CRC, built in compression, fast encoding and more.

An image with a hole allows it's other pixels to not have to carry an extra byte to render transparency allowing for good compression for oddly shaped images. Same reason Sxz supports paletted images with more than 256 colors, hopefully allowing for greater potential compression where PNG and WebP switch over to TrueColor. Most corporate logos use 256 colors and a white background. Why not just remove the background and increase the quality of the image with more colors?

SVG isn't pixel perfect like PNG. Amongst icon content creators, they avoid SVG in order to have precision. Although SVG has good integration with a browser's DOM, while PNG and JPG are merely data blobs. Since Sxz breaks down to chunks, it can potentially be parsed by browsers into DOM nodes allowing CSS interaction.

The target audience would be game developers in highly constrained bandwidth markets such as mobile and browser based games and want PNG's precision with additional features and don't mind the slow encoding.

I will generate more documentation if there is continued interest.

3 comments

So what is the advantage and benefit over SVG with embedded PNG?

Regarding logos: most corporate logos use even less colors. The reason behind is a follows: a corporate logo works well displayed in its full bright, but also works well as a small icon printed in black and white. Yes in the corporate world, people still print and many still print in black and white to save costs. Here you can see how good logo design works, how a good logo works in is full bright and also very small: http://responsivelogos.co.uk/ You also want to reduce the number of colors, because normally those colors are special colors from standardized color palettes like Pantone. In offset printing for advertisement material, those colors are not mixed on spot, but special colors and they are expansive. For that reason in good logo design you try to stick with 1 color besides black and white, or a maximum of 2.

I think vector (SVG) is superior when it comes to logos and icons. When a vector is rendered it is done in the context of the system used. For example sub-pixel rendering uses the information of the display.

In my experience a SVG logo rendered in a browser always looks much better than a pixel variant.

The only thing you can say about 'pixel perfect' is that you know for sure that pixel X,Y uses color C. But that doesn't mean you know how it will look on screen. Or how it will be positioned.

Also in this age of very high res screens I think vector is the way to go.

Yours is an interesting image format. How can I get in touch with you?

Do you work with responsive images working group? Are you on the mailing list?