Intervention / image

PHP Image Processing
https://image.intervention.io
MIT License
13.84k stars 1.5k forks source link

AVIF image support has been disabled #1289

Closed naseefpv closed 7 months ago

naseefpv commented 7 months ago

Describe the bug Not able to use AVIF format. Getting an error like:

imagecreatefromavif(): AVIF image support has been disabled at /var/www/platoshop-v2/vendor/intervention/image/src/Drivers/Gd/Decoders/FilePathImageDecoder.php:48)

Code Example

 $manager = new ImageManager(new Driver());
 $img = $manager->read($file);

Expected behavior It should read my avif file.

Environment (please complete the following information):

olivervogel commented 7 months ago

This seems to be due to the setup of the GD library on the server host and is not under the influence of Intervention Image.

Read how to setup Avif with GD properly.