Skip to content

Image Metadata Utils

Utility functions for image metadata extraction.

get_image_metadata(image_binary)

Extract metadata from image binary data.

This function extracts metadata from the image, including: 1. GPS coordinates (latitude/longitude) if available in EXIF data

Parameters:

Name Type Description Default
image_binary bytes

The binary data of the image.

required

Returns:

Type Description
dict[str, Any]

dict[str, Any]: Dictionary containing image metadata.