Page 1 of 1
IM working or not
Posted: 2016-02-11T22:20:14-07:00
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
Re: IM working or not
Posted: 2016-02-11T23:09:41-07:00
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.
Re: IM working or not
Posted: 2016-02-12T01:02:42-07:00
by Bonzo
I would suggest looking for the image upload section of your theme and see what it is doing.
Re: IM working or not
Posted: 2016-02-12T01:06:25-07:00
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.
Re: IM working or not
Posted: 2016-02-12T01:08:19-07:00
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.
Re: IM working or not
Posted: 2016-02-12T01:35:50-07:00
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.
Re: IM working or not
Posted: 2016-02-12T01:47:01-07:00
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.
Re: IM working or not
Posted: 2016-02-12T02:48:33-07:00
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.