IM working or not

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
Ingoo
Posts: 4
Joined: 2016-02-11T22:12:25-07:00
Authentication code: 1151

IM working or not

Post by Ingoo »

Hi all, I am probably the biggest noob here, so please go easy on me.

I am running a website hosted by Crazy Domains. My website is for a photography business, so image quality and accuracy is vital to me. The website is build on Wordpress using a ProPhoto theme. The theme has the option to 'Resize Images' using either GD, or ImageMagick (which it lists as experimental). When I log into my cPanel and check the PHP version it is currently set to 5.4 and shows that IM is enabled. However, the support team at ProPhoto have done testing at their end using sample images, and seem to be of the opinion that the issue is in the Crazy Domains installation/implementation of IM.

The issue is that the colour profile info (sRGB) is being stripped from images uploaded to the media gallery of my site, and all images come out way over saturated and red as a result.

As a completely helpless noobie, how can I investigate what is happening here?

Cheers,

Ingoo
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: IM working or not

Post by snibgo »

It's difficult to give general advice. Do you have access to the server's command line? Can you find what version of ImageMagick is installed? Can you find exactly what processing is being done to your images, ie what are the command lines?

If your site is "static", perhaps you can do all processing on your own computer, and disable any processing by the server.
snibgo's IM pages: im.snibgo.com
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: IM working or not

Post by Bonzo »

I would suggest looking for the image upload section of your theme and see what it is doing.
Ingoo
Posts: 4
Joined: 2016-02-11T22:12:25-07:00
Authentication code: 1151

Re: IM working or not

Post by Ingoo »

Bonzo wrote:I would suggest looking for the image upload section of your theme and see what it is doing.
Ok, and what exactly should I be looking for there? I drag and drop the image I want to upload. It suggests a width based on my site size and I follow that suggestion. However, WP and the PP theme then generate resized images for thumbnails and gallery views etc, that are out of my control.
Ingoo
Posts: 4
Joined: 2016-02-11T22:12:25-07:00
Authentication code: 1151

Re: IM working or not

Post by Ingoo »

snibgo wrote:It's difficult to give general advice. Do you have access to the server's command line? Can you find what version of ImageMagick is installed? Can you find exactly what processing is being done to your images, ie what are the command lines?

If your site is "static", perhaps you can do all processing on your own computer, and disable any processing by the server.
I had replied to this earlier...not sure where the reply went. Thanks for you prompt feedback.

I don't see any option for command line options, but I can ask the Crazy domains support team about these options.

How would I check if my site is considered "static"? Sorry, total noob here. I'm not sure what this means.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: IM working or not

Post by snibgo »

By "static", I mean, do your users upload their own images for your server to process? That would be "dynamic". But if you upload your own images, to be served in the same way to all your users, you could do any resizing or whatever on your own computer, so the server doesn't change them at all.
The issue is that the colour profile info (sRGB) is being stripped from images uploaded to the media gallery of my site, and all images come out way over saturated and red as a result.
I suggest you remove profiles. Some browsers respect profiles but others don't. As far as I know, the only colorspace universally respected is sRGB, with no embedded profiles.

(I haven't look at that problem for a couple of years. Perhaps modern browsers do respect profiles. But if your server is stripping them, then don't use them.)

To strip the profile yourself:

Code: Select all

convert in.tiff -profile sRGB.icc -strip out.tiff
If sRGB.icc isn't in your current directory, use its full path.
snibgo's IM pages: im.snibgo.com
Ingoo
Posts: 4
Joined: 2016-02-11T22:12:25-07:00
Authentication code: 1151

Re: IM working or not

Post by Ingoo »

snibgo wrote:By "static", I mean, do your users upload their own images for your server to process? That would be "dynamic". But if you upload your own images, to be served in the same way to all your users, you could do any resizing or whatever on your own computer, so the server doesn't change them at all.
The issue is that the colour profile info (sRGB) is being stripped from images uploaded to the media gallery of my site, and all images come out way over saturated and red as a result.
I suggest you remove profiles. Some browsers respect profiles but others don't. As far as I know, the only colorspace universally respected is sRGB, with no embedded profiles.

(I haven't look at that problem for a couple of years. Perhaps modern browsers do respect profiles. But if your server is stripping them, then don't use them.)

To strip the profile yourself:

Code: Select all

convert in.tiff -profile sRGB.icc -strip out.tiff
If sRGB.icc isn't in your current directory, use its full path.
I upload all my own images, in sRGB profile only, as that's supported by all browsers. In that sense the site is static. However, the image resize function takes place outside of my control, and needs to be enabled within the theme for it to function correctly.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: IM working or not

Post by Bonzo »

and needs to be enabled within the theme for it to function correctly.
This is why you need to see the code your theme is using. Try searching it for "convert" which is probably the imagemagick method that is being used. Of course the imagemagick code could be an external file; possibly an upload one.

We can not offer more advice without more information.
Post Reply