Get Image Metadata
Read comprehensive technical details from an image, including dimensions, EXIF data, GPS location, and color statistics.
The Get Image Metadata block acts as a digital inspector for your images. It extracts hidden information that isn't visible to the naked eye, such as the camera model used, the GPS coordinates where the photo was taken, and technical specs like width and height.
Core Concept
Think of this block as reading the ID card of an image. Every image file carries a set of technical details about its "birth" and characteristics; this block reveals all that data in a structured format.
Configuration
| Field | Required | Description |
|---|---|---|
| Input Image (Base64) | ✅ | The raw Base64 string of the image you want to analyze. |
| Compute Statistics | — | If enabled, the block will calculate detailed pixel data, such as the dominant color of the image. Note: This makes the block run slightly slower. |
| Output Variable | ✅ | The name of the variable that will store the metadata object. |
Metadata often includes sensitive information like GPS coordinates. Be mindful when sharing this data or storing it in public databases.
Error Handling
INPUT_MISSING— Triggered when no image data is provided for analysis.ANALYSIS_FAILED— Triggered if the file is not a valid image or if the metadata is corrupted.
Example
- Input Image:
{user_photo_base64} - Compute Statistics:
Enabled - Output Variable:
photo_info
Result: The variable {photo_info} will contain a detailed object:
{
"format": "jpeg",
"width": 4032,
"height": 3024,
"exif": {
"Make": "Apple",
"Model": "iPhone 15 Pro",
"DateTimeOriginal": "2024-05-01T15:00:00"
},
"gps": {
"latitude": 48.8584,
"longitude": 2.2945
},
"stats": {
"dominant": { "r": 135, "g": 206, "b": 235 }
}
}You can access the camera model via {photo_info.exif.Model} or the dominant red value via {photo_info.stats.dominant.r}.
