View Full Version : ImageMagick how to tell, if its installed?
How can I tell if "ImageMagick" is installed on server?
thanks
:baghead:
"Pull a rabbit out of the hat, PRESTO"
Magic.... :)
Ok, sorry bad joke, lol
suppleSupport
08-07-03, 02:50 PM
It should be at /usr/X11R6/bin/convert
suppleSupport
08-07-03, 03:48 PM
Or if you don't have root access,
#!/usr/bin/perl
$| = 1;
&find_imagemagick;
&print_html;
exit;
sub print_html {
print qq|Content-type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>ImageMagick</title>
</head>
<body>
<b>IMAGE::MAGICK:</b> $im
</body>
</html>
|;
}
sub get_imagemagick {
/^.*\.pm$/ && /$ARGV[0]/i && push @mod, $File::Find::name;
}
sub find_imagemagick {
use File::Find;
find (\&get_imagemagick, grep { -r and -d } @INC);
@mod = grep (!$done{$_}++, @mod);
foreach (@mod) { next if s,^\Q$dir,,;
}
foreach (@mod) { s,^/(.*)\.pm$,$1,; s,/,::,g;
if ($_ =~ /Image::Magick/i){
$im = qq|Installed|;
}
}
if (! $im) {
$im = qq|Not installed|;
}
}
Name it imagemagick.pl, chmod 755.
Haven't had a chance to test this yet, gotta run
Thanks
all for reply but I have found it
rpm -q ImageMagick
vBulletin v3.5.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.