Viewer plugin

From TotalcmdWiki
Revision as of 17:54, 3 April 2021 by DrShark (talk | contribs) (Created page with "'''Viewer plugin''' (also known as '''filter in Lister''') is a type of Lister extensions that provides additional images formats support for Lister,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Viewer plugin (also known as filter in Lister) is a type of Lister extensions that provides additional images formats support for Lister, the quick view panel (Ctrl+Q) and thumbnails view of file panels. Unlike WLX plugins, which are dynamic link libraries loaded by Lister, they are independent external applications.

Viewer application has to be modified to be called from TC as a viewer plugin. Total Commander starts viewer instance hidden in background using the parameter /hidden. Then Total Commander sends the name of the image file to it via WM_COPYDATA Windows message, viewer converts the file to BMP format and then either sends the image back via clipboard (old method), or via another WM_COPYDATA call (new method). The list of file types supported by Lister with this method is defined with "Additional Irfanview/Xnview file types:" option on Multimedia page of Lister Configuration dialog, or directly in wincmd.ini with IviewAdditionalTypes parameter of [Lister] section.

For thumbnails in file panels, Total Commander gets the whole image via WM_COPYDATA from the viewer, and then reduces it to the thumbnail size. The list of file types for this thumbnails generation method is defined with "Get from Irfan-/Xnview for:" option on Thumbnails page of Total Commander Configuration dialog or directly in wincmd.ini with ThumbIrfXnTypes parameter of [Configuration] section.

Following applications can be used with Lister as a viewer plugin: