Detect EXIF Orientation and Rotate Image using ImageMagick

前端 未结 2 635

Canon DSLRs appear to save photos in landscape orientation and uses exif::orientation to do the rotation.

Question: How can imagemagick

2条回答
  •  一整个雨季
    2020-12-02 09:22

    Use the auto-orient option of ImageMagick's convert to do this.

    convert your-image.jpg -auto-orient output.jpg
    

    Or use mogrifyto do it in place

    mogrify -auto-orient your-image.jpg
    

提交回复
热议问题