Read and write image metadata on macOS from Python using the native ImageIO / Core Graphics frameworks.
Read and write image metadata on macOS from Python using the native ImageIO / Core Graphics frameworks.
CGMetadata is a Python wrapper around the macOS ImageIO and Core Graphics frameworks. It provides a simple interface for reading and writing image metadata, including EXIF, IPTC, and XMP data. Reading is supported for all image formats supported by ImageIO. Reading is also supported for video formats using AVFoundation.
Writing is not currently supported for RAW file formats nor for video formats. Writing of metadata has been tested on JPEG, PNG, TIFF, and HEIC files however it should be considered experimental. If you are using CGMetadata to write metadata to image files, please make sure you have tested the results before using it in production.
Read and write image metadata on macOS from Python using the native ImageIO / Core Graphics frameworks.
CGMetadata is a Python wrapper around the macOS ImageIO and Core Graphics frameworks. It provides a simple interface for reading and writing image metadata, including EXIF, IPTC, and XMP data. Reading is supported for all image formats supported by ImageIO. Reading is also supported for video formats using AVFoundation.
Writing is not currently supported for RAW file formats nor for video formats. Writing of metadata has been tested on JPEG, PNG, TIFF, and HEIC files however it should be considered experimental. If you are using CGMetadata to write metadata to image files, please make sure you have tested the results before using it in production.
To install py312-cgmetadata, run the following command in macOS terminal (Applications->Utilities->Terminal)
sudo port install py312-cgmetadata
To see what files were installed by py312-cgmetadata, run:
port contents py312-cgmetadata
To later upgrade py312-cgmetadata, run:
sudo port selfupdate && sudo port upgrade py312-cgmetadata
Reporting an issue on MacPorts Trac
The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets, you must have a GitHub account in order to login to Trac to create tickets.