[mythtv-commits] Ticket #7376: MythGallery image sorting by creation time and automatic rotation by exif header information

MythTV mythtv at cvs.mythtv.org
Tue Oct 20 09:09:26 UTC 2009


#7376: MythGallery image sorting by creation time and automatic rotation by exif
header information
----------------------------------+-----------------------------------------
 Reporter:  trebor_s@…            |       Owner:  ijr 
     Type:  patch                 |      Status:  new 
 Priority:  minor                 |   Milestone:  0.22
Component:  Plugin - MythGallery  |     Version:  head
 Severity:  low                   |     Mlocked:  0   
----------------------------------+-----------------------------------------
 Hello everybody,

 I have created a patch for the mythgallery plugin in mythtv trunk 22544.
 It allows one to sort and show the images in the gallery not just by name
 or mod time, but by the actual creation time that is saved in the exif
 header. This is very usefull when you have more than one camera and they
 name the files differently (like img_*.jpg and dsc_*.jpg) and you want to
 show the images sorted by their creation time to have a correct
 cronologically ordered image gallery.

 I have also incorporated the automatic rotation of the images according to
 their information in the exif header. If you have made an image with your
 camera upright, then the thumbnails and fullscreen images will also be
 created and displayed upright in mythgallery. No need to manually rotate
 the image anymore.

 Changes due to the patch are:

 - Restructured some methods to allow object oriented reuse.

 - New setting to sort the images by creation time (earliest or latest
 first).

 - Added a column in the gallermetadata that saves the creation time for
 faster lookup. Saving this information really speeds up the image loading
 because the time information needs to be extracted only once. ''(This
 might take a while for the first time!)''

 - Files that have no creation time in their header will be sorted the old
 way and shown at the end alphabetically.

 - The rotation angle will be also saved in the database. So everytime the
 image is displayed it is correctly shown.

 Try it out!

 Best regards

 Robert

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/7376>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list