Skip to content

Latest commit

 

History

History
64 lines (36 loc) · 1.15 KB

File metadata and controls

64 lines (36 loc) · 1.15 KB

Utils

Gimpformats Index / Gimpformats / Utils

Auto-generated documentation for gimpformats.utils module.

fileOpen

Show source in utils.py:9

Load a file.

Arguments

  • fileName - can be a file name or a file-like object

Signature

def fileOpen(file: BytesIO | str | Path) -> tuple[str, bytes]: ...

repr_indent_lines

Show source in utils.py:31

Represent lines with a given indentation (number of tabs).

Arguments

  • indent int - number of tabs :param list[str] lines: list of lines to represent

Returns

Type: str indented lines

Signature

def repr_indent_lines(indent: int, lines: list[str]) -> str: ...

save

Show source in utils.py:21

Save this gimp image to a file.

Signature

def save(data: bytearray | bytes, file: BytesIO | str | Path) -> None: ...