Check to see if Image Magic is installed

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
michael1t

Check to see if Image Magic is installed

Post by michael1t »

Hello All,

I was looking for some help for windows xp ... I need a way to issue a command line function to test to see if image magic is installed and what version it is ...

Something simple that writes the results to a text file ... installed or not installed

thanks in advance

Michael T.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Check to see if Image Magic is installed

Post by fmw42 »

I am not a windows user, but this works for me on a Unix (Mac) command line environment:

identify -version > im_version.txt


or

str=`identify -version`
[ "$str" != "" ] && echo "installed" > version.txt || echo "not installed" > version.txt
michael1t

Re: Check to see if Image Magic is installed

Post by michael1t »

thanks that worked great

Michael T.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Check to see if Image Magic is installed

Post by fmw42 »

P.S.

This makes it all one command:

[ "$(identify -version)" != "" ] && echo "installed" > version.txt || echo "not installed" > version.txt
Post Reply