Thumbnail Generator¶
A tool for generating thumbnails of a digital document.
To use in an API class, follow the standard convention accessing the
tools
property that Sermos injects.
Example:
class DemoApiClass(object):
def post(self):
TODO: Example
To use in a worker method, follow the standard convention accessing the
tools
argument that Sermos injects.
Example:
def demo_worker_task(event, tools):
TODO: Example
-
class
sermos_tools.catalog.thumbnail_generator.thumbnail_generator.
ThumbnailGenerator
(document_bytes: bytes, mimetype: Optional[str] = None, width: int = 327, height: int = 450)¶ TODO: Add actual docstring / example usages.