Skip to main content

Module preview

Module preview 

Source
Expand description

The indexed PNG thumbnail Affinity stores next to the archive: Affinity’s own render of the document, at most 512 pixels on the long side in real files, never the document itself.

Structs§

Preview
Borrowed embedded thumbnail, at its own dimensions, never the native document dimensions.

Constants§

MAX_PREVIEW_BYTES
MAX_PREVIEW_DIMENSION

Functions§

preview
Read only the indexed Thmb record (identical in container versions 8 to 12), checking every PNG chunk CRC. Compressed pixels must still be validated by the consuming image decoder, with allocation limits.