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

WordPress.com REST API: consider supporting AVIF as a supported media type #38029

Open
Tracked by #36721
jeherve opened this issue Jun 25, 2024 · 0 comments
Open
Tracked by #36721

Comments

@jeherve
Copy link
Member

jeherve commented Jun 25, 2024

Core recently enabled AVIF uploads:

https://core.trac.wordpress.org/ticket/53167

We should consider better support for AVIF in our APIs, even if Photon itself does not yet support AVIF: #35432

if ( in_array( $ext, array( 'jpg', 'jpeg', 'png', 'gif', 'webp' ), true ) ) {

if ( in_array( $ext, array( 'jpg', 'jpeg', 'png', 'gif', 'webp' ), true ) ) {

'jetpack_supported_media_sideload_types',

// Handle early mime type scanning for images.
image = /(?:jpe?g|png|gif|webp)$/i.exec( file.name );

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