Divide by zero error with SVG image.

Created on 28 February 2025, 2 months ago

Problem/Motivation

When using 'Easy Responsive Images' as an image formatter and uploading an SVG image, there may be no height or width to calculate an aspect ratio. A divide by zero error ensues.

Proposed resolution

Check for null values and use "1" as an aspect ratio for a sane value.

πŸ› Bug report
Status

Active

Version

1.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States boinkster

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