Registry / serialization / gimpformats

gimpformats

JSON →
library2025pypypiunverified

Pure Python implementation of image file formats used by GIMP. Supports XCF (GIMP native), GPL (palette), GGR (gradient), GIH (brush), VBR (brush), PAT (pattern), and other formats. Current version: 2025. Released annually.

pip install gimpformats
INSTALL
IMPORT
SIG · GIMPFORMATS
G
gimpformats
serializationpythonv2025
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GimpImage
✓ from gimpformats import GimpImage
✗ from gimpformats.GimpImage import GimpImage

Open an XCF file and list layer names and dimensions.

from gimpformats.GimpImage import GimpImage img = GimpImage.fromPath('image.xcf') for layer in img.layers: print(layer.name, layer.width, layer.height)
Debug
Known issues
gotchaAs of version 2025, XCF writing is not yet implemented. Only reading is supported.
fix
If you need XCF writing, consider using newer versions (if/when available) or alternative libraries.
affects: >=2025
gotchaLayer data is stored as PIL/Pillow images. Ensure Pillow is installed for full functionality.
fix
Install Pillow via `pip install Pillow`.
affects: all
Upgrade
Version history
2025latest on PyPI · released Feb 20, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
gimpformats — pip install gimpformats · libregistry