Get Image Metadata in n8n
What this node does
PDF4me - Get Image Metadata reads the technical properties of any image in your n8n workflow and returns them as structured data - format, width, height, DPI, bits per pixel, orientation, and EXIF camera data when present. Use the output to gate image quality checks, log asset properties to a database, route oversized images to a resize step, or validate that uploaded photos meet publishing specifications before storing them. Accepts binary data, Base64 strings, or public URLs.
Authenticating Your API Request
Every PDF4me node in n8n requires valid Credentials. Create or select credentials that hold your PDF4me API key so the node can authenticate image analysis requests securely.
Important Facts You Should Not Miss

Set Input Data Type and Image Type to match your image source, enter Output File Name with .json extension, and execute. All metadata fields are available in the node output.
Parameters
Required: Input Data Type, the image source field matching that type (Input Binary Field, Base64 Image Content, or Image URL), Output File Name, and Image Type. Async is optional.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| Input Data Type | Yes | Format of the source image. Choose Binary Data to map from a prior node, Base64 String for encoded image data, or URL for a publicly accessible image file. | Binary Data |
| Input Binary Field | Yes (Binary Data) | The binary property name from the prior node holding the image. Must match the binary output key of the upstream node. | data |
| Base64 Image Content | Yes (Base64) | Base64-encoded image string. JPEG, PNG, GIF, and BMP all accepted. | /9j/4AAQS... |
| Image URL | Yes (URL) | Publicly accessible HTTPS URL to the image. PDF4me fetches it and returns the metadata. | https://example.com/photo.png |
| Output File Name | Yes | Filename for the metadata output. Use .json extension. This names the binary output item in n8n. | image_metadata.json |
| Image Type | Yes | Actual format of the source image. Must match the real format - JPEG, PNG, GIF, or BMP. | PNG |
| Async | No | When true, runs asynchronously and returns immediately for large image files. Results must be handled via polling or callback. | false |
Output Fields
| Field | Type | What it contains |
|---|---|---|
imageFormat | String | Detected format of the image - Jpeg, Png, Gif, or Bmp. |
fileSize | Number | Size of the original image in bytes. |
width | Number | Image width in pixels. |
height | Number | Image height in pixels. |
orientation | String | null | Portrait, Landscape, Square, or null if not encoded in the image. |
bitsperPixel | Number | Color depth. 32 is typical for PNG with alpha; 24 for standard JPEG. |
horizontalResolution | Number | Horizontal resolution in DPI. 96 = web, 300 = print quality. |
verticalResolution | Number | Vertical resolution in DPI. |
hasExifData | Boolean | True if the image contains embedded EXIF metadata. Always check this before using exifData. |
exifData | Object | null | Camera settings, GPS coordinates, timestamps, and other EXIF fields. Null when hasExifData is false. |
hasXmpData | Boolean | True if the image contains Adobe XMP metadata. |
_metadata | Object | Processing summary - success status, message, timestamp, and operation name. |
Quick Setup
- Add a PDF4me node and select Get Image Metadata.
- Choose or create Credentials with your PDF4me API key.
- Set Input Data Type and map the image source (binary, Base64, or URL).
- Set Image Type to match the actual format of your image.
- Enter Output File Name with
.jsonextension and click Execute Node. Mapwidth,height,horizontalResolution, andhasExifDatainto downstream nodes.
Workflow Examples
Workflow ExamplesCommon n8n workflow patterns using Get Image Metadata.
- A form submission triggers when a designer uploads an image for print production.
- Get Image Metadata reads horizontalResolution and verticalResolution from the uploaded file.
- An IF node checks whether both values are 300 DPI or above.
- Images that pass go to the print queue in Airtable. Images that fail trigger a Slack message asking the designer to re-upload at higher resolution.
- Dropbox Watch Folder triggers when a new image lands in the "Asset Intake" folder.
- Get Image Metadata extracts all properties including EXIF camera data if present.
- A Postgres or Airtable node writes a new row with the filename, dimensions, format, DPI, and EXIF date-taken to the asset catalog.
- The asset is moved to the "Catalogued" folder and a Slack message confirms the new entry.
- An HTTP webhook receives product images from an e-commerce upload form.
- Get Image Metadata returns the width and height of each image.
- An IF node routes images wider than 4000px to a Compress Image or resize step before storage.
- Correctly sized images skip the resize step and go straight to the product CDN upload.