[mythtv] Patch to make mythgallery play nice with Gallery

Tom LeRoux tom at harborcoat.com
Sat Jun 28 15:09:52 EDT 2003

If you haven't seen it, Gallery (http://gallery.menalto.com/) is very nice
free web-based image gallery.  It takes care of creating thumbnails,
rotation, importing etc. and provides a cool web front end to view pictures.

Pointing mythgallery at a Gallery album directory doesn't work too well,
since Gallery stores a thumb/medium/big version of your picture.. you end up
getting the same image 3 times, and mythgallery creates a thumbnail for each

 I hacked up iconview.cpp so that it knows when it's in a Gallery
directory.. if so, it'll do the following:
* use an existing thumbnail instead of creating a new one
* show the "highlight" picture instead of the "directory folder" image
* ignore the "sized" (medium) version of the file

The only problem is that the Gallery thumbnail might not be the same size as
the "expected" thumbnail.. YMMV (it's fine for me).  Maybe it's better to
have mythgallery create the thumbnails anyway?  Same issue for the
"highlight".  It's usually the same size as a Gallery thumbnail, but it
still might be a bit different from the "folder" size (again, it seems OK to
me - portrait images overlap a bit, but it's not that bad).  I guess perfect
would be reading the Gallery metadata and inserting the correct metadata:
size, name, comments, sequence, etc.. but this is good enough for browsing
thru albums on the TV.  Anyway, feedback from Gallery users would be
appreciated.. This should have absolutely no effect on non-Gallery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gallery.patch
Type: application/octet-stream
Size: 4342 bytes
Desc: not available
Url : http://lists.snowman.net/pipermail/mythtv-dev/attachments/20030628/79b108b6/gallery.obj

More information about the mythtv-dev mailing list