Re: the one true gphoto method?
- From: Alexander Larsson <alexl redhat com>
- To: David Zeuthen <david fubar dk>
- Cc: gvfs-list gnome org
- Subject: Re: the one true gphoto method?
- Date: Tue, 09 Jun 2009 10:38:16 +0200
On Mon, 2009-06-08 at 09:04 -0400, David Zeuthen wrote:
> Hi,
>
> On Fri, 2009-06-05 at 19:43 -0400, Dr. Michael J. Chudobiak wrote:
> > Alexander Larsson wrote:
> > >>>
> > >>> However, some distros are shipping with the gvfs backend for gphoto,
> > >>> which means that gio users can share a camera, but old apps using
> > >>> libgphoto2 are broken because the gvfs backend locks them out.
> > >
> > > I also want to mention that it seems like your initial problem was that
> > > you wanted to get the thumbnails from the camera via libgphoto. In
> > > current versions of gvfs you can get these directly by asking for the
> > > G_FILE_ATTRIBUTE_PREVIEW_ICON attribute (its a GIcon that you can use
> > > with e.g. gtk_image_set_from_gicon).
> >
> > What if the camera (or card reader) mounts as USB mass storage under
> > /media, and thus doesn't use the gphoto backend?
> >
> > ligphoto could still provide a thumbnail/preview for that, same as a PTP
> > camera. However, if we drop libgphoto entirely and migrate to gfile
> > instead, I think we lose that ability, and we'd have to generate a
> > thumbnail ourselves. Am I right?
>
> Yeah, First, to generate thumbnails you should just use this function
>
> http://library.gnome.org/devel/gnome-desktop/stable/GnomeDesktopThumbnailFactory.html#gnome-desktop-thumbnail-factory-generate-thumbnail
>
> to generate a thumbnail. If the GVfs backend, such as the gphoto2 one,
> supports G_FILE_ATTRIBUTE_PREVIEW_ICON then things are very fast since
> it gets the thumb directly from the camera. I believe the thumbnails
> will also be shared with other apps using these functions, such as
> Nautilus.
Just to clarify, you should only use this to generate a thumbnail if
there isn't one already. Check for G_FILE_ATTRIBUTE_THUMBNAIL_PATH.
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]