Key Features of GroupDocs.Redaction for Python via .NET

Remove Metadata in IMAGE Files with Python

Use Python tools to protect IMAGE documents. Delete hidden info before sharing or publishing.

How to Remove Metadata from Image Files

GroupDocs.Redaction helps Python via .NET developers clean document metadata in just a few steps.

  1. Set up a Redactor and load your Image file.
  2. Pick the metadata you want to erase.
  3. Run the redaction process.
  4. Save your updated file.
import groupdocs.redaction as gr
import groupdocs.redaction.redactions as grr

# Clean hidden fields in IMAGE files

# Select metadata fields to redact
redaction = grr.EraseMetadataRedaction(grr.MetadataFilters.ALL)

# Use Redactor to open the file
with gr.Redactor("input.png") as redactor:

    # Process and export
    result = redactor.apply(redaction)
    redactor.save()
pip install groupdocs-redaction-net
click to copy
copied
More examples Documentation

Clean Sensitive Data from Any File

GroupDocs.Redaction for Python via .NET removes text, images, and metadata that shouldn’t be shared. Works with many formats.

Main Redaction Tools

Remove Text

Delete words or patterns from your files to protect sensitive info.

Mask Images

Cover parts of images that need to stay private.

Delete Metadata

Erase hidden data from file properties like Author or Title.

Remove Metadata Fields

This example shows how to delete metadata like Author and Title in IMAGE files.

Python

import groupdocs.redaction as gr
import groupdocs.redaction.options as gro
import groupdocs.redaction.redactions as grr
import groupdocs.pydrawing as grd

# Choose Author field
redaction_author = grr.MetadataSearchRedaction("[A-Za-z0-9 ]+", "GroupDocs Company")
redaction_author.filter = grr.MetadataFilters.AUTHOR

# Choose Title field
redaction_title = grr.MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs.Redaction Usage")
redaction_title.filter = grr.MetadataFilters.TITLE

# Open file in redactor
with gr.Redactor("source.png") as redactor:

    # Run redaction
    redactions = [
      redaction_author,
      redaction_title
    ]
    result = redactor.apply(redactions)

    # Save final document
    save_options = gro.SaveOptions()
    save_options.add_suffix = True
    save_options.rasterize_to_pdf = False
    result_path = redactor.save(save_options)
pip install groupdocs-redaction-net
click to copy
copied
More examples Documentation

About GroupDocs.Redaction for Python via .NET

GroupDocs.Redaction gives Python developers the tools to remove sensitive data from IMAGE files including text, images, and metadata.
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.

Use Python to Remove IMAGE Metadata

Quickly clean metadata in IMAGE files using Python. Keep your documents safe and private.

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