id summary reporter owner description type status priority milestone component version severity resolution keywords cc mlocked 7376 MythGallery image sorting by creation time and automatic rotation by exif header information trebor_s@… Isaac Richards "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 " patch closed minor unknown Plugin - MythGallery head low wontfix gallery sort exif header rotation creation time 0