Skip to content

Commit 6ee3d22

Browse files
authored
Implement driver option "strip" (#14)
1 parent 54716e9 commit 6ee3d22

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"require": {
2323
"php": "^8.1",
2424
"illuminate/support": "^8|^9|^10|^11",
25-
"intervention/image": "^3.7"
25+
"intervention/image": "^3.11"
2626
},
2727
"require-dev": {
2828
"phpunit/phpunit": "^10.0 || ^11.0",

config/image.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,15 @@
3232
| decoded as such or whether the animation is discarded.
3333
|
3434
| - "blendingColor" Defines the default blending color.
35+
|
36+
| - "strip" controls if meta data like exif tags should be removed when
37+
| encoding images.
3538
*/
3639

3740
'options' => [
3841
'autoOrientation' => true,
3942
'decodeAnimation' => true,
4043
'blendingColor' => 'ffffff',
44+
'strip' => false,
4145
]
4246
];

src/ServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public function register()
4343
driver: config('image.driver'),
4444
autoOrientation: config('image.options.autoOrientation', true),
4545
decodeAnimation: config('image.options.decodeAnimation', true),
46-
blendingColor: config('image.options.blendingColor', 'ffffff')
46+
blendingColor: config('image.options.blendingColor', 'ffffff'),
47+
strip: config('image.options.strip', false)
4748
);
4849
});
4950
}

0 commit comments

Comments
 (0)