Hi!
The docs says that there’s is possible to change the default white background of auto generated resized images (JPG) to other color as an option. But there’s no info how to do that. So I have a code like this:
<img alt="{{ zdj.alt|raw }}" title="{{ zdj.alt|raw }}"
src="{{ page.find('/images').media[zdj.foto].resize(720).quality(73).url }}"
srcset="
{{ page.find('/images').media[zdj.foto].resize(360).quality(75).url }} 360w,
{{ page.find('/images').media[zdj.foto].resize(720).quality(73).url }} 720w,
{{ page.find('/images').media[zdj.foto].resize(960).quality(72).url }} 960w
" loading="lazy" width="{{ page.find('/images').media[zdj.foto].width }}" height="{{ page.find('/images').media[zdj.foto].height }}">
My images have to be resized based on the width, but I have plenty of images in portrait orientation that have too little width to match the requirements, so that I get white background on both sides. That’s how it looks like.
I’d like to change the background added to images to darker. How can I do that as there’s no background() method? It would be even better if I could change that globally for the whole site.
Is it possible? Thanx in advance!