color_tools.exporters.gpl_exporter
GIMP Palette (.gpl) exporter.
Exports colors to the GIMP Palette text format used by GIMP, Inkscape, Krita, MyPaint, and other graphics applications.
Format:
GIMP Palette Name: palette_name Columns: 0 # R G B Color Name 255 127 80 Coral
GPL stores 8-bit sRGB values and optional human-readable color names.
Palette-aware export preserves the palette name and preferred column count using native GPL header fields. Additional descriptive metadata may be retained as comments.
- class color_tools.exporters.gpl_exporter.GPLExporter[source]
Bases:
PaletteExporterExport color palettes in GIMP Palette (.gpl) format.
GPL is a plain-text RGB palette format supported by a broad range of graphics applications.
Palette and color names are sanitized to prevent embedded line breaks from corrupting the file structure.
Palette-aware export preserves:
name
columns
Author, description, and tags are written as GPL comments when present.
- property metadata: ExporterMetadata
Return metadata describing the GPL exporter.