What You Get with GroupDocs.Redaction for .NET

Erase Metadata in IMAGE Files via .NET

Keep your IMAGE files safe using C#. Protect business and personal data the easy way.

Clean Up Metadata in Image Files

Get started with GroupDocs.Redaction in your .NET app to clean file metadata.

  1. Create a Redactor and open your Image file.
  2. Choose options to remove hidden metadata entries.
  3. Apply redaction settings.
  4. Save the result.
// Remove hidden metadata from IMAGE files

// Open file with Redactor
using (Redactor redactor  = new Redactor("input.png"))
{
    // Add redaction rules for metadata
    var redaction = new EraseMetadataRedaction(MetadataFilters.All);
    
    // Process and save
    redactor.Apply(redaction);
    redactor.Save();
}
dotnet add package GroupDocs.Redaction
click to copy
copied
More examples Documentation

Clean Content in Any Document

GroupDocs.Redaction for .NET removes private text, image parts, or hidden fields. Make documents safe to share.

Main Features

Text Redaction

Find and remove private words and numbers.

Image Covering

Add image masks to cover visual information.

Metadata Redaction

Clear out metadata fields that could leak information.

Erase Sensitive Metadata

This sample explains how to delete specific metadata fields in a IMAGE document.

C#

//  Open IMAGE with the redactor
using (Redactor redactor  = new Redactor("source.png"))
{
    // Target the Author field
    MetadataSearchRedaction redactionAuthor = 
        new MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs Company")
    {
        Filter = MetadataFilters.Author
    };

    // Target the Title field
    MetadataSearchRedaction redactionTitle = 
        new MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs.Redaction Usage")
    {
        Filter = MetadataFilters.Title
    };

    // Redact the fields
    var redactions = new MetadataSearchRedaction[] { redactionAuthor, redactionTitle };
    redactor.Apply(redactions);

    // Save your document
    var saveOptions = new SaveOptions() { AddSuffix = true, RasterizeToPDF = false };
    var outputPath = redactor.Save(saveOptions);
}
dotnet add package GroupDocs.Redaction
click to copy
copied
More examples Documentation

About GroupDocs.Redaction for .NET

GroupDocs.Redaction helps C# users clean files by removing unwanted text, image parts, and metadata in IMAGE files.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Redaction for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Remove Metadata from IMAGE Using .NET

Erase sensitive data from IMAGE files with .NET redaction. Keep your files safe to share or store.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English