Eager load Imager transforms in Craft Commerce I am using Imager to create my image transforms. I am on a category page and I want to list all of the products. 

I did a quick .with(['cf_shop_assets']) optimization and wanted to continue with the image transforms. 

Frankly, I don't know where to start? 

{% set products = craft.commerce.products.relatedTo(category).with(['cf_shop_assets']) %}
{% if products|length %}
    &lt;div class="shop_container block listing_format"&gt;
        {% for product in products %}

        {% set variants = product.variants %}
        {% set variant = product.defaultVariant %}

        &lt;div class="shop_item"&gt;
            &lt;div class="more_info"&gt;
                &lt;a href="{{ product.url }}"&gt;
                    {% set image = product.cf_shop_assets[0] ?? null %}
                    {% if image|length %}
                        {% set transformedImage = craft.imager.transformImage(image, {
                            width: 300,
                            quality: 90,
                            format: 'jpg',
                            bgColor: '#EFEFDE',
                            effects: { sharpen: true }
                        }) %}
                        &lt;figure&gt;
                            &lt;img src="{{ transformedImage.url }}" class="image_full_width" width="{{ transformedImage.width }}" height="{{ transformedImage.height }}" alt="{{ image.title }} {{ gl_meta.cf_altText }}" /&gt;
                        &lt;/figure&gt;
                    {% endif %}
                    &lt;h2&gt;{{ product.title }}&lt;/h2&gt;
                &lt;/a&gt;
            &lt;/div&gt;

            […]

        {% endfor %}
    &lt;/div&gt;
{% endif %}


The code works, but it only saves about 5 queries. 

Would somebody be so kind to show me how to eager load Imager transforms? 

I need Imager because I don't want to use transparent PNGs. There's no native way to transform a PNG to JPG and adding a background color. 

Is this even possible?
Eager loading is used to reduce the number of database queries. Imager doesn't store any data in the database, it's completely file-based, so it's not relevant to use eager-loading in relation to it.