瀏覽代碼

Remove color-related EXIF data when stripping ICC profile

DarthSim 2 年之前
父節點
當前提交
a7e1b80ba9
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 2 0
      CHANGELOG.md
  2. 3 0
      vips/vips.c

+ 2 - 0
CHANGELOG.md

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

+ 3 - 0
vips/vips.c

@@ -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;
 }