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
set a variable with a image width to use in batch file
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: set a variable with a image width to use in batch file
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
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"
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
what will be the windows equivalent of the above.. thank youfmw42 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
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: set a variable with a image width to use in batch file
minipra wrote:what will be the windows equivalent of the above.. thank youfmw42 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
Sorry I am not a Windows user. But see http://www.imagemagick.org/Usage/api/#windows