When a product photo for a small shop site comes in sideways, the obvious fix is to open the file, rotate it and hit save. That save is a full decode and re-encode, and it happens again whenever someone straightens or trims the same photo later.
A test on 2026-11-18 put a number on that cost. A 1200×672 JPEG at quality 85 was turned 90° twenty times, two ways. Decoding, rotating and saving at quality 85 each round ended at 37.81 dB PSNR and 0.9932 SSIM against the starting file, with the pixels changed. jpegtran -rotate 90 -perfect twenty times left every pixel identical to the start, and the file was still 275,220 bytes. This is one photo on one Apple silicon Mac, each chain run once, so read every figure below as "on this image".
Four quarter turns return the same bytes
jpegtran ships with libjpeg-turbo. It never decodes to pixels. It moves the compressed blocks around and writes them back, which is why nothing gets re-quantized.…