Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Actually, PNG supports 16 bit channels (as well as 1, 2 and 4 bits for paletted or greyscale images). TIFF meanwhile is kind of a kitchen-sink container format, so you can do quite a bit of strange things with it (store JPGs inside it, support tiling), but I don't think many viewers support everything in the TIFF standard.

Likewise, not many viewers (and certainly no browsers) support everything in the PNG standard. If you expect more than a simple compressor for some pixels, you're basically SoL when it comes to browsers.

This has come to nip myself (and others) when doing screenshots for old games such as Doom, where the pixel aspect ratio is not identical to the way they were displayed. It would be nice if we could just set the flag in PNG to tell it the display aspect ratio is 4:3, but literally no browsers support that flag. Instead we have to depend on lossy scaling so the pixel aspect ratio is identical to the display one.



Couldn't you nearest-neighbour upscale in a 4:3 ratio beforehand?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: