1001fx - NoCode functions icon

1001fx - NoCode functions

1001fx is a set of functions for any automation platform. Our functions are simple, very well tested, scalable and offer features that most automation platforms do not offer.

Actions74

images → Get Metadata of an Image

AI-generated

Overview

This node retrieves metadata from an image file using the "Get Metadata of an Image" operation under the "images" resource. It is designed to process an input image (provided as a file) and return its metadata, such as dimensions, format, or other embedded information.

Common scenarios:

  • Extracting technical details (e.g., width, height, format) from images uploaded by users.
  • Automating workflows that require validation or cataloguing of image files based on their properties.
  • Pre-processing images before further automation steps, such as resizing or conversion.

Practical examples:

  • Automatically logging image metadata in a database when new images are received via email.
  • Validating image dimensions before uploading them to a web service.
  • Checking for missing EXIF data in user-uploaded photos.

Properties

Name Meaning
Image file Image file to be processed. This should be the binary file whose metadata you want to extract.

Output

The output will be a JSON object containing the extracted metadata from the provided image file. The exact structure depends on the image and the metadata available, but typically includes fields such as:

{
  "width": 1920,
  "height": 1080,
  "format": "jpeg",
  "size": 345678,
  "exif": {
    "CameraModel": "Canon EOS 80D",
    "DateTaken": "2023-01-01T12:00:00"
    // ...other EXIF fields
  }
}
  • If the image does not contain certain metadata, those fields may be omitted.
  • The output is always in the json field of the n8n item.

Dependencies

  • External Service: Requires access to the 1001fx API.
  • API Key: You must configure the 1001fxApi credentials in n8n.
  • n8n Configuration: The node expects the image file to be provided as a binary property.

Troubleshooting

Common issues:

  • Missing or invalid image file: If the "Image file" property is not set or does not point to a valid binary file, the node will fail.
  • Invalid API credentials: If the 1001fxApi credentials are missing or incorrect, authentication errors will occur.
  • Unsupported image format: If the image format is not supported by the API, an error message may be returned.

Error messages and resolutions:

  • "error": "Missing required parameter"
    Ensure the "Image file" property is correctly set and points to a valid binary file.
  • "error": "Invalid API key"
    Check your 1001fx API credentials in n8n.
  • "error": "Unsupported file type"
    Use a supported image format (e.g., JPEG, PNG).

Links and References

Discussion