Gimpformats Index / Gimpformats / Gimpgplpalette
Auto-generated documentation for gimpformats.GimpGplPalette module.
Show source in GimpGplPalette.py:11
Pure python implementation of the gimp gpl palette format.
class GimpGplPalette:
def __init__(self, fileName: BytesIO | str | None = None) -> None: ...Show source in GimpGplPalette.py:110
Perform a comparison.
def __eq__(self, other: object) -> bool: ...Show source in GimpGplPalette.py:87
Get a textual representation of this object.
def __repr__(self) -> str: ...Show source in GimpGplPalette.py:83
Get a textual representation of this object.
def __str__(self) -> str: ...Show source in GimpGplPalette.py:37
Decode a byte buffer.
datastr - data buffer to decode
RuntimeError- File format error. Magic value mismatch.
def decode(self, data: str) -> None: ...Show source in GimpGplPalette.py:66
Encode to a raw data stream.
def encode(self) -> bytes: ...Show source in GimpGplPalette.py:95
Get a textual representation of this object.
def full_repr(self) -> str: ...Show source in GimpGplPalette.py:29
Load a gimp file.
fileName- can be a file name or a file-like object
def load(self, fileName: BytesIO | str) -> None: ...Show source in GimpGplPalette.py:79
Save this gimp image to a file.
def save(self, fileName: str | BytesIO) -> None: ...