Blame platform-overview/zh_CN/dev-thumbnailer.page
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" style="task" id="dev-thumbnailer" xml:lang="zh-CN">
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<info>
|
|
Packit |
1470ea |
<link type="guide" xref="index" group="thumbnailer"/>
|
|
Packit |
1470ea |
<link type="seealso" xref="dev-launching-desktop"/>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<revision version="0.1" date="2014-01-28" status="draft"/>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<credit type="author copyright">
|
|
Packit |
1470ea |
<name>David King</name>
|
|
Packit |
1470ea |
<email its:translate="no">davidk@gnome.org</email>
|
|
Packit |
1470ea |
<years>2014</years>
|
|
Packit |
1470ea |
</credit>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<include xmlns="http://www.w3.org/2001/XInclude" href="cc-by-sa-3-0.xml"/>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<desc>Thumbnails for document-like files.</desc>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
</info>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<title>File thumbnails</title>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
If your application handles files which could be printed or could be
|
|
Packit |
1470ea |
represented well as a document, adding a thumbnailer makes the files show up
|
|
Packit |
1470ea |
in <app>Files</app> with images that correspond to the document.
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
The gnome-desktop library defines the interface and associated files that
|
|
Packit |
1470ea |
a thumbnailer must implement. The component responsible for calling the
|
|
Packit |
1470ea |
thumbnailer is <link href="https://developer.gnome.org/gnome-desktop3/stable/GnomeDesktopThumbnailFactory.html">GnomeDesktopThumbnailFactory</link>.
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
A common helper for thumbnailers, which handles the command-line parsing
|
|
Packit |
1470ea |
and output file generation, is <link href="https://github.com/hadess/gnome-thumbnailer-skeleton">gnome-thumbnailer-skeleton</link>.
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
</page>
|