From b587de7759dbec11c2fc59ae5c4b13615bdea060 Mon Sep 17 00:00:00 2001 From: Shlee Date: Thu, 13 Nov 2025 15:58:34 +1030 Subject: [PATCH] Update image.php --- config/image.php | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/config/image.php b/config/image.php index abff3474c..a136e46b8 100644 --- a/config/image.php +++ b/config/image.php @@ -7,12 +7,41 @@ return [ | Image Driver |-------------------------------------------------------------------------- | - | Intervention Image supports "GD Library" or "Imagick" to process - | images internally. You may choose one of them according to your PHP - | configuration. By default PHP's "GD Library" implementation is used. + | Intervention Image supports “GD Library” and “Imagick” to process images + | internally. Depending on your PHP setup, you can choose one of them. | - | Supported: "gd", "imagick" + | Included options: + | - gd = \Intervention\Image\Drivers\Gd\Driver::class + | - imagick = \Intervention\Image\Drivers\Imagick\Driver::class + | - vips = \Intervention\Image\Drivers\vips\Driver::class | */ + 'driver' => env('IMAGE_DRIVER', 'gd'), + + /* + |-------------------------------------------------------------------------- + | Configuration Options + |-------------------------------------------------------------------------- + | + | These options control the behavior of Intervention Image. + | + | - "autoOrientation" controls whether an imported image should be + | automatically rotated according to any existing Exif data. + | + | - "decodeAnimation" decides whether a possibly animated image is + | decoded as such or whether the animation is discarded. + | + | - "blendingColor" Defines the default blending color. + | + | - "strip" controls if meta data like exif tags should be removed when + | encoding images. + */ + + 'options' => [ + 'autoOrientation' => true, + 'decodeAnimation' => true, + 'blendingColor' => env('IMAGE_BLENDINGCOLOR', 'ffffff'), + 'strip' => env('IMAGE_STRIP', true), + ] ];