Expand description
Importing a local file into a library, following Eagle’s processImage.
Structs§
- Failure
- One file that failed to import.
- Import
Options - 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§
- Fail
Kind - 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
pathinto a staging folder with its mtime kept, then makes the thumbnail and palette, following Eagle’s import steps.