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.