Core Features of GroupDocs.Redaction for Python via .NET

Clean Metadata in JPEG via Python

Secure your JPEG files by removing hidden metadata using simple tools built for Python.

Steps to Clean Jpeg Metadata

GroupDocs.Redaction makes metadata removal fast and easy for your Python via .NET apps.

  1. Set up a Redactor and open your Jpeg document.
  2. Pick options to remove metadata fields.
  3. Run redaction to clean up the file.
  4. Save the new version with no hidden data.
import groupdocs.redaction as gr
import groupdocs.redaction.redactions as grr

# Clean up metadata in JPEG

# Choose metadata fields to clean
redaction = grr.EraseMetadataRedaction(grr.MetadataFilters.ALL)

# Open the file using Redactor
with gr.Redactor("input.jpg") as redactor:

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

Protect Privacy in Every File

GroupDocs.Redaction for Python via .NET gives you control over sensitive data in documents. Remove hidden content in text, images, and metadata.

Metadata Redaction Features

Find and Erase Text

Scan for keywords or private info and remove it from the document.

Hide Image Details

Cover image areas that shouldn’t be seen by others.

Edit File Metadata

Change or delete metadata fields to protect document info.

Edit Metadata Fields

This example walks through removing or modifying fields like Author and Title in a JPEG 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

# Open the JPEG file
with gr.Redactor("source.jpg") as redactor:

    # Run the cleanup process
    redactions = [
      redaction_author,
      redaction_title
    ]
    result = redactor.apply(redactions)

    # Save the new version
    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

Learn About GroupDocs.Redaction for Python via .NET

GroupDocs.Redaction gives Python developers simple tools to remove text, images, and metadata from JPEG documents.
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.

Clean JPEG Metadata with Python

Use Python to remove hidden and private data from your JPEG documents quickly and easily.

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