Suggestion: -format %[units] parameter

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Taldos
Posts: 4
Joined: 2013-09-23T05:13:21-07:00
Authentication code: 6789

Suggestion: -format %[units] parameter

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

Re: Suggestion: -format %[units] parameter

Post by magick »

We added a patch to the ImageMagick subversion trunk to support "units".
Post Reply