Page 1 of 1
Possible bug string format %d IM 6.9.3.7 Q16 Mac OSX
Posted: 2016-03-29T10:36:00-07:00
by fmw42
convert: unknown image property "%d" @ warning/property.c/InterpretImageProperties/3422.
see
http://www.imagemagick.org/script/escape.php for %d as path to file
Re: Possible bug string format %d IM 6.9.3.7 Q16 Mac OSX
Posted: 2016-03-29T11:01:53-07:00
by snibgo
%d gives the directory component of the input file, as it appears on the command line or whatever. If there is no directory component, we get a warning.
Examples:
Code: Select all
f:\web\im>%IM%identify -format %d x.tiff
identify.exe: unknown image property "%d" @ warning/property.c/InterpretImageProperties/3420.
f:\web\im>%IM%identify -format %d ./x.tiff
.
f:\web\im>%IM%identify -format %d \web\im\x.tiff
\web\im
This is in v6.9.2-5. I don't see a bug.
Re: Possible bug string format %d IM 6.9.3.7 Q16 Mac OSX
Posted: 2016-03-29T11:27:49-07:00
by fmw42
IM 6.9.3.7 Q16 Mac OSX
I think it is a bug/mistake to say " unknown image property "%d".
Seems to me that it should not give that error message, but simply return an empty result. That is, since there was no formal directory in the filename, the directory is properly an empty string value.
Code: Select all
convert rose: rose.png
convert rose.png -format "%d" info:
convert: unknown image property "%d" @ warning/property.c/InterpretImageProperties/3422.
Whereas this works:
Code: Select all
convert /Users/fred/desktop/rose.png -format "%d" info:
/Users/fred/desktop
Re: Possible bug string format %d IM 6.9.3.7 Q16 Mac OSX
Posted: 2016-03-29T12:08:59-07:00
by snibgo
You don't want the warning message when there is no directory component? Yes, I see your point, and think it's fair enough.
Re: Possible bug string format %d IM 6.9.3.7 Q16 Mac OSX
Posted: 2016-03-29T12:58:12-07:00
by magick
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @
https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @
http://www.imagemagick.org/download/beta/ by sometime tomorrow.