Sort Album Tree by Album date (force/hack)?

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

Sort Album Tree by Album date (force/hack)?

Rasmus K. Rendsvig
Hi all!

I've just started using digiKam on both my Ubuntu (2.8.0) and Windows (2.9.0) machines and find it great!

I would love have my folder tree sorted by date when using Album View, as mentioned possible here: http://docs.kde.org/development/en/extragear-graphics/digikam/using-kapp.html#using-myalbumsview

However, it seems the relevant menu item has been removed (https://bugs.kde.org/show_bug.cgi?id=227530).

Is there some way I get around that and hack something to get the folder tree under album view to be sorted by album date?

Kind regards,
Rasmus

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sort Album Tree by Album date (force/hack)?

Gilles Caulier-4



2013/3/16 Rasmus K. Rendsvig <[hidden email]>
Hi all!

I've just started using digiKam on both my Ubuntu (2.8.0) and Windows (2.9.0) machines and find it great!

I would love have my folder tree sorted by date when using Album View, as mentioned possible here: http://docs.kde.org/development/en/extragear-graphics/digikam/using-kapp.html#using-myalbumsview

However, it seems the relevant menu item has been removed (https://bugs.kde.org/show_bug.cgi?id=227530).


yes, i confirm that feature have not been implemented when code have been ported to model/view.
 
Is there some way I get around that and hack something to get the folder tree under album view to be sorted by album date?

This is a complex task. The goal is to regorganize albumtreeview class content by album date set in database.


In this class you will find models to design album tree. Code must be add in this class to reorganize album contents by date.

Look in class PAlbum to see date properties. I supose that you want only sort Physical Albums by date.


Gilles Caulier


 

Kind regards,
Rasmus

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users



_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sort Album Tree by Album date (force/hack)?

tosca
I just prefix my album names with year/month/seq.number and it does the trick without being too cumbersome.
Marie-Noëlle

2013/3/16 Gilles Caulier <[hidden email]>



2013/3/16 Rasmus K. Rendsvig <[hidden email]>

Hi all!

I've just started using digiKam on both my Ubuntu (2.8.0) and Windows (2.9.0) machines and find it great!

I would love have my folder tree sorted by date when using Album View, as mentioned possible here: http://docs.kde.org/development/en/extragear-graphics/digikam/using-kapp.html#using-myalbumsview

However, it seems the relevant menu item has been removed (https://bugs.kde.org/show_bug.cgi?id=227530).


yes, i confirm that feature have not been implemented when code have been ported to model/view.
 
Is there some way I get around that and hack something to get the folder tree under album view to be sorted by album date?

This is a complex task. The goal is to regorganize albumtreeview class content by album date set in database.


In this class you will find models to design album tree. Code must be add in this class to reorganize album contents by date.

Look in class PAlbum to see date properties. I supose that you want only sort Physical Albums by date.


Gilles Caulier


 

Kind regards,
Rasmus

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users



_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users




--


Mes dernières photos sont dans ma galerie.
Connaissez-vous Image Fixe, le photo-club de Saint Jean du Gard ?
Et parcourez les Cévennes à ma façon avec Cévennes Plurielles,

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sort Album Tree by Album date (force/hack)?

Peter Mc Donough
Am 16.03.2013 18:34, schrieb Marie-Noëlle Augendre:
> I just prefix my album names with year/month/seq.number and it does the
> trick without being too cumbersome.
> Marie-Noëlle

Very true!

"YYYYMMDD_name" is in my opinion the easiest way for keeping albums in
their original sequence. Whether "DD" is necessary depends of course on
the number of pictures you shoot per day.

My next step is batch-renaming the photos according to their creation
date and time. If you the camera is kept "up to time" this information
will be stored correctly in the EXIF part of each photo.

Example with two photos per second (24 hour clock).

YYYYMMdd_hhmmss00.jpg
20130316_20511600.jpg
20130316_20511601.jpg

The "00" is useful if your camera can shoot more than one picture per
second, and if it can, believe me, you will, occasionally.

check "bracketing"
http://en.wikipedia.org/wiki/Bracketing

With Linux and KDE you could use KRename for that renaming job. There
should be tools for other operating systems, too.

cu
Peter


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sort Album Tree by Album date (force/hack)?

tosca
But I don't see any point in renaming the pictures: there never be a duplicate as I don't shoot 10000 photos per album; and the shooting date is already in the EXIF, where it can be accessed anytime, and used for sorting/selecting whatever.
Across 10 years and 5 or 6 different cameras, I only get the same file name 3 or 4 times, at most; and this is for pictures that have been shooted at completely different times and are not stored in the same albums.

Marie-Noëlle

2013/3/16 Peter Mc Donough <[hidden email]>
Am 16.03.2013 18:34, schrieb Marie-Noëlle Augendre:
I just prefix my album names with year/month/seq.number and it does the
trick without being too cumbersome.
Marie-Noëlle

Very true!

"YYYYMMDD_name" is in my opinion the easiest way for keeping albums in their original sequence. Whether "DD" is necessary depends of course on the number of pictures you shoot per day.

My next step is batch-renaming the photos according to their creation date and time. If you the camera is kept "up to time" this information will be stored correctly in the EXIF part of each photo.

Example with two photos per second (24 hour clock).

YYYYMMdd_hhmmss00.jpg
20130316_20511600.jpg
20130316_20511601.jpg

The "00" is useful if your camera can shoot more than one picture per second, and if it can, believe me, you will, occasionally.

check "bracketing"
http://en.wikipedia.org/wiki/Bracketing

With Linux and KDE you could use KRename for that renaming job. There should be tools for other operating systems, too.

cu
Peter


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users



--


Mes dernières photos sont dans ma galerie.
Connaissez-vous Image Fixe, le photo-club de Saint Jean du Gard ?
Et parcourez les Cévennes à ma façon avec Cévennes Plurielles,

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sort Album Tree by Album date (force/hack)?

Peter Mc Donough
Am 16.03.2013 21:39, schrieb Marie-Noëlle Augendre:
> But I don't see any point in renaming the pictures: there never be a
> duplicate as I don't shoot 10000 photos per album; and the shooting date is
> already in the EXIF, where it can be accessed anytime, and used for
> sorting/selecting whatever.
> Across 10 years and 5 or 6 different cameras, I only get the same file name
> 3 or 4 times, at most; and this is for pictures that have been shooted at
> completely different times and are not stored in the same albums.

I thought about that too.
My method guaranties, that no matter where a picture on my computer is,
I know, just by looking at the file name, when the picture was taken and
if it is a copy where I will find the original.

cu
Peter

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sort Album Tree by Album date (force/hack)?

tosca


2013/3/16 Peter Mc Donough <[hidden email]>

I thought about that too.
My method guaranties, that no matter where a picture on my computer is, I know, just by looking at the file name, when the picture was taken and if it is a copy where I will find the original.

cu
Peter

I work somewhat differently: I only use Digikam to browse my collections, and the shooting date-time (among other information) is displayed under each thumbnail. To find the original (usually a RAW as I gave up straight JPEGs a while ago) I use the search function with the 4 numbers of the image number; only pictures that are important for me are the original RAW and as many TIFF files as I've decided to keep different post-treatments.
JPEGs are here only for different size exports, and I "clean them up" when I feel like it.

Marie-Noëlle


--


Mes dernières photos sont dans ma galerie.
Connaissez-vous Image Fixe, le photo-club de Saint Jean du Gard ?
Et parcourez les Cévennes à ma façon avec Cévennes Plurielles,

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sort Album Tree by Album date (force/hack)?

Rasmus K. Rendsvig
Thank you all for the suggestions!

I had hoped for an easy hack, like a configuration file where I could switch 0
to 1 somewhere. The proposed is quite beyond my abilities, unfortunately, but
thank you, Gilles, for the suggestion.

Marie-Noëlle and Peter, thank you both for your ideas on renaming. A renaming
scheme will allow me to do what I want and may ensure order across systems.

Renmaing folders means I loose the possibility to easily switch to an alphabetic
order, which is nice when looking at a specific "category", like photos from
"Roskilde Music Festival" taken over the years 2002-2013 (here a naming albums
"Ros... YYYY" works well to lumb such folder close). However, using the search
bar in the bottom this obstacle is easily overcome!

I will experiment a little!

Again, thank you all!

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sort Album Tree by Album date (force/hack)?

tosca
In fact, I've simplified a bit in my answer: I have a whole albums tree, so album are already more or less sorted by 'big categories' even before given their AAAA-MM-name.
And of course, images can be individually tagged with whatever keyword you might find relevant.
And don't forget you can do plenty with Digikam filtering/searching abilities, especially when using the advanced search function.

Marie-Noëlle

2013/3/17 Rasmus K. Rendsvig <[hidden email]>
Thank you all for the suggestions!

Renmaing folders means I loose the possibility to easily switch to an alphabetic
order, which is nice when looking at a specific "category", like photos from
"Roskilde Music Festival" taken over the years 2002-2013 (here a naming albums
"Ros... YYYY" works well to lumb such folder close). However, using the search
bar in the bottom this obstacle is easily overcome!

I will experiment a little!

Again, thank you all!

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users



--


Mes dernières photos sont dans ma galerie.
Connaissez-vous Image Fixe, le photo-club de Saint Jean du Gard ?
Et parcourez les Cévennes à ma façon avec Cévennes Plurielles,

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sort Album Tree by Album date (force/hack)?

Peter Mc Donough
In reply to this post by Rasmus K. Rendsvig
Am 17.03.2013 11:05, schrieb Rasmus K. Rendsvig:
> ...
> I will experiment a little!

Keep an eye on the extended search options provided by Digikam. They
come in quite handy, especially if you have tagged your photos.

BTW, you write that you are using Digikam 2.9.
Digikam 3.1 is the latest version.

http://www.digikam.org/

cu
Peter


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sort Album Tree by Album date (force/hack)?

tosca
But Digikam 3.x is not yet available with any distro, as it requires a new KDE version.
With Fedora 17, I only have Digikam 2.9 too.

Marie-Noëlle

2013/3/17 Peter Mc Donough <[hidden email]>


BTW, you write that you are using Digikam 2.9.
Digikam 3.1 is the latest version.

http://www.digikam.org/

cu
Peter


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users



--


Mes dernières photos sont dans ma galerie.
Connaissez-vous Image Fixe, le photo-club de Saint Jean du Gard ?
Et parcourez les Cévennes à ma façon avec Cévennes Plurielles,

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sort Album Tree by Album date (force/hack)?

Peter Mc Donough
Am 17.03.2013 12:04, schrieb Marie-Noëlle Augendre:
> But Digikam 3.x is not yet available with any distro, as it requires a new
> KDE version.
> With Fedora 17, I only have Digikam 2.9 too.

With KDE 4.10. Up to now, no problems.

cu
Peter

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sort Album Tree by Album date (force/hack)?

tosca
But KDE 4.1 is not (yet?) available under Fedora 17. And I'm not yet ready to upgrade to Fedora 18.
That's why ...
;-)

2013/3/17 Peter Mc Donough <[hidden email]>
Am 17.03.2013 12:04, schrieb Marie-Noëlle Augendre:

But Digikam 3.x is not yet available with any distro, as it requires a new
KDE version.
With Fedora 17, I only have Digikam 2.9 too.

With KDE 4.10. Up to now, no problems.


cu
Peter

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users



--


Mes dernières photos sont dans ma galerie.
Connaissez-vous Image Fixe, le photo-club de Saint Jean du Gard ?
Et parcourez les Cévennes à ma façon avec Cévennes Plurielles,

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sort Album Tree by Album date (force/hack)?

Remco Viëtor
In reply to this post by tosca
On Sunday 17 March 2013 12:04:27 Marie-Noëlle Augendre wrote:
> But Digikam 3.x is not yet available with any distro, as it requires a
new
> KDE version.
> With Fedora 17, I only have Digikam 2.9 too.

OPenSuse 12.3 has at least Digikam 3.0.
OpenSuse 12.2 has repositories for the newest KDE version, where
Digikam 3.1 is available.
And perhaps other distributions have the same possibility of
using a newer KDE version via (semi-) official repositories

Remco
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sort Album Tree by Album date (force/hack)?

Marcel Wiesweg
In reply to this post by Rasmus K. Rendsvig

> I've just started using digiKam on both my Ubuntu (2.8.0) and Windows
> (2.9.0) machines and find it great!
>
> I would love have my folder tree sorted by date when using Album View, as
> mentioned possible here:
> http://docs.kde.org/development/en/extragear-graphics/digikam/using-kapp.htm
> l#using-myalbumsview
>
> However, it seems the relevant menu item has been removed (
> https://bugs.kde.org/show_bug.cgi?id=227530).
>
> Is there some way I get around that and hack something to get the folder
> tree under album view to be sorted by album date?

The task is not too difficult. Sorting is implemented in
AlbumFilterModel::lessThan. This method does not need to be changed if the
sort role is adjusted properly. For that, we'll need a special AlbumDateRole
in AlbumModel, and a reimplementation of albumData for that class.
In the UI, DigikamView / leftsidebarwidgets need to set the sort role on the
album model (from albummodelcollection) which is used for the left side bar.

Marcel
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: Sort Album Tree by Album date (force/hack)?

Martin (KDE)
In reply to this post by tosca
Am 17.03.2013 12:30, schrieb Marie-Noëlle Augendre:
> But KDE 4.1 is not (yet?) available under Fedora 17. And I'm not yet
> ready to upgrade to Fedora 18.
> That's why ...
> ;-)

KDE 4.10 is not in F18 either. For both systems it is in kde-testing (if
you want to test this).

Martin

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users