<p>The file probably has a color profile, which gets removed by Craft by default. You can tell Craft to preserve the color profile by setting the <code>preserveImageColorProfiles</code> in your config file.</p>

<pre><code>'preserveImageColorProfiles' =&gt; true
</code></pre>

CC BY-SA 3.0
2016-04-01T09:04:37.587Z
2016-04-01T09:04:37.587Z
André Elvan
<p>Setting 'preserveImageColorProfiles' => true, in craft/config/general.php solved the problem.</p>

<p><a href="https://craftcms.com/docs/config-settings#preserveImageColorProfiles" rel="nofollow">https://craftcms.com/docs/config-settings#preserveImageColorProfiles</a></p>

<p>Note that you need to be running at least <a href="https://craftcms.com/changelog#build2778" rel="nofollow">Craft 2.6.2778</a> for this config setting to work.</p>

CC BY-SA 3.0
2016-04-01T08:03:52.047Z
2016-04-26T02:06:44.430Z
2016-04-26T02:06:44.430Z
patrick.altair
<p>I'm experiencing a strange effect where an image transform is causing my images to turn very dark when compared to their originals. I have ImageMagick and gd installed. The images are all sRGB. Some have Adobe RGB profiles, some have no profiles.</p>

<p>The image transform makes the jpeg 1200px wide, height auto, quality high. Not sure what could be causing the problem.</p>

CC BY-SA 3.0
2016-03-31T21:30:37.140Z
What image driver are you using, gd or imagick? What colorspace is the original file in? Does it have a color profile?
André Elvan
CC BY-SA 3.0
2016-03-31T21:38:43.627Z
@AndréElvan might be onto something. There's this new `preserveColorProfile` config setting that might solve it?
carlcs
CC BY-SA 3.0
2016-03-31T22:37:08.470Z
Yeah, `'preserveImageColorProfiles' => true` could solve it. But ideally, the file should have been saved for web without a profile, or srgb, so.. But there's also this weird thing where old versions of ImageMagick would make images a lot darker when converting from a colorspace without dynamic color range, to a normal jpeg (which has dynamic color space). But, I guess that's a more obscure case.
André Elvan
CC BY-SA 3.0
2016-04-01T08:01:28.310Z
@AndréElvan  I have both gd and imagick installed. The file is sRGB. As you suspected 'preserveImageColorProfiles' => true did solve the problem. Thanks.
patrick.altair
<image-transforms>
Image transform is turning my jpegs dark
# Image transform is turning my jpegs dark

(Asked by: username_0 on 2016-03-31)

I'm experiencing a strange effect where an image transform is causing my images to turn very dark when compared to their originals. I have ImageMagick and gd installed. The images are all sRGB. Some have Adobe RGB profiles, some have no profiles.

The image transform makes the jpeg 1200px wide, height auto, quality high. Not sure what could be causing the problem.

**Tags:** image-transforms
> **Comments:**
> **username_1**: What image driver are you using, gd or imagick? What colorspace is the original file in? Does it have a color profile?  
> **username_2**: @AndréElvan might be onto something. There's this new `preserveColorProfile` config setting that might solve it?  
> **username_1**: Yeah, `'preserveImageColorProfiles' => true` could solve it. But ideally, the file should have been saved for web without a profile, or srgb, so.. But there's also this weird thing where old versions of ImageMagick would make images a lot darker when converting from a colorspace without dynamic color range, to a normal jpeg (which has dynamic color space). But, I guess that's a more obscure case.  
> **username_0**: @AndréElvan  I have both gd and imagick installed. The file is sRGB. As you suspected 'preserveImageColorProfiles' => true did solve the problem. Thanks.  

---

## 2 answers

### Answer by username_0 on 2016-04-01. Score: 7 | Accepted answer

Setting 'preserveImageColorProfiles' => true, in craft/config/general.php solved the problem.

<https://craftcms.com/docs/config-settings#preserveImageColorProfiles>

Note that you need to be running at least [Craft 2.6.2778](https://craftcms.com/changelog#build2778) for this config setting to work.


---

### Answer by username_1 on 2016-04-01. Score: 2

The file probably has a color profile, which gets removed by Craft by default. You can tell Craft to preserve the color profile by setting the preserveImageColorProfiles in your config file.
'preserveImageColorProfiles' => true


---

