Re: image's height in -geometry ?..
Wolfgang Hugemann <[email protected]>
| Newsgroups | gmane.comp.video.image-magick.user |
|---|---|
| Message-ID | <[email protected]> |
> I could ask "identify": > height=`identify $im | sed -e 's/.* [0-9]*x\([0-9]*\) .*/\1/g'` > ... if i used bash, but i need this under windows :O( You can use the ouput of the identify command in a Windows batch file, too. The general technique is explained at http://www.imagemagick.org/Usage/windows/#single and http://www.imagemagick.org/Usage/windows/#calc_set presents and example that comes quite close to what you are looking for and http://www.imagemagick.org/Usage/windows/#vb_example demonstrates how to read the output from an IM command line tool with VBScript. So you don't necessarily need a bash shell, it can be all done in Windows itself. Wolfgang Hugemann