GoogleChromeLabs / squoosh

Make images smaller using best-in-class codecs, right in the browser.
https://squoosh.app
Apache License 2.0
21.7k stars 1.52k forks source link

Integrate with WordPress media upload #1122

Open yogeshbeniwal opened 3 years ago

yogeshbeniwal commented 3 years ago

Such an amazing tool Squoosh is, can do so much help for huge numbers of users if integrated with WordPress media upload workflow

Is your feature request related to a problem? Please describe. Currently users have to do extra 1-2 steps before uploading images to WordPress

Describe the solution you'd like Integrate Squoosh with WordPress media upload for automatic conversion on upload, via a plugin may be.

surma commented 3 years ago

cc @adamsilverstein :)

xfalcox commented 3 years ago

Kinda what we did in Discourse:

https://blog.discourse.org/2021/07/faster-user-uploads-on-discourse-with-rust-webassembly-and-mozjpeg/

adamsilverstein commented 3 years ago

Hey @yogeshbeniwal thanks for the issue. I've been thinking along the same lines, in part to get support for more modern formats into WordPress installs where the backend doesn't support those formats. I am tracking the work here: https://github.com/adamsilverstein/modern-images-wp/issues/18

@xfalcox Very cool! In WordPress we always upload the user's original image because the system may need to re-generate sub sized images at any time, for example if they change themes.

techieshark commented 2 years ago

Amazing idea, I had similar thoughts. @yogeshbeniwal did you progress this in any way by any chance?

yogeshbeniwal commented 2 years ago

@techieshark Not yet, I think it tracked here for further considerations https://github.com/WordPress/performance/issues/17