Skip to content

ThumbnailFileFormat

ThumbnailFileFormat enumerates the file formats available when requesting preview thumbnails from the Werk24 API. It lets you specify whether the image should be delivered as PNG, JPEG, or other supported types. Choosing the right format ensures compatibility with downstream viewers, optimizes file size, and preserves transparency when needed. The enum pairs naturally with rendering settings such as resolution or background color, making it easier to produce consistent thumbnails across integrations. Use it to align thumbnail output with your application’s performance and visual requirements or to enforce company branding guidelines, and to manage caching strategies for different client platforms or offline workflows.

Bases: str, Enum

The output format of the redacted drawing.

Source code in werk24/models/v2/enums.py
class ThumbnailFileFormat(str, Enum):
    """The output format of the redacted drawing."""

    PDF = "PDF"
    """The output format is PDF."""

    PNG = "PNG"
    """The output format is PNG."""

PDF = 'PDF' class-attribute instance-attribute

The output format is PDF.

PNG = 'PNG' class-attribute instance-attribute

The output format is PNG.