color_tools.importers.gpl_importer

GIMP Palette (GPL) importer.

Imports standard GIMP .gpl palette files into PaletteExportData.

Supported palette-level fields:

  • Name

  • Columns

The importer additionally understands the optional metadata comments emitted by color_tools’ GPL exporter:

# Author: … # Description: … # Tags: …

These comments are additive and do not interfere with ordinary GPL files from GIMP or other applications.

Example GPL file:

GIMP Palette Name: Autumn Columns: 4 # # Author: Example Author # Description: Warm autumn palette # Tags: warm, autumn 255 127 80 Coral 139 69 19 Saddle Brown

class color_tools.importers.gpl_importer.GPLImporter[source]

Bases: PaletteImporter

Import GIMP Palette (.gpl) files.

Standard GPL metadata is preserved where possible. color_tools-specific Author, Description, and Tags comments are also recovered when present.

property metadata: ImporterMetadata

Return metadata describing the GPL importer.