Return legacy image format if webp does not exist

Created on 8 October 2024, 6 months ago

Problem/Motivation

If for any reason generation of the webp file fails the response is just "Error generating image."
This results in pages with broken images.

Instead the failure should be logged, and an image returned in legacy format, so at least the page doesn't look broken.

Steps to reproduce

Look at an image on a page after the webp generation has failed.

Proposed resolution

If the webp file is not available then log a failed webp generation, and then defer the request to the parent download controller deliver method.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom dahousecat

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

Comments & Activities

Production build 0.71.5 2024