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:
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:
|
1 |
identify -verbose *.jpg | grep 'Colorspace' |
This should output the colorspace for each image if the Imagemagick software exists on your box. For example:
If you find that you have images saved in the incorrect colo(u)rspace, then to fix this run the following command:
|
1 |
mogrify -colorspace rgb *.jpg |
You can of course do this for specific filenames as such:
|
1 |
identify -verbose myImage.jpg | grep 'Colorspace' |
And to fix it:
|
1 |
mogrify -colorspace rgb myImage.jpg |

