Updated image driver in ImageManager

The image driver used in the ImageManager instance has been switched from Imagick to Gd. This change should not affect any existing functionality but may improve performance and compatibility with different server setups.
This commit is contained in:
Jeroen De Meerleer 2024-09-16 15:45:47 +02:00
parent e6a112da9f
commit fc36888b7d
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -11,7 +11,7 @@ use Intervention\Image\ImageManager;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
// create an image manager instance with favored driver // create an image manager instance with favored driver
$manager = new ImageManager(\Intervention\Image\Drivers\Imagick\Driver::class); $manager = new ImageManager(\Intervention\Image\Drivers\Gd\Driver::class);
if(php_sapi_name() == 'cli') { if(php_sapi_name() == 'cli') {
$args = NULL; $args = NULL;
parse_str($argv[1], $args); parse_str($argv[1], $args);