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 Request: Add support for AVIF images #30267

Closed
cybrkyd opened this issue May 12, 2024 · 2 comments
Closed

Feature Request: Add support for AVIF images #30267

cybrkyd opened this issue May 12, 2024 · 2 comments
Labels
suggestion Feature suggestion

Comments

@cybrkyd
Copy link

cybrkyd commented May 12, 2024

Pitch

In January 2024, Edge finally joined the other major browsers in supporting the AVIF image format.

Please add support for AVIF to Mastodon.

Like WEBP, this next-gen format is gaining traction. It would be great to have built-in support for when a user posts, for example, a URL which has as its main thumbnail an AVIF image.

Motivation

Like WEBP, this next-gen format is gaining traction. It would be great to have built-in support for when a user posts, for example, a URL which has as its main thumbnail an AVIF image.

@cybrkyd cybrkyd added the suggestion Feature suggestion label May 12, 2024
@renchap
Copy link
Sponsor Member

renchap commented May 12, 2024

Kind of duplicate of #20896

Supporting multiple formats for user-facing images depending on browser support would require a full rewrite of our media pipeline. When / if we do that, this will probably come through dynamic transcoding of images using a 3rd party software (like imgproxy).

Closing as it is part of a larger topic that is in our backlog.

@renchap renchap closed this as completed May 12, 2024
@cybrkyd
Copy link
Author

cybrkyd commented May 12, 2024

Hopefully this clarifies, sorry for lack of detail initially. I'm not asking for the final cached image to be AVIF which is what issue #20896 is all about.

I'm referring to the actual incoming pre-cache mime type "AVIF" not being pulled into Mastodon in the first place. So, when adding a link which has:

<meta property="og:image" content="https://example.com/image.AVIF>

Mastodon will take JPEG|PNG|BMP|WEBP etc and then do the conversion to whatever the preferred final storage option is (webp currently, I believe).

My FR is to request that AVIF is added to the pre-cache block of images which Mastodon accepts in prior to conversion. E.G. JPEG|PNG|BMP|WEBP|AVIF >> then convert to final storage state.

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

No branches or pull requests

2 participants