PDF4me icon

PDF4me

Comprehensive PDF and document processing: generate barcodes, convert files, extract data, manipulate images, and automate workflows with the PDF4ME API

Actions80

Overview

This node operation "Remove EXIF Tags From Image" is designed to strip EXIF metadata from image files. EXIF tags often contain sensitive information such as camera details, geolocation, date/time, and other metadata embedded in images. Removing these tags helps protect privacy and reduces file size slightly.

Common scenarios where this node is beneficial include:

  • Preparing images for public sharing or publication without revealing location or device info.
  • Complying with privacy regulations by removing personal metadata.
  • Cleaning images before archival or processing workflows.

Practical example:

  • A user receives photos uploaded by various users and wants to ensure no location data is leaked when publishing them on a website. This node can remove all EXIF tags from each image automatically.

Properties

Name Meaning
Input Data Type Choose how to provide the image file:
- Binary Data (image from previous node)
- Base64 String (base64 encoded image content)
- URL (link to image file)
Input Binary Field Name of the binary property containing the image file (used only if Input Data Type is Binary Data)
Base64 Image Content Base64 encoded string of the image content (used only if Input Data Type is Base64 String)
Image URL URL pointing to the image file (used only if Input Data Type is URL)
Output File Name Desired filename for the cleaned image after EXIF tags are removed
Image Type Type/format of the image: JPG or PNG
Async Enable asynchronous processing (true/false)

Output

The node outputs the cleaned image with all EXIF tags removed. The output includes:

  • A JSON object containing metadata about the processed image.
  • A binary data field containing the cleaned image file, named according to the "Output File Name" property.

If the input was binary or base64, the output will be a binary file without EXIF metadata. If the input was a URL, the image is fetched, cleaned, and output similarly.

Dependencies

  • Requires access to the image file either via binary data, base64 string, or URL.
  • No explicit external API keys or services are indicated in the source code snippet.
  • The node likely depends on an internal or bundled library capable of reading and removing EXIF metadata from images.
  • Network access is required if using the URL input option to fetch the image.

Troubleshooting

  • Common issues:

    • Invalid or corrupted image data may cause processing failures.
    • Providing an incorrect binary property name will result in missing input data errors.
    • URLs that are inaccessible or require authentication will fail to fetch the image.
    • Unsupported image types other than JPG or PNG may not process correctly.
  • Error messages and resolutions:

    • "Binary property not found" — Verify the binary property name matches the actual input.
    • "Failed to fetch image from URL" — Check URL accessibility and network connectivity.
    • "Invalid base64 content" — Ensure the base64 string is properly encoded and complete.
    • "Unsupported image type" — Use JPG or PNG formats only.
  • Enabling "Async" may affect error handling; consider disabling it for synchronous debugging.

Links and References

Discussion