Skip to content

Commit

Permalink
Implement driver option "strip" (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel authored Jan 18, 2025
1 parent 54716e9 commit 6ee3d22
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions config/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]
];
3 changes: 2 additions & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
});
}
Expand Down

0 comments on commit 6ee3d22

Please sign in to comment.