Re: image's height in -geometry ?..

"Dmytro O. Redchuk" <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <1264876028.14621.6.camel@alot>
У сб, 2010-01-30 у 18:46 +0100, Wolfgang Hugemann пише:
> > 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
Oh!! Thanks!

Yes, i've used "for" under windows quite a lot (like for %f in (*CR2) do
dcraw .... | convert ...), but missed completely these catching output
and calc capabilities!

Thank You :-)

I hope i'll find some windows these days and try... I need to do "for %j
in (*JPG) do" and then catch image height and overlay a logo... So, i
need to have a try :-)

Hope i'll survive.

> 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.
Thank you. Will try if fail with "for" :-)

> 
> Wolfgang Hugemann

-- 
  Dmytro O. Redchuk

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.