Skip to main content

Module import

Module import 

Source
Expand description

Importing a local file into a library, following Eagle’s processImage.

Structs§

Failure
One file that failed to import.
ImportOptions
Settings for Library::import_file.
Staged
A file copied, thumbnailed and analysed in a temporary folder, ready to be moved into a library with Library::commit_import. Staging needs no access to the library, so it can run on another thread.

Enums§

FailKind
Why a file could not be imported, for the app’s list of failed imports.

Constants§

FONT_EXTENSIONS
Font formats whose metadata falcon reads.
MHTML_SIZE
The size Eagle records for a web archive: the 1440 × 900 window its thumbnailer captures the page in.

Functions§

embedded_first
Formats whose own preview is tried before QuickLook, which rarely has a generator for them and can then wait out its whole timeout.
is_recognized
Whether Eagle would import a file with this (lower-cased) extension: any extension at all, except unfinished browser downloads. A file with no extension is refused as “not recognized”; every other format is imported, with a thumbnail when one can be made and as an icon otherwise.
stage
Copies path into a staging folder with its mtime kept, then makes the thumbnail and palette, following Eagle’s import steps.