Skip to main content

Module binary_preview

Module binary_preview 

Source
Expand description

The preview picture inside the binary files of EPS, Illustrator (PostScript flavour), InDesign, Blender, SketchUp and AutoCAD. Used at import when QuickLook has no render (no generator for the format is installed).

Every file here is untrusted. Reads go through the helpers below: a bounded prefix, a checked range, or a linear scan that stops after [MAX_SCAN] bytes and [MAX_HITS] pictures. Pictures are decoded with size and memory limits, and anything malformed means “no preview” (None), never a panic.

Functions§

handles
The extensions this module reads a preview from.
preview
The preview picture of the file at path; None when the format has none or the file is malformed.