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

Regenerate webp format #149

Open
1 task done
strarsis opened this issue Sep 19, 2021 · 0 comments
Open
1 task done

Regenerate webp format #149

strarsis opened this issue Sep 19, 2021 · 0 comments

Comments

@strarsis
Copy link

Feature Request

wp CLI media regenerate should also generate the webp format for thumbnails of already uploaded images.
WordPress 5.8 added native webp format support.
Currently media regenerate regenerates the thumbnails only in jpeg/png format, but doesn't also output them in webp format.

Is your feature request directly related to a specific, existing command?
wp media
wp media regenerate

Is your feature request about a new command, or a more general idea?
The existing media regenerate should be extended so that it can handle a very often occurring case (regenerating webp format from already uploaded media images).

Describe your use case and the problem you are facing
Use case: Existing WordPress sites with existing, already uploaded media prior to WordPress natively supporting the webp format.
Problem: wp media regenerate currently doesn't regenerate thumbnails (of already uploaded images) for the webp format.

Describe the solution you'd like
Some hook/trigger/code inside media regenerate so webp format is also generated for thumbnails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants