Identify
hdrconv.identify
HDR format identification helpers.
This module provides functions for detecting HDR content and metadata in various image formats.
Public APIs
has_gain_map: Check if Apple HEIC file contains HDR gain map
has_gain_map(input_path)
Check if Apple HEIC file contains HDR gain map.
Scans the auxiliary images in a HEIC file to detect the presence of Apple's HDR gain map (URN: urn:com:apple:photo:2020:aux:hdrgainmap).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_path
|
str
|
Path to the input HEIC image file. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if an HDR gain map auxiliary image is found, False otherwise. |
Note
This function does not validate the gain map data itself, only checks for its presence in the file metadata.
See Also
read_apple_heic: Extract gain map data from HEIC file.