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

Add AVIF support to the Modern Image Formats plugin #1151

Open
adamsilverstein opened this issue Apr 16, 2024 · 3 comments · May be fixed by #1176
Open

Add AVIF support to the Modern Image Formats plugin #1151

adamsilverstein opened this issue Apr 16, 2024 · 3 comments · May be fixed by #1176
Labels
[Focus] Images Issues related to the Images focus area [Plugin] Modern Image Formats Issues for the Modern Image Formats plugin (formerly WebP Uploads) [Type] Feature A new feature within an existing module

Comments

@adamsilverstein
Copy link
Member

Feature Description

Now that WordPress 6.5+ supports the AVIF format, we should add support in the Modern Image Formats plugin (previously "WebP uploads").

Details

  • This feature should allow the user to choose between outputting WebP or AVIF images for uploaded images. We could add a dropdown to select the output format in the "uploading files" section of Settings->Media eg "Choose the image output format".
  • The AVIF option should only be available if the server actually supports AVIF. otherwise the UI should remain unchanged
  • When the user selects the AVIF format, all images are output in AVIF where they are currently output in WebP (nothing else changes)
  • The current checkbox for "Generate JPEG files in addition to WebP" needs to be renamed. We can remove the WebP mention, eg. "In addition, generate JPEG images" or "Generate JPEG fallback images"

Questions

  • Can we make AVIF the default for new installs?

Related:

#11
#1133

@adamsilverstein adamsilverstein added [Focus] Images Issues related to the Images focus area [Type] Feature A new feature within an existing module labels Apr 16, 2024
This was referenced Apr 16, 2024
@joemcgill joemcgill added the [Plugin] Modern Image Formats Issues for the Modern Image Formats plugin (formerly WebP Uploads) label Apr 16, 2024
@phanduynam
Copy link

How to remove old image format suffix when moving to new image format webp and aivf in the future?

@adamsilverstein
Copy link
Member Author

adamsilverstein commented Apr 23, 2024

How to remove old image format suffix when moving to new image format webp and aivf in the future?

@phanduynam we decided on this naming convention during development to avoid naming conflicts, for example if you upload file1.jpg and file1.jpeg, both would be converted to file1.webp without this naming convention, causing a possible naming conflict.

I don't see a direct way to change this with a filter.

Is this causing an issue for you or more something you noticed that seemed wrong? I guess filenames are considered an implementation detail most users shouldn't care about.

@adamsilverstein
Copy link
Member Author

I started work on adding AVIF support in #1176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Focus] Images Issues related to the Images focus area [Plugin] Modern Image Formats Issues for the Modern Image Formats plugin (formerly WebP Uploads) [Type] Feature A new feature within an existing module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants