~ci-train-bot/thumbnailer/thumbnailer-ubuntu-yakkety-landing-072

« back to all changes in this revision

Viewing changes to man/thumbnailer-admin.1

  • Committer: CI Train Bot
  • Author(s): Michi Henning
  • Date: 2015-09-15 11:04:11 UTC
  • mfrom: (125.1.2 landing150915)
  • Revision ID: ci-train-bot@canonical.com-20150915110411-233xw0fljaq7p2o0
Landing changes on devel to trunk.
Approved by: James Henstridge

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH thumbnailer\-admin 1 "05 August 2015" "Ubuntu" "Linux User's Manual"
 
2
 
 
3
.SH NAME
 
4
thumbnailer\-admin \- Thumbnailer administrative tool
 
5
 
 
6
.SH SYNOPSIS
 
7
.B thumbnailer\-admin
 
8
.I command
 
9
.RI [ options ]
 
10
.br
 
11
 
 
12
.SH DESCRIPTION
 
13
The \fBthumbnailer\-admin\fP program provides a simple administrative tool to access
 
14
the \fBthumbnailer\-service\fP(1), for example, to retrieve a thumbnail, display
 
15
statistics, or selectively clear one ore more of the service's internal caches.
 
16
.SS "Internal caches"
 
17
The thumbnailer service maintains three internal caches:
 
18
.TP
 
19
Image cache
 
20
The image cache stores images that are expensive to retrieve (namely
 
21
images downloaded from the image server (dash.ubuntu.com) or extracted from audio
 
22
or video files). Images in the this cache are kept at high resolution,
 
23
up to a limit of \fBmax\-thumbnail\-size\fP (usually 1920) pixels in the larger dimension (see
 
24
\fBthumbnailer\-settings\fR(5)\fP). The image cache
 
25
is used to create thumbnails at smaller sizes that are then inserted
 
26
into the thumbnail cache (to avoid repeated download or extraction
 
27
of the original images).
 
28
.TP
 
29
Thumbnail cache
 
30
The thumbnail cache stores images that are scaled to a size that was previously requested
 
31
by a client. If a client asks for a thumbnail that was previously generated at the same size,
 
32
it is returned from this cache.
 
33
.TP
 
34
Failure cache
 
35
The failure cache contains the keys for media (local or remote) for which no thumbnail
 
36
could be generated, either because a local file does not contain artwork, or because
 
37
the image server has returned an authoritative answer that no image is available.
 
38
If a client asks for an image that is in the failure cache, the service does not
 
39
try to create a thumbnail for some period of time, to avoid expensive repeated
 
40
attempts to artwork that does not exist.
 
41
.P
 
42
Commands that can selectively be applied to these caches use the following \fIcache\-id\fP:
 
43
.TP
 
44
.B i
 
45
Image cache
 
46
.TP
 
47
.B t
 
48
Thumbnail cache
 
49
.TP
 
50
.B f
 
51
Failure cache
 
52
.SS "Sizes and scaling"
 
53
Commands that create thumbnails expect a size in pixels to be specified as follows:
 
54
.TP
 
55
\fIwidth\fP\fBx\fP\fIheight\fP
 
56
Create a thumbnail scaled to fit a bounding box of \fIwidth\fP and \fIheight\fP, for example,
 
57
\fB\-\-size 640x480\fP. If only a single dimension is provided, the thumbnail is scaled to fit into
 
58
a square bounding box of the specified size, for example, \fB\-s 256\fP.
 
59
.IP
 
60
Scaling always maintains the aspect ratio of the original image, and ensures that a thumbnail
 
61
has a size of at least one pixel in the smaller dimension.
 
62
.IP
 
63
Specifying a size of zero (or not specifying any size) is equivalent to specifying \fBmax\-thumbnail\-size\fP
 
64
(see \fBthumbnailer\-settings\fR(5)\fP).
 
65
.IP
 
66
Requests for thumbnails that are larger than the original image are automatically reduced to the original
 
