Skip to content

API Reference parrot.interfaces.images.plugins.exif

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.interfaces.images.plugins.exif

View source

Class EXIFPlugin

EXIFPlugin is a plugin for extracting EXIF data from images. It extends the ImagePlugin class and implements the analyze method to extract EXIF data.

Parameter Type Default Description
*args ()
**kwargs {}

Attributes:

Attribute Type Description
column_name str
extract_geoloc bool

Method EXIFPlugin.convert_to_degrees

Convert a 3-tuple of (deg, min, sec)—each component either an IFDRational or a float/int— into a decimal‐degrees float. Returns None on any error.

convert_to_degrees(value: tuple[IFDRational])

Parameter Type Default Description
value tuple[IFDRational]

Method EXIFPlugin.extract_gps_datetime

Extract GPS coordinates and a timestamp (preferring GPSDateStamp+GPSTimeStamp if available, else falling back to DateTimeOriginal/DateTime) from a (string-keyed) EXIF dict.

Returns a dict: { "datetime": , "date": , "latitude": , "longitude": }

extract_gps_datetime(exif: dict)

Parameter Type Default Description
exif dict

Method EXIFPlugin.extract_iptc_data

Extract IPTC metadata from an image.

Returns: Dictionary of IPTC data or empty dict if no IPTC data exists.

extract_iptc_data(image) -> dict

Parameter Type Default Description
image The PIL Image object.

Returns: dict

Method EXIFPlugin.extract_exif_heif

Extract EXIF data from a HEIF/HEIC image using the heif library.

Returns: Dictionary of EXIF data or None if no EXIF data exists

extract_exif_heif(heif_image) -> Optional[Dict]

Parameter Type Default Description
heif_image HEIF image object

Returns: Optional[Dict]

Method EXIFPlugin.extract_exif_data

Extract EXIF data from the image file object.

Returns: Dictionary of EXIF data or empty dict if no EXIF data exists.

extract_exif_data(image) -> dict

Parameter Type Default Description
image The PIL Image object.

Returns: dict

Method EXIFPlugin.analyze

Extract EXIF data from the given image.

:param image: PIL Image object (optional) :param heif: HEIF image object (optional) :return: Dictionary containing EXIF data

analyze(image: Optional[Image.Image] = None, heif: Any = None, **kwargs) -> dict

Parameter Type Default Description
image Optional[Image.Image] None
heif Any None
**kwargs {}

Returns: dict

Alias ImagePlugin

Re-exported from parrot.interfaces.images.plugins.abstract.ImagePlugin.

Function get_xmp_modify_date

get_xmp_modify_date(image, path: Optional[str] = None) -> str | None

Parameter Type Default Description
image
path Optional[str] None

Returns: str | None

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally