Skip to content

Investigate Imager X upscaling uninentionally #112

@joshuapease

Description

@joshuapease

Despite allowUpscale being false, we seemed to be getting images that are too large on EFF.

Image

It's upscaling, yeah

This fixes it for me:
{% set _absoluteMaxWidth = 2600 -%}
{% set transformMaxWidth = props.transformMaxWidth ??? (image.width > _absoluteMaxWidth ? _absoluteMaxWidth : image.width) -%}

I'm looking at the ppimg docs to see if there's a way to enforce not upscaling instead

The story and callout images were looking really blown out / blown up and I realized it was making them big.

{% set transformMaxWidth = props.transformMaxWidth ??? min(image.width, 2600) %} {# Ensures the largest size does not exceed 2600 #}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions