Page 1 of 1
set a variable with a image width to use in batch file
Posted: 2009-02-26T03:25:06-07:00
by minipra
Iam trying to set a variable with a width of a image.. iam new to image magick .. please help
set c=identify -ping -format bg.png
Re: set a variable with a image width to use in batch file
Posted: 2009-02-26T10:42:19-07:00
by fmw42
minipra wrote:Iam trying to set a variable with a width of a image.. iam new to image magick .. please help
set c=identify -ping -format bg.png
If on unix:
width=`identify -ping -format "%w" bg.png`
echo $width
see
http://www.imagemagick.org/script/escape.php
Re: set a variable with a image width to use in batch file
Posted: 2009-03-11T21:08:07-07:00
by minipra
Iam using windows
set width="identify -ping -format "%%w" bg.png"
echo %width%
when i try the above all i get is the entire string as the value of width ... "identify -ping -format "%%w" bg.png"
Re: set a variable with a image width to use in batch file
Posted: 2009-03-12T01:48:44-07:00
by minipra
fmw42 wrote:minipra wrote:Iam trying to set a variable with a width of a image.. iam new to image magick .. please help
set c=identify -ping -format bg.png
If on unix:
width=`identify -ping -format "%w" bg.png`
echo $width
see
http://www.imagemagick.org/script/escape.php
what will be the windows equivalent of the above.. thank you
Re: set a variable with a image width to use in batch file
Posted: 2009-03-12T15:16:23-07:00
by fmw42
minipra wrote:fmw42 wrote:minipra wrote:Iam trying to set a variable with a width of a image.. iam new to image magick .. please help
set c=identify -ping -format bg.png
If on unix:
width=`identify -ping -format "%w" bg.png`
echo $width
see
http://www.imagemagick.org/script/escape.php
what will be the windows equivalent of the above.. thank you
Sorry I am not a Windows user. But see
http://www.imagemagick.org/Usage/api/#windows