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

后端 未结 10 1575
灰色年华
灰色年华 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 02:15

    There is a program named jpegtran

    jpegtran – a utility for lossless transcoding between different JPEG formats.

    To rotate the image losslessly, you can do the following:

    $ jpegtran -rotate 180 -perfect -outfile rotated.jpg origin.jpg
    

    And Here is a list of applications which provide the JPEG lossless rotation feature based on the IJG code

提交回复
热议问题