Remove properties

Hello

Any sample for .net on how to remove all properties from png files? I have these:

dc:format
photoshop:ColorMode
xmp:CreateDate
xmp:CreatorTool
xmp:MetadataDate
xmp:ModifyDate
xmpMM:DocumentID
xmpMM:InstanceID
xmpMM:OriginalDocumentID

Safe to remove all? Thanks.

Hello, @australian.dev.nerds
We appreciate your interest in Aspose.Imaging.
You can remove all XMP data in any raster image by simply setting the property RasterImage.XmpData to null.

image.XmpData = null;
image.Save("image_without_xmp.png")

Or you could re-save the image without XMP data.

using var image = (RasterImage) Image.Load("your-file.png");
image.Save("image_without_xmp.png", new PngOptions() { XmpData = null } )

Here you can see more examples for Tiff/Jpeg, but in the same way, you could operate with any raster image that contains XMP data.
https://docs.aspose.com/imaging/net/developer-guide/how-to/clean-exif-data-in-tiff-image/
https://docs.aspose.com/imaging/net/manipulating-jpeg-images/#writing--modifying-exif-data

1 Like

Hello and thanks so much for your help.
If I’m not wrong, these formats are available as SAVE formats:
Features|Aspose.Imaging for .NET

  • Bmp
  • Tiff
  • Jpeg (v2.3 now supports own codec)
  • Png (v2.5 now supports own codec)
  • Gif
  • Psd (v2.7 added Jpeg thumbnails encoding/decoding support)
  • Jpeg2000 (v2.8)
  • WebP
  • Ico

These properties or exif data exist in how many of the above formats which Aspose can remove?
I think all of the above 9 formats have exif data which can be removed using Aspose?
Thanks.

And each of supported formats, has which exif fields?
For TIFF, this is specific:
TiffOptions.frameOptions…
For each other format, where’s the exif fields enum?
Thanks,

Aspose.Imaging supports work with XMP data in the following formats:
APNG, Dicom, Gif, Jpeg2000, Jpeg, Png, Psd, Tiff.

1 Like

Please, take a look at the following pages:

And here

take a look at all namespaces started with Aspose.Imaging.Xmp
If there is anything else I can help you with, please let me know.
Best regards!

1 Like

Hello and thanks,
https://reference.aspose.com/imaging/net/aspose.imaging/fileformat/

Html5Canvas 400000 The Html5 Canvas format
What is/are the possible file extension(s) of this format?

And what about the extensions of these: FOdg, Odg, Otg

And what’s FileFormat.Custom?

Hi!
Html5Canvas is an HTML file containing tag with vector operations. It has a “.html” file extension.
FOdg, Odg, Otg - the document files that contain vector images inside and could be produced by the LibreOffice Draw application.

Additional information about each format supported by Aspose.Imaging you can see at the page

Hello
For the above formats, Exif, Xmp, Iptc and Gps metadata removal are supported? Which ones available? :slight_smile:
Best

Hello, @australian.dev.nerds.
Sorry for the delay.
All these formats support metadata removal.

1 Like