I'm using Imagemagick to resize large images (jpgs, pngs and tiffs) and convert to jpg for use in the browser.
I use -strip to remove all unnecessary information and keep my images nice and clean.
But in the process I'm removing colour profiles. This is really noticeable when it's an AdobeRGB 1998 image as it becomes really flat.
Is there a way to strip everything unnecessary except for the colour profile? Lots of people have asked this on forums before but I've never seen a solid answer.
OP here, answering my own question for anyone who needs it in the future:
I've swapped -resize
for -thumbnail
and have removed -strip
. All seems good.
-thumbnail
strips the exif data, but leaves the colour profile intact.
It sounds like it's just for making small images, but you specify dimensions in exactly the same way as with -resize
so it's appropriate for any size of image.
I've had this live for about three weeks without problems so far, so happy to say this is a solid solution.