-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Despite allowUpscale being false, we seemed to be getting images that are too large on EFF.
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
Labels
No labels