←back to thread

94 points justin-reeves | 1 comments | | HN request time: 0.218s | source
Show context
donatj ◴[] No.46004961[source]
Interesting. I was not aware that was a thing. Orientation info seems way less useful in a lossless format like PNG. It makes sense in JPEG for instance because rotating and re-encoding would be lossy and slightly degrade the image.
replies(6): >>46005026 #>>46005034 #>>46005049 #>>46005146 #>>46005413 #>>46010103 #
PaoloBarbolini ◴[] No.46005049[source]
The image could have been encoded with a high compression ratio, or even something like OxiPNG. In that case, while re-encoding it wouldn't lose quality, it could still have the side-effect of making the file bigger.
replies(1): >>46005310 #
1. kevincox ◴[] No.46005310[source]
At they very least it will take time. Rotating is a fairly common operation, even simple photo viewers often have buttons to quickly rotate the image. Being able to do this efficently is beneficial.

You can also have other situations where this is useful like a primarily hardware pipeline that doesn't support rotation, but you can mark the rotation at the end. Although this is probably less of an issue for PNG than formats that typically come out of cameras and scanners.