Page 1 of 1

Suggestion: -format %[units] parameter

Posted: 2013-09-23T11:59:36-07:00
by Taldos
The -format %x %y which used to return the resolution & units (ie: 300 PixelsPerInch) was modified. from what I've seen on a few threads it seems this was done intentionally to allow for the use case where this values was not set in the native file. as of 8.6.8.10-Q16 (windows server 2003 R2, Service Pack 2 & Windows 7 Service Pack 1) the "Units" parmeter is no longer returned.

Without a %[units] option, the only remaining way of getting at this values is to use the "-verbose" option and parse the response for the "Units" parameter. It would be nice to be able to get at this data without having to read through everything returned with "-verbose"

thanks.

Re: Suggestion: -format %[units] parameter

Posted: 2013-09-23T12:00:42-07:00
by magick
We added a patch to the ImageMagick subversion trunk to support "units".