[KPhotoAlbum] Sort all by date

Robert Krawitz rlk at alum.mit.edu
Sat Jan 25 01:02:30 GMT 2014


On Fri, 24 Jan 2014 19:35:58 +0200, Miika Turkia wrote:
> I do not know if this is related to your patch, or if the problem was there
> already... but I get duplicates of the images on my index.xml when I try to
> sort images by date. (And when I restart KPA I still get the error message,
> that my images are not sorted properly.) E.g.
>
> $ grep P4037045 index.xml|wc -l
> 12
> $ zgrep P4037045 index.xml~0125~.zip |wc -l
> 4
>
> Anyway, even the backup file is quite interesting. I have the original RAW,
> to exact copies of same jpg (with same md5sum) and one more copy of the
> same image with different md5sum. The current index.xml, after sorting, has
> the single jpg 3 times, and the double jpg is now available 8 times. Weird.
> (RAW only once)

Can you go back and try an earlier version to see if you can reproduce
it otherwise?

>         <image file="2013/Malaysia/3/P4037045.jpg" label="P4037045"
> startDate="2013-04-03T15:31:49" endDate="2013-04-03T15:31:49" angle="0"
> md5sum="921fd6adad1459c4f01de304689d0f05" width="1756" height="1317"
> rating="10" Places="15,16"/>
>         <image file="2013/Malaysia/3/P4037045.ORF" label="P4037045"
> startDate="2013-04-03T15:31:49" endDate="2013-04-03T15:31:49" angle="0"
> md5sum="ba095eca36272fc55f319156a6d30e70" width="-1" height="-1"
> stackId="752" stackOrder="2" Places="15"/>
>         <image file="2013/Malaysia/3/P4037045.jpg" label="P4037045"
> startDate="2013-04-03T15:31:49" endDate="2013-04-03T15:31:49" angle="0"
> md5sum="921fd6adad1459c4f01de304689d0f05" width="1756" height="1317"
> rating="10" Places="15,16"/>
>         <image file="2013/Malaysia/3/P4037045.jpg" label="P4037045"
> startDate="2013-04-03T15:31:49" endDate="2013-04-03T15:31:49" angle="0"
> md5sum="708318e0d68b2a059abe7230f1f28717" width="1756" height="1317"
> rating="10" stackId="752" stackOrder="3" Places="15,16"/>
>
> IIRC the kphotoalbumui.rc needs its version number updated after a change,
> so the latest version is used (otherwise it is quite likely that some older
> version is selected from some system wide location, if you have multiple
> versions laying around as I do.)
>
> miika
>
>
> On Fri, Jan 24, 2014 at 3:55 AM, Robert Krawitz <rlk at alum.mit.edu> wrote:
>
>> I've added a maintenance command to sort everything by date (so you
>> don't have to worry about stacks, locked images, or anything like
>> that).  Includes my previous sort patch.

-- 
Robert Krawitz                                     <rlk at alum.mit.edu>

MIT VI-3 1987 - Congrats MIT Engineers 5 straight men's hoops tourney
Tall Clubs International  --  http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom  --  http://ProgFree.org
Project lead for Gutenprint   --    http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton



More information about the Kphotoalbum mailing list