diff --git a/composer.json b/composer.json index d04bcd5..f6bb16f 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "require": { "php": "^8.1", "illuminate/support": "^8|^9|^10|^11", - "intervention/image": "^3.7" + "intervention/image": "^3.11" }, "require-dev": { "phpunit/phpunit": "^10.0 || ^11.0", diff --git a/config/image.php b/config/image.php index 503ec76..d346586 100644 --- a/config/image.php +++ b/config/image.php @@ -32,11 +32,15 @@ | 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' => 'ffffff', + 'strip' => false, ] ]; diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 02e8fbf..cf552a5 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -43,7 +43,8 @@ public function register() driver: config('image.driver'), autoOrientation: config('image.options.autoOrientation', true), decodeAnimation: config('image.options.decodeAnimation', true), - blendingColor: config('image.options.blendingColor', 'ffffff') + blendingColor: config('image.options.blendingColor', 'ffffff'), + strip: config('image.options.strip', false) ); }); }