lomiri-thumbnailer-admin(1)
π lomiri-thumbnailer-admin β Thumbnailer administrative tool π
okay bestie, sit down, hydrate, because we are reading the manual page for lomiri-thumbnailer-admin(1) from the Linux User's Manual, and it is lowkey the master key to the whole thumbnailer kingdom. let's get into it. β¨
β¨ SYNOPSIS β¨
lomiri-thumbnailer-admin command [options]
πΈ DESCRIPTION πΈ
So lomiri-thumbnailer-admin is your little admin bestie that talks directly to thumbnailer-service(1). What's it for? Retrieving a thumbnail, displaying statistics, or selectively clearing one or more of the service's internal caches. that's the whole job description, and it ate. π
ποΈ Internal caches
The thumbnailer service keeps three internal caches, and every single one of them has main character energy:
- Image cache β this one stores images that are expensive to retrieve, namely images downloaded from the image server (
dash.ubuntu.com) or extracted from video files. Everything in here is kept at high resolution, up to a limit ofmax-thumbnail-size(usually1920) pixels in the larger dimension (go peepthumbnailer-settings(5)). The image cache is what gets used to create thumbnails at smaller sizes, which then get inserted into the thumbnail cache β so we never have to repeatedly download or extract the original images. obsessed. - Thumbnail cache β stores images that are scaled to a size a client previously requested. If a client asks for a thumbnail that was previously generated at the same size, it comes straight back out of this cache. no re-rendering, we're efficient here. π¦
- Failure cache β contains the keys for media (local or remote) for which no thumbnail could be generated, either because a local file does not contain artwork, or because the image server has returned an authoritative answer that no image is available. If a client asks for an image that's sitting in the failure cache, the service does not try to create a thumbnail for some period of time β because expensive repeated attempts to retrieve artwork that does not exist is a flop and we don't do that.
Commands that can selectively be applied to these caches use the following cache-id:
iβ Image cachetβ Thumbnail cachefβ Failure cache
π Sizes and scaling
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. the limit is the limit, babes.
Commands that create thumbnails expect a size in pixels to be specified like this:
widthxheightβ Create a thumbnail scaled to fit a bounding box of width and height, for example--size 640x480. If only a single dimension is provided, the thumbnail is scaled to fit into a square bounding box of the specified size, for example-s 256.
Specifying a size with one dimension explicitly set to zero leaves that dimension unconstrained. For example, --size 0x480 produces a thumbnail no taller than 480 pixels of any width (subject to the max-thumbnail-size limit).
Specifying a size of zero (or not specifying any size) is equivalent to specifying max-thumbnail-size in both dimensions.
Scaling always maintains the aspect ratio of the original image, and ensures that a thumbnail has a size of at least one pixel in the smaller dimension.
Requests for thumbnails that are larger than the original image are automatically reduced to the original image size β that is, original artwork is never scaled up. no upscaling in this house. π ββοΈ
πΌοΈ Media formats and output files
Most common image formats are recognized, like PNG, JPEG, BMP, and so on. For streaming media, the recognized formats depend on the gstreamer codecs you have installed.
Thumbnails are always returned in PNG format, regardless of the encoding of the original image. And the generated thumbnail file is tagged with the requested (not actual) image size. For example:
lomiri-thumbnailer-admin get --size=320x240 screen.jpg
creates a file named screen_320x480.png. (yes bestie, read it again, that is literally what it says π)
π COMMAND OVERVIEW π
Here's the whole menu, no gatekeeping:
lomiri-thumbnailer-admin clear [cache-id]β Clear all internal caches.lomiri-thumbnailer-admin stats [cache-id]β Display cache statistics.lomiri-thumbnailer-admin zero-stats [cache-id]β Zero statistics counters.lomiri-thumbnailer-admin get file [dir]β Get a thumbnail from a file.lomiri-thumbnailer-admin get-artist artist album [dir]β Get an artist thumbnail from the image server.lomiri-thumbnailer-admin get-album artist album [dir]β Get an album thumbnail from the image server.lomiri-thumbnailer-admin compactβ Compact internal caches.lomiri-thumbnailer-admin shutdownβ Shut down the thumbnailer service.
π COMMAND REFERENCE π
lomiri-thumbnailer-admin --help,lomiri-thumbnailer-admin -hβ Display a general help message for all commands.
π§Ή lomiri-thumbnailer-admin clear [cache-id]
Options:
--help,-hβ Show help message.
Clear all three internal caches. If cache-id is provided, clear only the selected cache.
π lomiri-thumbnailer-admin stats [cache-id]
Options:
--help,-hβ Show help message.--verbose,-vβ Show histogram of entry sizes.
Display detailed cache statistics. If cache-id is provided, limit the display to the selected cache.
π’ lomiri-thumbnailer-admin zero-stats [cache-id]
Options:
--help,-hβ Show help message.
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]
Options:
--help,-hβ Show help message.--sizepixels,--spixels β Set the thumbnail size.
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]
Options:
--help,-hβ Show help message.--sizepixels,--spixels β Set the thumbnail size.
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]
Options:
--help,-hβ Show help message.--sizepixels,--spixels β Set the thumbnail size.
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]
Options:
--help,-hβ Show help message.
Compact all three internal caches so they 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 it is slow and, while it is 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.) so like, plan around it, bestie. β³
π lomiri-thumbnailer-admin shutdown
Options:
--help,-hβ Show help message.
Shut down the thumbnailer service. This is useful mainly after changing settings (which are read only once when the service starts). iykyk.
π SEE ALSO π
thumbnailer-service(1), thumbnailer-settings(5)
and that's the whole page, bestie!! this one came from Ubuntu, dated 05 August 2015, and it's filed under lomiri-thumbnailer-admin(1) in the Linux User's Manual. go forth and thumbnail responsibly. π π π«Ά
π¦ where this page comes from
- debian bookworm: lomiri-thumbnailer-service 3.0.1-1 Β· GPL-3.0-only
- debian trixie: lomiri-thumbnailer-service 3.0.4-2 Β· GPL-3.0-only
- nixos 26.05: lomiri-thumbnailer 3.1.0
- nixpkgs unstable: lomiri-thumbnailer 3.1.3
- ubuntu jammy: lomiri-thumbnailer-service 3.0.0-2 Β· GPL-3.0-only
- ubuntu noble: lomiri-thumbnailer-service 3.0.3-1build4 Β· GPL-3.0-only
- ubuntu resolute: lomiri-thumbnailer-service 3.0.4-2 Β· GPL-3.0-only
- ubuntu resolute: lomiri-thumbnailer-service 3.0.4-2ubuntu0.1 Β· GPL-3.0-only
- ubuntu stonking: lomiri-thumbnailer-service 3.1.3-2 Β· GPL-3.0-only
- Copyright (C) 2015 Canonical Ltd
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms