-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strip META but Preserve ICC Color Profiles #278
Comments
This should really be the default option for all these image optimisiation things - stripping ICC profiles is not a lossless operation (especially in a world no colour managed web browsers as we now live in). @terryupton You can generally solve this at your end for now by using your own option string for the optimisations e.g.
|
I'll put this on my todo-list for the next version of Imager I'm working on, and see what I can come up with. At the moment I'm using the built-in @terryupton Just to be clear, you're only transforming the image using width/height and similar, or are you also doing @bossanova808 That's a nice hack. :) |
@aelvan no effects just size transforms. |
(I am using effects....can't deal with transforms without some image sharpening happening!) |
Is there any way Imager could be configured to strip the meta data but only keep the ICC Color Profiles? I believe this would still result in slightly smaller sizes, one of the benefits of removing the META data, but still ensuring the image is correct.
I have a series of black and white images that are getting darkened when I set 'removeMetadata' => true, but setting it to false is adding a good 30KB to the larger images.
Here are some comparisons.
Original Image
'removeMetadata' => false
313KB
1164 × 1601px
Colour space: Grey
Colour Profile: Generic Gray Gamma 2.2 Profile
'removeMetadata' => true
289KB
1164 × 1601px
Colour space: Grey
I am not entirely sure where the Colour space: grey is getting set? is this something Imager/iMagick is doing?
The text was updated successfully, but these errors were encountered: