Overview
The Edit Image+ node for n8n provides advanced image manipulation capabilities. When using the Default resource with the Get Information operation, this node extracts and returns metadata about an input image (such as resolution, format, and other properties). This is useful in workflows where you need to inspect or validate images before further processing, such as:
- Automatically routing images based on their dimensions or type.
- Validating uploaded images for compliance (e.g., minimum resolution).
- Logging or reporting image characteristics.
Example use cases:
- Checking if user-uploaded profile pictures meet size requirements.
- Extracting image metadata for cataloguing or digital asset management.
- Pre-processing images before resizing or watermarking.
Properties
Below are the supported input properties for this operation:
Display Name | Type | Description |
---|---|---|
Property Name | string | Name of the binary property in which the image data can be found. |
Options | collection | Additional options (hidden for "Get Information" operation; not applicable here). |
Note:
- For the "Get Information" operation, only the Property Name field is relevant. The Options collection is hidden and does not affect this operation.
Output
The output will be a JSON object containing detailed information about the input image. Typical fields include (but may vary depending on the image and underlying library):
{
"format": "JPEG",
"width": 800,
"height": 600,
"depth": 8,
"size": 123456,
"colorModel": "RGB",
// ...other image metadata fields
}
- The output is always in the
json
field of the item. - No binary data is produced by this operation; it is strictly informational.
Dependencies
- External Libraries: Uses the gm (GraphicsMagick/ImageMagick) library for image processing.
- No API keys or external services are required for the "Get Information" operation.
- The node expects the image data to be present in the specified binary property (default:
"data"
).
Troubleshooting
Common Issues:
Missing Binary Data:
- Error Message:
No binary data property "data" exists on item!
- Resolution: Ensure that the incoming item contains the image in the correct binary property as specified by "Property Name".
- Error Message:
Unsupported Image Format:
- Error Message: May see errors related to image parsing or identification.
- Resolution: Verify that the image format is supported by GraphicsMagick/ImageMagick.
Corrupted Image Data:
- Error Message: Errors during identification or buffer reading.
- Resolution: Check that the binary data is a valid, uncorrupted image file.
Links and References
Summary:
The "Get Information" operation of the Edit Image+ node is designed to extract and return metadata from an image provided in a binary property. It is ideal for validation, inspection, and logging tasks within your n8n workflows.