I think selecting image style for image, if we know its uri, should be possible directly in template instead of being hardcoded in render array.

{{ uri|image_style('thumbnail') }}

Comments

Anonymous’s picture

ivanjaros created an issue. See original summary.

star-szr’s picture

Status: Active » Closed (duplicate)
Related issues: +#2361299: Twig image style filter/function

Thanks, I think this is a duplicate of #2361299: Twig image style filter/function.