1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-02-07 11:36:25 +02:00

Remove color-related EXIF data when stripping ICC profile

This commit is contained in:
DarthSim 2023-01-30 17:13:39 +03:00
parent d5d3e32df0
commit a7e1b80ba9
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,8 @@
# Changelog
## [Unreleased]
### Change
- Remove color-related EXIF data when stripping ICC profile.
## [3.13.1] - 2023-01-16
### Fix

View File

@ -274,6 +274,9 @@ vips_icc_remove(VipsImage *in, VipsImage **out) {
if (vips_copy(in, out, NULL)) return 1;
vips_image_remove(*out, VIPS_META_ICC_NAME);
vips_image_remove(*out, "exif-ifd0-WhitePoint");
vips_image_remove(*out, "exif-ifd0-PrimaryChromaticities");
vips_image_remove(*out, "exif-ifd2-ColorSpace");
return 0;
}