magick identify -format "{w: %w, h: %h, o: %[orientation]}" img.png
我运行此命令来确定图像的尺寸。问题是,有时方向是在实践中交换w和h。如何获得人们打开图片时看到的“实际”尺寸?是否有内置命令来获取这些命令,或者有关何时特定方向意味着我必须交换w和h的规则?
您需要-auto-orient选项:
magick INPUT.JPG -auto-orient -format "{w: %w, h: %h, o: %[orientation]}" info:
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句