Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Keep only the smallest files #4

Open
homlett opened this issue Dec 29, 2021 · 3 comments
Open

feature: Keep only the smallest files #4

homlett opened this issue Dec 29, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@homlett
Copy link

homlett commented Dec 29, 2021

Hi,

Thanks a lot for this, finally an image optimization plugin that doesn't offend common sense! This is indeed the only right way to do the job, imo. I use a very similar approach, of course with the same underlying tools but entirely via the CLI, mainly when generating static websites, but it also works with live WP. It is essentially based on this great blog post: https://vincent.bernat.ch/en/blog/2021-webp-avif-nginx

So a possible improvement to Squidge might be to keep only the smallest files, as described in the linked blog post. I confirm that some images can surprisingly be smaller in JPEG than in WebP, or smaller in WebP than in AVIF. Also, the 10% delta mentioned is also an interesting idea I think.

Anyway, having this in a WP plugin is awesome.

@ainsleyclark
Copy link
Owner

Hey @homlett

Thank you very much for your kind words!

I think this is a great improvement. I will add this as a TODO to add in the next release.

Please spread the word about Squidge!

All the best.

@ainsleyclark ainsleyclark added the enhancement New feature or request label Dec 29, 2021
@ainsleyclark ainsleyclark self-assigned this Dec 29, 2021
@ainsleyclark ainsleyclark changed the title Keeping only the smallest files featureKeeping only the smallest files Dec 29, 2021
@ainsleyclark ainsleyclark changed the title featureKeeping only the smallest files feature: Keep only the smallest files Dec 29, 2021
@ainsleyclark
Copy link
Owner

Note: Add setting to Plug-in, to keep smallest files converted.

@homlett
Copy link
Author

homlett commented Dec 29, 2021

Thanks for considering this feature! This plugin is gonna to be great. You're right, adding an option in the settings is probably a good idea since some people won't necessarily want to use the smaller files but force a particular format when possible. Also, being able to set the delta (as a percentage) might be interesting for "advanced users". Keep up the good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants