Page 1 of 1

a compatibility question about version 6.2.4

Posted: 2009-09-08T10:37:22-07:00
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?

Re: a compatibility question about version 6.2.4

Posted: 2009-09-08T11:29:08-07:00
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

Re: a compatibility question about version 6.2.4

Posted: 2009-09-09T06:43:17-07:00
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.