Answers.Body: <p>Seems like you might be better using <a href="https://github.com/aelvan/Imager-Craft#colorblend-array" rel="nofollow noreferrer">colorBlend</a>?</p>
  
  <pre><code>{% set image = block.image.first() %}
  {% set transformedImage = craft.imager.transformImage(image, { 
    width: 1500,
    height: 700,
    effects: {
      colorBlend: ['rgb(0, 0, 0)', 0.4] }
    }
  }) %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-11T09:18:02.523Z
Answers.Text: Hi Seth, thanks for the suggestion. I've just tried this, but it didn't seem to make the image darker, unfortunately. It just seemed to desaturate the image a bit.
Answers.UserDisplayName: Stephen
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-11T08:37:11.237Z
Answers.LastActivityDate: 2017-04-11T08:37:11.237Z
Answers.UserDisplayName: Seth Warburton
Body: <p>I'd like to 'darken' an image using the Imager plugin. How would I go about doing this?</p>
  
  <p>I'll explain the exact effect I'm after in Photoshop terms: I have an image on one layer, then I create a new layer above it and fill it with black. I then change the opacity of the black layer to 40%. This is the end result that I'm trying to achieve with the Imager plugin (ImageMagick is available too).</p>
  
  <p>I realise I could add a div with a black background over the images and change the opacity of this div, but I think it would be nicer if I could do this with the Imager plugin instead if this is possible.</p>
  
  <p>This is the closest I've managed to get so far, but it doesn't quite match what I'm seeing in Photoshop:</p>
  
  <pre><code>{% set image = block.image.first() %}
  {% set transformedImage = craft.imager.transformImage(image, { 
    width: 1500,
    height: 700,
    effects: {
      vignette: ['none', 'black', 3],
      modulate: [100, 80, 100],
      gamma: 0.7 }
  }) %}
  </code></pre>
  
  <p>Thanks in advance for any help with this.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-04-12T14:53:41.360Z
Comments.Text: Do you have some kind of blend mode on the black layer, or is it just a normal semi-transparent layer on top of the image?
Comments.UserDisplayName: André Elvan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-04-12T14:56:32.800Z
Comments.Text: Hi André, it was just a normal semi-transparent layer on top of the image. No blend modes were used. I then reduced the opacity of this black layer to 40% and this is the result I was trying to reproduce.
Comments.UserDisplayName: Stephen
Tags: <image><plugin-imager>
Title: How to darken an image using the Imager plugin
ThreadText: # How to darken an image using the Imager plugin
  
  (Asked by: username_0 on 2017-04-10)
  
  I'd like to 'darken' an image using the Imager plugin. How would I go about doing this?
  
  I'll explain the exact effect I'm after in Photoshop terms: I have an image on one layer, then I create a new layer above it and fill it with black. I then change the opacity of the black layer to 40%. This is the end result that I'm trying to achieve with the Imager plugin (ImageMagick is available too).
  
  I realise I could add a div with a black background over the images and change the opacity of this div, but I think it would be nicer if I could do this with the Imager plugin instead if this is possible.
  
  This is the closest I've managed to get so far, but it doesn't quite match what I'm seeing in Photoshop:
  
  ```
  {% set image = block.image.first() %}
  {% set transformedImage = craft.imager.transformImage(image, { 
    width: 1500,
    height: 700,
    effects: {
      vignette: ['none', 'black', 3],
      modulate: [100, 80, 100],
      gamma: 0.7 }
  }) %}
  
  ```
  
  Thanks in advance for any help with this.
  
  **Tags:** image, plugin-imager
  
  > **Comments:**
  > **username_1**: Do you have some kind of blend mode on the black layer, or is it just a normal semi-transparent layer on top of the image?  
  > **username_0**: Hi username_1, it was just a normal semi-transparent layer on top of the image. No blend modes were used. I then reduced the opacity of this black layer to 40% and this is the result I was trying to reproduce.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-04-11. Score: 1
  
  Seems like you might be better using [colorBlend](https://github.com/aelvan/Imager-Craft#colorblend-array)?
  
  ```
  {% set image = block.image.first() %}
  {% set transformedImage = craft.imager.transformImage(image, { 
    width: 1500,
    height: 700,
    effects: {
      colorBlend: ['rgb(0, 0, 0)', 0.4] }
    }
  }) %}
  
  ```
  
  > **Comments:**
  > **username_0**: Hi username_2, thanks for the suggestion. I've just tried this, but it didn't seem to make the image darker, unfortunately. It just seemed to desaturate the image a bit.  
  
  ---
  
  