2010-11-24 123 views
3

我想移動到GraphicsMagick,因爲我只是調整大小和旋轉照片,而且我聽說它有點快。但它不直接採用-auto-orient選項。還有另一種方法可以有效地做到這一點? Imagemagick convert -auto-orient選項將讀取EXIF方向標籤,相應旋轉,然後將EXIF標籤重置爲orientation = 1。GraphicsMagick是否具有與ImageMagick'convert -auto-orient'選項等效的功能?

看到:http://www.imagemagick.org/script/command-line-options.php?ImageMagick=80iu7ek6jb638dl2kin7n3v4d5#auto-orient

回答

2

不是在這個時候。

正如你所說的,你可以猜測操作來完成一個簡單的開關案例。這是從一個有趣的資源頁面採取:http://sylvana.net/jpegcrop/exif_orientation.html

switch EXIF:Orientation: 
    1) transform="";; 
    2) transform="-flip horizontal";; 
    3) transform="-rotate 180";; 
    4) transform="-flip vertical";; 
    5) transform="-transpose";; 
    6) transform="-rotate 90";; 
    7) transform="-transverse";; 
    8) transform="-rotate 270";; 
    *) transform="";; 
+1

THX。但imagemagick -auto-orient選項還會編輯EXIF數據以將EXIF方向標記重置爲orientation = 1。這種方法只是旋轉照片而不更新標籤。 – michael 2011-08-04 06:10:14

相關問題