ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #10139
Re: Upcoming thumbnailer change
On Fri, Oct 10, 2014 at 10:42 AM, Joey Chan <qqworini@xxxxxxxxx> wrote:
> Hello Gentlemen,
>
> Any docs to show the usage of "import Ubuntu.thumbnailer 0.1" ? I wonder if
> it is useful for Shorts-app.
Ubuntu.Thumbnailer is a QML module that wraps the libthumbnailer
library. It doesn't provide any QML components directly, but instead
exposes a number of image providers that can be used with e.g. the
standard QML Image component.
For example, if you set "image://thumbnailer/$uri" as the source for
your image component, you can have it display the a thumbnail of a
video file, or the embedded cover art for a music file. And if you
use "image://albumart/artist=xxx&album=yyy", it will display album
cover art work downloaded from a network service and cached locally.
Both of these are used by some of the default scopes on the dash and a
few of the preinstalled applications.
James.
Follow ups
References