Image Metadata
The image metadata extractor enriches document metadata with specific information about input images, such as their dimensions, dominant color, orientation, EXIF tags, and more. Those metadata can then be later used by subsequent middlewares in the pipeline, or stored in a database.
📷 Extracting Metadata
To use this middleware, you import it in your CDK stack and instantiate it as part of a pipeline.
📄 Output
The image metadata extraction middleware does not modify or alter source images in any way. It instead enriches the metadata of their document with captured information. Below is an example of metadata captured using this middleware.
💁 Click to expand example
🏗️ Architecture
This middleware runs within a Lambda compute based on the ARM64 architecture, and packages different libraries to extract the metadata of images.
🏷️ Properties
Supported Inputs
Mime Type | Description |
---|---|
image/gif | GIF image |
image/jpeg | JPEG image |
image/png | PNG image |
image/tiff | TIFF image |
image/webp | WebP image |
image/avif | AVIF image |
Supported Outputs
Mime Type | Description |
---|---|
image/gif | GIF image |
image/jpeg | JPEG image |
image/png | PNG image |
image/tiff | TIFF image |
image/webp | WebP image |
image/avif | AVIF image |
Supported Compute Types
Type | Description |
---|---|
CPU | This middleware only supports CPU compute. |
📖 Examples
- Metadata Extraction Pipeline - Builds a simple metadata extraction pipeline.