-
Notifications
You must be signed in to change notification settings - Fork 140
Description
Current in progress PR: #73
Related trac ticket: https://core.trac.wordpress.org/ticket/42920
See this comment for a detailed description: #21 (comment)
Original description:
Use picture element to enable modern formats like AVIF with fallback to more widely supported format like WebP or JPEG, including responsive srcset markup like current images. Issue - adamsilverstein/modern-images-wp#1 . references: The anatomy of responsive images - JakeArchibald.com & markup: I just want an image on my page
- Support markup with one or more image fallbacks
- Enable serving WebP/AVIF with JPEG fallback, for more complete browser support.
A good initial test case for this feature would be generating WebP images and JPEG images on upload, then using the picture element to specify the WebP with JPEG as the fallback. Although this scenario isn't likely to be that useful, it will set the path for the same approach with other formats.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status