So .. can I use the thumbnailer to cache images locally from different Internet address ? e.g. "image://thumbnailer/$ http://imgur/23fw49jj1oda9/9i8u8y7t.jpg" That I don't need to implement an in-app cache myself.
2014-10-10 11:04 GMT+08:00 James Henstridge <james.henstri...@canonical.com> : > On Fri, Oct 10, 2014 at 10:42 AM, Joey Chan <qqwor...@gmail.com> 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. >
-- Mailing list: https://launchpad.net/~ubuntu-phone Post to : ubuntu-phone@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp