Page 1 of 1

possible bug deskew:angle string format

Posted: 2018-06-16T15:12:55-07:00
by fmw42
IM 6.9.10.0 Q16 and IM 7.0.8.0 Q16 HDRI Mac OSX Sierra

Code: Select all

convert -size 200x100 xc:white -background black -rotate 5 -background black -gravity center -extent 300x300 rect.gif

Code: Select all

convert rect.gif -format "%[deskew:angle]" info:
convert: unknown image property "%[deskew:angle]" @ warning/property.c/InterpretImageProperties/3979.

Code: Select all

magick rect.gif -format "%[deskew:angle]" info:
magick: unknown image property "%[deskew:angle]" @ warning/property.c/InterpretImageProperties/3947.

Reference: http://www.imagemagick.org/script/escape.php

Re: possible bug deskew:angle string format

Posted: 2018-06-16T17:03:14-07:00
by magick

Code: Select all

convert rect.gif -deskew 0x1 -format "%[deskew:angle]" info:
-4.9117881725059939768

Re: possible bug deskew:angle string format

Posted: 2018-06-16T17:16:52-07:00
by snibgo
I don't think it's a bug. I think "%[deskew:angle]" is calculated by the "-deskew" operation, and is not set until that operation.

Code: Select all

f:\web\im>%IM%convert rect.gif -format "%[deskew:angle]" info:
convert.exe: unknown image property "%[deskew:angle]" @ warning/property.c/InterpretImageProperties/3780.

f:\web\im>%IM%convert rect.gif -deskew 40 -format "%[deskew:angle]" info:
-4.68954

Re: possible bug deskew:angle string format

Posted: 2018-06-16T18:24:51-07:00
by fmw42
Thanks. I understand now.