I'm using the Imager plugin and Craft for image compression.
Currently, I have something like this:
{% set imagerConfig = { jpegQuality: 80, pngCompressionLevel: 4 } %}
In another part of my code, I want to do something like:
{% set largeLogo = craft.imager.transformImage((logo.getUrl('LargeLogo')), imagerConfig) %}
Where I want to do something like this to imagerConfig
above:
{% set width = {width: 1000} %} or {%set widthRatio = {width: 1000, ratio: 4/2} %}
imagerConfig.Add(width) //what's the proper syntax for adding an item or even another object(like widthRatio above) to imagerConfig here?