Jpeg display errors – colorspace CYMK vs RGB

Recently it was  discovered that there was a problem with a subset of images that our Treasure team had uploaded to the finds.org.uk website. They were not able to display properly on either Internet Explorer or Firefox and just produced the following image:

The IE Error box

The error message when an image cannot be displayed

After doing some searching around, the problem relates to the colo(u)rspace that the image is created within. At present IE and Firefox won’t render images in the CYMK space and this needs rectifying. As my images were a large batch, the best solution was to fix the problem with Imagemagick. To do this, follow these steps:

This should output the colorspace for each image if the Imagemagick software exists on your box. For example:

CMYK and RGB output

Shell prompt displaying the results of the command to identify colo(u)rspace

If you find that you have images saved in the incorrect colo(u)rspace, then to fix this run the following command:

You can of course do this for specific filenames as such:

And to fix it:

Leave a Reply