possible bug deskew:angle string format

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible bug deskew:angle string format

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug deskew:angle string format

Post by magick »

Code: Select all

convert rect.gif -deskew 0x1 -format "%[deskew:angle]" info:
-4.9117881725059939768
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: possible bug deskew:angle string format

Post 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
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug deskew:angle string format

Post by fmw42 »

Thanks. I understand now.
Post Reply