Serve scaled images instead of original

Created on 22 April 2021, about 3 years ago
Updated 5 April 2023, over 1 year ago

Problem/Motivation

I'm grateful to have this at all, since core currently can't handle sizing at all, but it would be neat if it could serve a resized image instead of the original.

The current implementation serves the original image and uses the width and height attributes to scale it to the selected size.

This can cause performance issues with larger images being scaled down to smaller sizes, as the filesize can be much higher than if an appropriately-sized image was served.

Steps to reproduce

Upload a large image (say, a desktop wallpaper). Size it to be smaller than the original image. View the image being served and note that it is the original size.

Proposed resolution

Serve a scaled image.

Remaining tasks

Figure out how to do this.

User interface changes

None, unless you think this should be opt-in, in which case there'd need to be a way to turn it on and off.

API changes

None, I think.

Data model changes

None, I think.

✨ Feature request
Status

Postponed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada kpaxman

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024