lomiri-thumbnailer-admin(1) | Linux User's Manual | lomiri-thumbnailer-admin(1) |
lomiri-thumbnailer-admin - Thumbnailer administrative tool
lomiri-thumbnailer-admin command [options]
The lomiri-thumbnailer-admin program provides a simple administrative tool to access the thumbnailer-service(1), for example, to retrieve a thumbnail, display statistics, or selectively clear one ore more of the service's internal caches.
The thumbnailer service maintains three internal caches:
Commands that can selectively be applied to these caches use the following cache-id:
Thumbnails are never larger than max-thumbnail-size in the larger dimension (usually 1920, see thumbnailer-settings(5)), even if a larger size is requested.
Commands that create thumbnails expect a size in pixels to be specified as follows:
Most common image formats, such as PNG, JPEG, BMP, and so on, are recognized. For streaming media, the recognized formats depend on the installed gstreamer codecs.
Thumbnails are always returned in PNG format, regardless of the encoding of the original image. The generated thumbnail file is tagged with the requested (not actual) image size. For example,
creates a file named screen_320x480.png.
lomiri-thumbnailer-admin --help
lomiri-thumbnailer-admin -h
lomiri-thumbnailer-admin clear [cache-id]
Clear all three internal caches. If cache-id is provided, clear only the selected cache.
lomiri-thumbnailer-admin stats [cache-id]
Display detailed cache statistics. If cache-id is provided, limit the display to the selected cache.
lomiri-thumbnailer-admin zero-stats [cache-id]
Reset the statistics counters and timestamps to zero. If cache-id is provided, reset the statistics only for the selected cache.
lomiri-thumbnailer-admin get file [dir]
Extract a thumbnail from the specified media file.
If dir is specified, place the thumbnail into the specified directory (default: current directory).
The output file name is basename_size.png. For example, for a file song.mp3, the output file name is song_0x0.png if no specific size was provided.
lomiri-thumbnailer-admin get-artist artist album [dir]
Retrieve artist artwork for the specified artist and album. The album can be an empty string but, because artist names alone can be ambiguous, specifying an album as well may yield a better result.
If dir is specified, place the thumbnail into the specified directory (default: current directory).
The output file name is artist_album_artist_size.png. For example, for Jethro Tull's "Aqualung", the file name is Jethro Tull_Aqualung_artist_0x0.png if no specific size was provided.
lomiri-thumbnailer-admin get-album artist album [dir]
Retrieve album cover artwork for the specified artist and album. The artist can be an empty string but, because album titles alone can be ambiguous, specifying an artist as well may yield a better result.
If dir is specified, place the thumbnail into the specified directory (default: current directory).
The output file name is artist_album_album_size.png. For example, for Jethro Tull's "Aqualung", the file name is Jethro Tull_Aqualung_album_0x0.png if no specific size was provided.
lomiri-thumbnailer-admin compact [cache-id]
Compact all three internal caches so the take up the smallest possible amount of disk space. If cache-id is provided, clear only the selected cache.
After some time of use, the on-disk size of a cache can be 25–30% larger than its nominal size. Compaction reclaims the wasted space, but is slow and, while in progress, other thumbnail requests are delayed until compaction completes. (It can take tens of seconds to compact a cache with a nominal size of 100 MB, depending on the speed of the hardware.)
lomiri-thumbnailer-admin shutdown
Shut down the thumbnailer service. This is useful mainly after changing settings (which are read only once when the service starts).
thumbnailer-service(1), thumbnailer-settings(5)
05 August 2015 | Ubuntu |