Hi Sir/Madam,
We are using GroupDocs.Metadata library v18.6.
We use the codes to remove properties in JPG files.
format = new JpegFormat(filePath);
if (format == null)
{ return; }
JpegExifInfo exifInfo = (JpegExifInfo)((JpegFormat)format).ExifValues;
//exifInfo.Make = string.Empty;
//exifInfo.Model = string.Empty;
exifInfo.Artist = string.Empty;
((IExif)format).UpdateExifInfo(exifInfo);
format.Save(outPath);
When we try to remove one of the JPG properties(Author/Camera Serial Number/Camera Model/Camera Make), it will affect other JPG properties:
Case #1:
Selecting “Camera Make” only, affects the following fields:
Subject - replaced with data from Title field
Tags - data removed
Comments - data removed
Date Acquired - data removed
Resolution unit - data added
Color representation - data added
Camera maker - data removed
Camera Serial number - data removed
Case #2:
Selecting “Camera Model” only, affects the following fields:
Subject - replaced with data from Title field
Tags - data removed
Comments - data removed
Date Acquired - data removed
Resolution unit - data added
Color representation - data added
Camera model - data removed
Camera Serial number - data removed
Case #3:
Selecting “Camera Serial Number” only, affects the following fields:
Subject - replaced with data from Title field
Tags - data removed
Comments - data removed
Date Acquired - data removed
Resolution unit - data added
Color representation - data added
Camera Serial number - data removed
Case 4:
Selecting “Author” only, affects the following fields:
Subject - replaced with data from Title field
Tags - data removed
Comments - data removed
Authors - data removed
Date Acquired - data removed
Resolution unit - data added
Color representation - data added
Camera Serial number - data removed
Btw, we can’t get the UserComment of JPG file. We can only set it as empty.
FYI, for the affected Subject property, this may be fixed in another issue, but we didn’t upgrade to v18.8 and can’t try it. JPG file "Title" and "Subject" will be removed when removing other property You can have a try and verify if it’s fixed.
Here’s the test file we use:
comments.jpeg (60.0 KB)