Bug 141389 - Unpredictable image ordering in gallery.xml
Summary: Unpredictable image ordering in gallery.xml
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-Flash (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-08 10:36 UTC by Ivan Andrian
Modified: 2018-08-23 08:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.1.0


Attachments
Sorts images by exif date and sort by filename if date in not available (1.77 KB, patch)
2011-08-02 07:18 UTC, Veaceslav Munteanu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Andrian 2007-02-08 10:36:05 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    Ubuntu Packages
OS:                Linux

It is not clear what ordering simpleviewerexport is using to create the sequence in gallery.xml. 
My wish is it to be data-driven, or selectable, but it appeared to me to be filename-based. 
So I first aligned all the times in the EXIF *and* of the file with the tools in DigiKam. Checked with other applications and with the terminal. 
Then I changed the filename to reflect the time, e.g.: IA070126-222127_0001.JPG (my initials, date in ISO format, time and sequential number). 
I then tagged all the images I wanted to be exported to simpleviewer with a special tag ('simpleviewer') and then I exported the images by selecting 'tag:simpleviewer' (since you cannot export a selection of images, this is the quickest way I can see to do it).
The order is *almost* correct, but not correct at 100%. For example I got:

<NAME>IA070128-130827_0117.JPG</NAME>
<CAPTION>Ujjain, 60km from Indore</CAPTION>
</IMAGE>
<IMAGE>
<NAME>IA070128-135511_0121.JPG</NAME>
<CAPTION>Corn sellers</CAPTION>
</IMAGE>
<IMAGE>
<NAME>IA070127-103404_0019.JPG</NAME>
<CAPTION>In a temple in Indore</CAPTION>
</IMAGE>
<IMAGE>
<NAME>IA070127-103443_0022.JPG</NAME>
<CAPTION>View from a temple, Indore</CAPTION>
</IMAGE>


As you can see, the filename ordering is incorrect. I can also furnish the images if needed.
Comment 1 Thomas Schildknecht 2007-10-02 00:32:57 UTC
This kind of gallery is often used to put pics taken from a digital camera (travels...) so the default setting should be "sort by exif date"
Comment 2 Veaceslav Munteanu 2011-08-02 07:18:20 UTC
Created attachment 62454 [details]
Sorts images by exif date and sort by filename if date in not available

i've decided to extend a little bit sorting, by adding a sort by filename, because when i tested it with few images obtained from scanner(scanned with other program that fill no data), it was a total mess. How should work fine.

Please give me some feedback if something is wrong.

Veaceslav.
Comment 3 Veaceslav Munteanu 2011-08-05 08:19:31 UTC
author	Veaceslav Munteanu
Fri, 05 Aug 2011 11:07:04 +0000 (11:07 +0000)
committer	Veaceslav Munteanu
Fri, 05 Aug 2011 11:07:04 +0000 (11:07 +0000)
commit	09cdf3362448cd932dd3aadc914deac4f5443981
tree	f198588d83e75b81abd38324dc33744a1cd7240b	
parent	17ee39d5e7e4dec80444da4943779d0d22f86e13
	
Fix bug 141389, added sorting by EXIF date

NEWS		
flashexport/simpleviewer.cpp		
flashexport/simpleviewer.h