govips
govips copied to clipboard
Don’t strip the color profile when stripping metadata
When using the generic StripMetadata
option, vips strips all fields, also those that are technically not “meta” data, but a key part of the data such as the color profile. This seems by design in vips (https://github.com/libvips/libvips/issues/1026), but it would be great if GoVips would improve on this, or at least offer the option to do so.
Hey eelco I think this is a great idea. Would you be willing to set up a simple PR? I would expect to review and merge it quickly!
Thanks for the contribution!
Did you try imageRef.RemoveMetadata()?
You'll need to set the StripMetadata option on export(/import) to False.