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 "Get Image Metadata" extracts metadata information from an image file. It supports multiple input methods for providing the image: as binary data from a previous node, as a base64 encoded string, or via a URL to the image file. The extracted metadata can include details such as image dimensions, format, color profile, and other embedded metadata depending on the image type.

This node is beneficial in scenarios where you need to analyze images automatically within workflows, for example:

  • Validating image properties before processing or storage.
  • Extracting metadata for cataloging or indexing images.
  • Automating image quality checks or compliance verification.

Practical examples:

  • A marketing automation workflow that verifies uploaded product images meet size and format requirements.
  • A document processing pipeline that extracts metadata from scanned images for archiving.
  • An image management system that catalogs images by their metadata attributes.

Properties

Name Meaning
Input Data Type Choose how to provide the image file to extract metadata from. Options: Binary Data, Base64 String, URL.
Input Binary Field (If Input Data Type is Binary Data) Name of the binary property containing the image file.
Base64 Image Content (If Input Data Type is Base64 String) Base64 encoded content of the image.
Image URL (If Input Data Type is URL) URL pointing to the image file.
Output File Name Name for the output metadata file (e.g., "image_metadata.json").
Image Type Type of the image file. Options: JPG, PNG.
Async Enable asynchronous processing (true/false).

Output

The node outputs JSON data containing the extracted metadata of the image. This metadata typically includes properties such as image dimensions, format, color depth, EXIF data, and other relevant image attributes depending on the image type.

If the node supports outputting a file, the metadata can be saved as a JSON file with the specified output file name.

No binary data output is indicated for this operation; the output is structured metadata in JSON format.

Dependencies

  • Requires access to the image data either as binary data from a previous node, a base64 string, or a reachable URL.
  • No explicit external API keys or services are indicated in the source code snippet.
  • The node likely depends on internal libraries or modules for image metadata extraction but does not require additional user configuration beyond the input properties.

Troubleshooting

  • Common issues:

    • Providing an invalid or inaccessible URL will cause failures in fetching the image.
    • Incorrectly specifying the binary property name when using binary data input may result in missing or invalid image data.
    • Supplying malformed base64 strings will prevent proper decoding and metadata extraction.
    • Unsupported image types or corrupted image files may lead to errors or incomplete metadata.
  • Error messages and resolutions:

    • Errors related to fetching the image from URL: Check network connectivity and URL correctness.
    • Errors about missing binary data: Verify the binary field name matches the actual binary property from the previous node.
    • Decoding errors for base64 input: Ensure the base64 string is complete and correctly formatted.
    • Metadata extraction errors: Confirm the image type matches the actual image format and the file is not corrupted.

Links and References

Discussion