Read more

Images darken when getting converted with ImageMagick

Thomas Eisenbarth
July 15, 2016Software engineer at makandra GmbH

When using ImageMagick to manipulate images, you might see that images get darker when beeing modified by newer versions of ImageMagick.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

This usually happens with CMYK images beeing converted to RGB by IM.

Solution

At least in our version of ImageMagick (6.7.7) you can solve this by passing this parameter to ImageMagick -colorspace sRGB.
The RGB colorspace was okay for ImageMagick until version 6.6.9. RGB and sRGB switched Show archive.org snapshot obviously.

Posted by Thomas Eisenbarth to makandra dev (2016-07-15 10:55)