Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-01T09:04:37.587Z
Answers.LastActivityDate: 2016-04-01T09:04:37.587Z
Answers.UserDisplayName: André Elvan
Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-01T08:03:52.047Z
Answers.LastActivityDate: 2016-04-26T02:06:44.430Z
Answers.LastEditDate: 2016-04-26T02:06:44.430Z
Answers.UserDisplayName: patrick.altair
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-31T21:30:37.140Z
Comments.Text: What image driver are you using, gd or imagick? What colorspace is the original file in? Does it have a color profile?
Comments.UserDisplayName: André Elvan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-31T21:38:43.627Z
Comments.Text: @AndréElvan might be onto something. There's this new `preserveColorProfile` config setting that might solve it?
Comments.UserDisplayName: carlcs
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-31T22:37:08.470Z
Comments.Text: 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.
Comments.UserDisplayName: André Elvan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-04-01T08:01:28.310Z
Comments.Text: @AndréElvan  I have both gd and imagick installed. The file is sRGB. As you suspected 'preserveImageColorProfiles' => true did solve the problem. Thanks.
Comments.UserDisplayName: patrick.altair
Tags: <image-transforms>
Title: Image transform is turning my jpegs dark
ThreadText: # 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**: @username_1 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**: @username_1  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
  
  ```
  
  
  ---
  
  