Key Features of GroupDocs.Redaction for Python via .NET

Clean Metadata from PHOTO Using Python

Protect your PHOTO documents by clearing hidden info with easy-to-use Python tools.

Steps to Erase Metadata from Photo

Use GroupDocs.Redaction in your Python via .NET project to clean document metadata in just a few steps.

  1. Set up a Redactor and open your Photo file.
  2. Pick which metadata fields to delete.
  3. Apply redaction to clean the file.
  4. Save the final version.
import groupdocs.redaction as gr
import groupdocs.redaction.redactions as grr

# Erase metadata in PHOTO documents

# Choose which metadata to redact
redaction = grr.EraseMetadataRedaction(grr.MetadataFilters.ALL)

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

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

Clean Up Files Before Sharing

GroupDocs.Redaction for Python via .NET helps remove data that shouldn’t be seen. Delete text, images, and hidden details in just a few clicks.

Useful Redaction Features

Text Removal

Find and delete sensitive words, numbers, or patterns.

Image Masking

Cover parts of images that hold private data.

Metadata Cleanup

Delete file details like Author, Title, or Comments.

Remove Specific Metadata

Follow this example to delete Author and Title fields in a PHOTO document.

Python

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

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

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

# Load the file into the redactor
with gr.Redactor("source.jpeg") as redactor:

    # Redact selected metadata
    redactions = [
      redaction_author,
      redaction_title
    ]
    result = redactor.apply(redactions)

    # Save the updated file
    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 users a way to clean up files by removing hidden content from text, images, and metadata in PHOTO.
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.

Redact Metadata from PHOTO with Python

Use Python to clear hidden metadata from PHOTO files. Keep documents clean and secure.

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