67
image size, that is, original artwork is never scaled up.
 
68
.SS "Media formats and output files"
 
69
Most common image formats, such as PNG, JPEG, BMP, and so on, are recognized. For streaming media, the
 
70
recognized formats depend on the installed gstreamer codecs.
 
71
.P
 
72
Thumbnails are always returned in JPEG format, regardless of the encoding of the original image. The generated
 
73
thumbnail file is tagged with the requested (not actual) image size. For example,
 
74
.IP
 
75
.RS
 
76
.B thumbnailer\-admin get \-\-size=320x240 screen.png
 
77
.RE
 
78
.P
 
79
creates a file named \fBscreen_320x480.jpg\fP.
 
80
 
 
81
.SH COMMAND OVERVIEW
 
82
.TP
 
83
.B thumbnailer\-admin clear \fR[\fIcache\-id\fR]
 
84
Clear all internal caches.
 
85
.TP
 
86
.B thumbnailer\-admin stats \fR[\fIcache\-id\fR]
 
87
Display cache statistics.
 
88
.TP
 
89
.B thumbnailer\-admin zero\-stats \fR[\fIcache\-id\fR]
 
90
Zero statistics counters.
 
91
.TP
 
92
.B thumbnailer\-admin get file \fR[\fIdir\fR]
 
93
Get a thumbnail from a file.
 
94
.TP
 
95
.B thumbnailer\-admin get\-artist artist album \fR[\fIdir\fR]
 
96
Get an artist thumbnail from the image server.
 
97
.TP
 
98
.B thumbnailer\-admin get\-album artist album \fR[\fIdir\fR]
 
99
Get an album thumbnail from the image server.
 
100
.TP
 
101
.B thumbnailer\-admin compact
 
102
Compact internal caches.
 
103
.TP
 
104
.B thumbnailer\-admin shutdown
 
105
Shut down the thumbnailer service.
 
106
 
 
107
.SH COMMAND REFERENCE
 
108
.B thumbnailer\-admin \-\-help
 
109
.br
 
110
.B thumbnailer\-admin \-h
 
111
.RS
 
112
Display a general help message for all commands.
 
113
.RE
 
114
 
 
115
.P
 
116
.B thumbnailer\-admin clear \fR[\fIcache\-id\fR]
 
117
.RS
 
118
Options:
 
119
.RS
 
120
.B \-\-help
 
121
.br
 
122
.B \-h
 
123
.RS
 
124
Show help message.
 
125
.RE
 
126
.RE
 
127
.P
 
128
Clear all three internal caches. If \fIcache\-id\fP is provided, clear only the selected cache.
 
129
.RE
 
130
 
 
131
.P
 
132
.B thumbnailer\-admin stats \fR[\fIcache\-id\fR]
 
133
.RS
 
134
Options:
 
135
.RS
 
136
.B \-\-help
 
137
.br
 
138
.B \-h
 
139
.RS
 
140
Show help message.
 
141
.RE
 
142
.RE
 
143
.RS
 
144
.B \-\-verbose
 
145
.br
 
146
.B \-v
 
147
.RS
 
148
Show histogram of entry sizes.
 
149
.RE
 
150
.RE
 
151
.P
 
152
Display detailed cache statistics. If \fIcache\-id\fP is provided, limit the display to the selected cache.
 
153
.RE
 
154
 
 
155
.P
 
156
.B thumbnailer\-admin zero\-stats \fR[\fIcache\-id\fR]
 
157
.RS
 
158
Options:
 
159
.RS
 
160
.B \-\-help
 
161
.br
 
162
.B \-h
 
163
.RS
 
164
Show help message.
 
165
.RE
 
166
.RE
 
167
.P
 
168
Reset the statistics counters and timestamps to zero. If \fIcache\-id\fP is provided, reset the
 
169
statistics only for the selected cache.
 
170
.RE
 
171
 
 
172
.P
 
173
.B thumbnailer\-admin get file \fR[\fIdir\fR]
 
