private static void ClearExifDataKeepColorProfile(IMagickImage image) { var cp = image.GetColorProfile(); image.Strip(); image.Comment = ""; if (cp != null) { image.AddProfile(cp); } }