When loading an image without any exif data and then saving it, I see the new image has some exif data added to it (see image - left is saved from Aspose.Image, right is the original)
image.png (8.5 KB)
how can I prevent that data from being added?
When loading an image without any exif data and then saving it, I see the new image has some exif data added to it (see image - left is saved from Aspose.Image, right is the original)
image.png (8.5 KB)
how can I prevent that data from being added?
@DanAvni you can use example of code from How to clean exif data in tiff image|Documentation to remove exif data, also you can review Manipulating JPEG Images|Documentation to learn more about exif manipulation in aspose.imaging
@samer.el-khatib , the source image has no exif data (I verified it now again) and still when saving a jpeg through your library the exif data is added as shown in the picture on the original post
Hello @DanAvni ,
Jpeg stores its Quality value inside Xmp data, so this is the only record that is contained in an exported Jpeg, when you remove explicitly metadata.
Attached. you can then compare it using BeyondCompare to see the image & exif data
ScreenCalibration.jpg (457.8 KB)
@DanAvni thanks for the provided file and for the report.
We were able to reproduce your issue. At the moment the only way to fully remove exif data from jpeg image is using RemoveMetadata() :
At the moment you can use
using (Image image = Image.Load(path))
{
image.RemoveMetadata();
image.Save();
}
However this will also remove the resolution data (Units and X,Y values) as we store it in exif.
We are going to investigate the proper way to transfer the resolution data.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): IMAGINGNET-7607
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.