Under Dos, with IM v7, sometimes I need to identify the Width of the image using convert, then use this variable later in my connvert command, without any pipe.
I'm a little lost on how about to perform this...
Here, I am trying to reduce image Width by its width minus 12 pixels, for example :
(I know my syntax is not the good one, and this code does not work...)
Code: Select all
convert ^ c:\source.png -resize ([%w]-12)x100% c:\destination.png
Would someone have an idea ? The docs are not very "verbose" about it http://www.imagemagick.org/Usage/basics/#identify_alt
Thank you (and sorry for this newb' question)