Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

AVIF support #7

Open
stopyransky opened this issue Aug 26, 2020 · 3 comments
Open

AVIF support #7

stopyransky opened this issue Aug 26, 2020 · 3 comments

Comments

@stopyransky
Copy link

Hi,

is there a chance to include AVIF file support in the plugin ?
It is new format for media files, not yet supported by all browsers but it's on the way.

Examples of implementation as Progressive Enhancement with AVIF:

<picture>
	<source srcset="img/photo.avif" type="image/avif">
	<source srcset="img/photo.webp" type="image/webp">
	<img src="img/photo.jpg" alt="Description of Photo">
</picture>

Sources:
https://reachlightspeed.com/blog/using-the-new-high-performance-avif-image-format-on-the-web-today/
https://www.ctrl.blog/entry/webp-avif-comparison.html

@KidkArolis
Copy link
Contributor

100%, will be adding that in the near future. Need to understand if Sharp's implementation will work or if another lib will be necessary.

@KidkArolis
Copy link
Contributor

There's some discussion here on sharp's support for avif: lovell/sharp#2289

@KidkArolis
Copy link
Contributor

Sharp added avif, so this should be possible to implement now!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants