feature/strip encoder parameter#1421
Conversation
|
I added the option to the global configuration and set the default values on the encoders to $manager = ImageManager::withDriver($driver, strip: true); // set global default for all operations
$result = $manager->read('exif.jpg')->toJpeg(); // uses global default
$result = $manager->read('exif.jpg')->toJpeg(strip: false); // overrides global default
$result = $manager->read('exif.jpg')->toJpeg(strip: true); // overrides global defaultI'm also thinking about renaming the option from |
deluxetom
left a comment
There was a problem hiding this comment.
Looks great, I like the global option, it makes it much easier.
As for GD, I agree, it just strips the exif metadata when encoding. I don't really like the method to create a new GD object and encoding to jpeg to remove it though as quality 100 for jpeg isn't lossless.
I would probably just disable the StripModifier for GD and throw an exception that the GD driver already strips metadata when encoding.
I think |
Co-authored-by: Thomas <thomas@sctr.net>
Co-authored-by: Thomas <thomas@sctr.net>
Co-authored-by: Thomas <thomas@sctr.net>
Co-authored-by: Thomas <thomas@sctr.net>
Co-authored-by: Thomas <thomas@sctr.net>
Co-authored-by: Thomas <thomas@sctr.net>
deluxetom
left a comment
There was a problem hiding this comment.
perfect, once thats merged, I'll fix image-driver-vips to add that modifier
Cool. You can use intervention image |
No description provided.