Get started with GroupDocs.Redaction in your .NET app to clean file metadata.
- Create a Redactor and open your Image file.
- Choose options to remove hidden metadata entries.
- Apply redaction settings.
- Save the result.
Get started with GroupDocs.Redaction in your .NET app to clean file metadata.
// 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();
}
GroupDocs.Redaction for .NET removes private text, image parts, or hidden fields. Make documents safe to share.

Find and remove private words and numbers.
Add image masks to cover visual information.
Clear out metadata fields that could leak information.
// 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);
}
Download GroupDocs.Redaction for free or get a trial license for full access!
Explore documentation, code samples, and community support to enhance your experience.
Erase sensitive data from IMAGE files with .NET redaction. Keep your files safe to share or store.