174
.RS
 
175
Options:
 
176
.RS
 
177
.B \-\-help
 
178
.br
 
179
.B \-h
 
180
.RS
 
181
Show help message.
 
182
.RE
 
183
.RE
 
184
.RS
 
185
.B \-\-size \fIpixels\fP
 
186
.br
 
187
.B \-\-s \fIpixels\fP
 
188
.RS
 
189
Set the thumbnail size.
 
190
.RE
 
191
.RE
 
192
.P
 
193
Extract a thumbnail from the specified media \fBfile\fP.
 
194
.P
 
195
If \fIdir\fP is specified, place the thumbnail into the specified directory (default: current directory).
 
196
.RE
 
197
 
 
198
.P
 
199
.B thumbnailer\-admin get\-artist artist album \fR[\fIdir\fR]
 
200
.RS
 
201
Options:
 
202
.RS
 
203
.B \-\-help
 
204
.br
 
205
.B \-h
 
206
.RS
 
207
Show help message.
 
208
.RE
 
209
.RE
 
210
.RS
 
211
.B \-\-size \fIpixels\fP
 
212
.br
 
213
.B \-\-s \fIpixels\fP
 
214
.RS
 
215
Set the thumbnail size.
 
216
.RE
 
217
.RE
 
218
.P
 
219
Retrieve artist artwork for the specified \fBartist\fP and \fBalbum\fP. It is necessary to specify an album
 
220
title because artist names alone can be ambiguous.
 
221
.P
 
222
If \fIdir\fP is specified, place the thumbnail into the specified directory (default: current directory).
 
223
.RE
 
224
 
 
225
.P
 
226
.B thumbnailer\-admin get\-album artist album \fR[\fIdir\fR]
 
227
.RS
 
228
Options:
 
229
.RS
 
230
.B \-\-help
 
231
.br
 
232
.B \-h
 
233
.RS
 
234
Show help message.
 
235
.RE
 
236
.RE
 
237
.RS
 
238
.B \-\-size \fIpixels\fP
 
239
.br
 
240
.B \-\-s \fIpixels\fP
 
241
.RS
 
242
Set the thumbnail size.
 
243
.RE
 
244
.RE
 
245
.P
 
246
Retrieve album cover artwork for the specified \fBartist\fP and \fBalbum\fP.
 
247
.P
 
248
If \fIdir\fP is specified, place the thumbnail into the specified directory (default: current directory).
 
249
.RE
 
250
 
 
251
.P
 
252
.B thumbnailer\-admin compact \fR[\fIcache\-id\fR]
 
253
.RS
 
254
Options:
 
255
.RS
 
256
.B \-\-help
 
257
.br
 
258
.B \-h
 
259
.RS
 
260
Show help message.
 
261
.RE
 
262
.RE
 
263
.P
 
264
Compact all three internal caches so the take up the smallest possible amount of disk space. If \fIcache\-id\fP is provided, clear only the selected cache.
 
265
.P
 
266
After some time of use, the on\-disk size of a cache can be 25\(en30% larger than its nominal size. Compaction reclaims
 
267
the wasted space, but is slow and, while in progress, other thumbnail requests are delayed until compaction completes.
 
268
(It can take tens of seconds to compact a cache with a nominal size of 100 MB, depending on the speed of the hardware.)
 
269
.RE
 
270
 
 
271
.P
 
272
.B thumbnailer\-admin shutdown
 
273
.RS
 
274
Options:
 
275
.RS
 
276
.B \-\-help
 
277
.br
 
278
.B \-h
 
279
.RS
 
280
Show help message.
 
281
.RE
 
282
.RE
 
283
.P
 
284
Shut down the thumbnailer service. This is useful mainly after changing settings (which are read only once when the
 
285
service starts).
 
286
.RE
 
287
 
 
288
.SH "SEE ALSO"
 
289
.B thumbnailer\-service\fR(1)\fP, thumbnailer\-settings\fR(5)\fP