AVIF Support
#2664
Replies: 3 comments 4 replies
-
There is time, until all browsers add full support. |
Beta Was this translation helpful? Give feedback.
2 replies
-
We need avif support as well. The GD library supports it and we run php 8.2. |
Beta Was this translation helpful? Give feedback.
0 replies
-
So this has been merged: 83e902e @0xb4lint @freekmurze are the following changes correct: public function convert(string $file, Conversion $conversion = null): string
{
$pathToImageFile = pathinfo($file, PATHINFO_DIRNAME).'/'.pathinfo($file, PATHINFO_FILENAME).'.png';
$image = imagecreatefromavif($file);
imagepng($image, $pathToImageFile, 9);
imagedestroy($image);
return $pathToImageFile;
} Why is a PNG created and is it correct Thanks. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Would be great to have AVIF support !
see https://www.php.net/manual/en/function.imagecreatefromavif.php
It's only available in PHP8 though...
Also : https://github.com/spatie/image/releases/tag/2.2.0
Beta Was this translation helpful? Give feedback.
All reactions