a compatibility question about version 6.2.4

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
codeswitch
Posts: 15
Joined: 2009-09-07T09:33:45-07:00
Authentication code: 8675309

a compatibility question about version 6.2.4

Post by codeswitch »

My hoster only provides ImageMagick version 6.2.4.

On my localhost I have 6.5.5 installed. There I use this command:

Code: Select all

identify -format "%[colorspace]" "/var/www/web1/html/image.jpg"
It works as I expected. But on my hoster's server it doesn't work (I test it via SSH). Using format options without brackets works very well, it's just the brackets that don't work. Is it a version incompatibility? What else can I do to find out the colorspace of an image?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: a compatibility question about version 6.2.4

Post by fmw42 »

your version is way to old. it was added 6.3.9-2

you can get the colorspace from the -verbose info:

convert image -verbose info:

or

identify -verbose image

You may have to use grep or sed (on unix) or something like that to extract the colorspace automtically

echo "$(identify -verbose rose:)" | grep "Colorspace"
Colorspace: RGB
codeswitch
Posts: 15
Joined: 2009-09-07T09:33:45-07:00
Authentication code: 8675309

Re: a compatibility question about version 6.2.4

Post by codeswitch »

Thank you, your grep-trick works.

It's not my fault, the hoster runs confixx with very old software (I would call it abandonware) and refuses to install new apps, while my customer refuses to look for a better hoster.

Anyway, thank you very much.
Post Reply