[mythtv-commits] Ticket #12424: Replacement Gallery using MythUI & Storage Groups
MythTV
noreply at mythtv.org
Wed Apr 1 21:42:06 UTC 2015
#12424: Replacement Gallery using MythUI & Storage Groups
-----------------------------------------------+-------------------------
Reporter: Roger Siddons <dizygotheca@…> | Owner:
Type: Patch - Feature | Status: new
Priority: minor | Milestone: unknown
Component: Plugin - MythGallery | Version: Master Head
Severity: medium | Keywords:
Ticket locked: 0 |
-----------------------------------------------+-------------------------
**Notes**
Tested with Qt 4.8 and Qt 5.2.1
Backend manages images in Storage Group and supports multiple
frontends/service clients.
Backend generates thumbnails for FE's and service clients. They are pre-
generated in a (low-priority) background thread to improve FE
performance. They are also generated on-demand when necessary.
Thumbnails reside in <BE user>/.mythtv/tmp/Photographs. FE's cache
displayed images & thumbnails in <FE
user>/.mythtv/cache/themecache/<themedir>. Both caches are synced to the
Db to prevent cache overflow.
The Thumbnail View screen implements zoom by switching buttonlist widgets.
A theme must define an "images0" buttonlist (most zoomed-out) and can
optionally define others to enable zoom. The default theme provides 10x6,
8x4, 6x3, 4x2 views.
Provides basic management functions (Create Dir, Delete, Copy/Move) which
can be password-protected to thwart little fingers/prevent data loss.
Provides some basic animated slideshow transitions using zoom, rotate,
fade, translate and a framework for easily adding more.
Displays Exif metadata and date/orientaton of videos. Images can be sorted
by metadata timestamp. Photos are auto-rotated using Exif data; video
auto-rotation TBD.
Never writes Exif metadata to image files. Exif standards are poorly
defined and modification may lead to corruption/data loss. Images may
(should) have read-only permissions. Orientation overrides are stored in
Db only.
The menu is a 'smart' in that the displayed optons depend upon the item(s)
selected.
**!Deficiencies/Known Issues.**
Uses current schema (>1318). However its use of the db has changed and is
not compatible with old 'New Image Gallery'. Clear image database
("gallery_files" table) first. It abuses the current schema - a schema
update is required to tidy it up.
Does not yet support mythmediaserver.
Services API is incomplete.
Videos are not played in correct orientation.
Slideshow zoom wobbles between 70% - 110% zoom.
Not integrated with shutdown. Initial scans of large libraries will take a
significant time to generate thumbnails.
**Patches**
(No dependencies)
1. MythUI image centring. Images that are smaller than a widget are
centred, but the image zoom is currently ignored. This results in a
slideshow image being displaced when it is zoomed. This patch improves the
problem but it may not be a complete solution as the image still wobbles
when being zoomed.
2. MythUI image re-sizing. An image is currently re-sized before being
orientated. This results in the bottom of portrait-orientated pics going
off-screen. This patch orientates an image before determining its size.
3. MythUI image orientation. Orientation is currently inverted -portrait
images are shown upside-down.
4. Replacement gallery. Lots of new/deleted/renamed files but all isolated
Gallery code, except for frontend/main (key bindings & startup) and
mythuifilebrowser (to make it sub-classable)
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12424>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list