decaporg / decaporg/decap-cms

Squoosh Integration

Open
#5,419 1 comment 3 reactions 0 assignees View on GitHub
area: media-library type: feature
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**Is your feature request related to a problem? Please describe.**
The image widget, and media library currently does not support compressing images and working with a proper srcset with multiple formats.

**Describe the solution you'd like**
Google has created a web app that resizes, compress and encode images in various formats for the web, it has now landed a CLI and [API](https://github.com/GoogleChromeLabs/squoosh/commit/c04bb54f0d2b9f8a16803be1c40187a79939b17b) making possible to embed into any web app.
I'd love to see it implemented on the Image widget, it could be used to create from a single uploaded image multiple sizes, quality and formats, like Avif and webp. It would make using srcset a breeze!

**Describe alternatives you've considered**
I've not found any alternatives to Squoosh yet, and Squoosh is very well maintened by google.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.