CrushMFT Documentation

Preview task#

A Preview task asks the server to make the preview pictures of the files on the list now: the thumbnails that users see in the web interface.

Request this file be processed by the Preview function in the CrushMFT prefs.

Normally previews are made when a file is uploaded, or the first time somebody looks at a folder. This task is for files that arrive another way: copied in by a job, or put on the disk by another program. With it, the pictures are ready before the first user opens the folder.

Fields#

None of its own. The task's Folder Traversal Filter says which files: *.jpg, or * for all.

Everything else is decided in the Preview section of the Preferences: for which kinds of file previews are made, in which sizes, with which program. A file for which no preview is set up there is skipped: "No preview worker is enabled for this kind of file".

What it hands on#

The items it was given, unchanged.

Things to know#

  • Local files only. Previews are made for files on the server's own disk (file://). Items on other servers are skipped.
  • It waits. The task goes on when the pictures of a file are made: "Preview generation complete". For a thousand large pictures that takes a while; put it at the end of the job, behind everything users are waiting for.
  • Where the pictures are. In the server's preview folder, not beside the files. {preview_index} is the folder of an item's previews, for a job that wants to copy them somewhere.
  • A typical job: Find the new pictures of a folder → Preview. Scheduled every few minutes, or started by the Folder Monitor.