-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
AVIF support #225
Comments
So I did look into adding support for AVIF -- I think technically, you could add support for it right now if you wanted to, you'd just need to configure another image variant creator. The issue is that the tooling around AVIF isn't that great right now. You either need to download a raw binary, or you need to install the Go runtime, and some other server-side setup that's a bit messy at the moment. I'm very likely to support this soon-ish anyway, but keep in mind that the encoding time for AVIF images is also quite long. |
Hey Andrew |
I'm going to keep this open if you don't mind... I do plan to do it! |
I know we have talked this over too @khalwat - Just read this over at Smashing Magazine which might provide more insight on AVIF encoding improvements.
|
Yeah the tooling is definitely getting there! One previously rather large downside is what it took to install the needed packages, but I'll see if that has improved as well. |
Was wondering, is there any update on this? Not sure if it's easier atm to generate avif? |
Is there any progress on this, with libavif being past 1.0.0? |
So technically ImageOptimize has always supported avif, or any other format you might want, via the config: 'imageVariantCreators' => [
// webp variant creator
'cwebp' => [
'commandPath' => '/usr/bin/cwebp',
'commandOptions' => '',
'commandOutputFileFlag' => '-o',
'commandQualityFlag' => '-q',
'imageVariantExtension' => 'webp',
],
], ref: https://github.com/nystudio107/craft-imageoptimize/blob/develop-v4/src/config.php#L223 Where you can add whatever variant creator you want, including |
@khalwat just a question to that one, will you integrate it soon or do we need to work with the workaround? Thx |
I don't have a timetable for adding AVIF support, primarily because it's so resource intensive that doing it on your own VPS is pretty rough. It's better to use a service that supports it imo. |
Would this be the same process when using the Sharp based serverless image handler? |
It would be nice to have AVIF support in Image Optimize.
The text was updated successfully, but these errors were encountered: