1.1.6. document

1.1.6.1. class Document

Document.__init__(path, width=0, height=0)

Create a document instance from file or totally new.

path: Path of the requested image.
width: If no path given, width of new document.
height: If no path given, height of new document.
Document.configure(width, height)

Warning

no doctring or additional documentation, too bad.

Document.set_path(path)

Set a new path for the document, usually when is saved in other site.

path: The new path, must be absolute.
Document.set_mime_from_format(format)

Set a new mime type converting the passed format string.

format: File format string like 'png'.
Document.set_dimensions(width, height)

Warning

no doctring or additional documentation, too bad.

Document.export(path, format, quality=None)

Warning

no doctring or additional documentation, too bad.

Table Of Contents

Previous topic

1.1.5. convert

Next topic

1.1.7. documents

This Page