Bad values for image width attribute

Created on 25 September 2024, about 2 months ago

Problem/Motivation

Checking my website output with a HTML validator complains about bad (decimal) values on image width attribute for some images processed by ratio crop:

Error: Bad value 374.69244288225 for attribute width on element img: Expected a digit but saw . instead.
<img loading="lazy" src="/sites/site_xxx/files/styles/project_poster/public/2024-07/xxxx.jpg?itok=5sNLwW6q" width="396.48506151142" height="564" alt="xxxx" class="image-style-project-poster" />↩

I assume the module needs to return a whole number for width and height.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom mistergroove

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024