Can a JPEG compressed image be rotated without a loss in quality?

后端 未结 10 1553
灰色年华
灰色年华 2020-12-14 01:45

JPEG is a lossy compression scheme, so decompression-manipulation-recompression normally reduces the image quality further for each step. Is it possible to rotate a

10条回答
  •  温柔的废话
    2020-12-14 01:53

    From the JPEG FAQ:

    "There are a few specialized operations that can be done on a JPEG file without decompressing it, and thus without incurring the generational loss that you'd normally get from loading and re-saving the image in a regular image editor. In particular it is possible to do 90-degree rotations and flips losslessly, if the image dimensions are a multiple of the file's block size (typically 16x16, 16x8, or 8x8 pixels for color JPEGs).
    ...

    But you do need special software; rotating the image in a regular image editor won't be lossless."

提交回复
热议问题