gpt4 book ai didi

command-line - 使用 imagemagick 设置图像方向 exif 数据

转载 作者:行者123 更新时间:2023-12-03 23:39:15 25 4
gpt4 key购买 nike

我有一组带有损坏的 exif 方向数据的图像。我想使用 imagemagick 更改这些图像的方向。我找到了以下命令 mogrify -set "%[EXIF:Orientation]" BottomRight image.jpg但是当我使用 Identify -verbose image.jpg 检查图像时它似乎不起作用方向数据未定义。

最佳答案

使用 ImageMagick,您可以通过以下方式进行操作:
mogrify -orient <orientation> *.jpg
有效的方向是

bottom-left    
right-top
bottom-right
top-left
left-bottom
top-right
left-top
undefined
right-bottom

更多信息 here .

您可以使用识别来验证您的更改:
identify -verbose input.jpg | grep Orientation

关于command-line - 使用 imagemagick 设置图像方向 exif 数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40606464/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com