←back to thread

94 points justin-reeves | 2 comments | | HN request time: 0.522s | 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 #
1. MontagFTB ◴[] No.46005026[source]
Looping through inflate/deflate on rotated pixels still takes more time than updating a bit in the Exif (and the chunk’s associated CRC)
replies(1): >>46005341 #
2. crazygringo ◴[] No.46005341[source]
It's still negligible from the consumer standpoint.

Like, if you had millions of images you needed to rotate on a server in a batch job, then OK.

But if you're just rotating one photo, or even a hundred, that you've just taken, it's plenty fast enough.