"Smart" albums "Smart" albums
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

"Smart" albums

Started by TC, August 05, 2004, 12:57:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TC

After looking at lots of different PHP gallery software I decided to use Coppermine.
I'm really like it but just wanted to offer up an idea which might improve it.

The idea is to have smart albums which are automatically generated based on the meta data of images rather than be assigned to an album.

For example this would allow me to add the word "kids" to the exif comment field of images I upload and I would then be able to have a smart album which would automatically fish out all of those images.
As well as specifying how images are found to be included in each album you could also specify how they are grouped. So for eaxmple you could say group by rating and you would get the album kids with the sub albums, 1 star, 2 star, 3 star, etc. Or you could specify that they should be grouped by date, for example, Year/Month which would then give you this kind of structure:
Kids
     Kids/2003
           Kids/2003/January
           Kids/2003/Fenruary
           etc..

The code used to build up these groupings or search criteria could be well defined allowing people to write their own mods for grouping and collecting images.

Any thoughts?

Casper

Such 'smart' albums are under development for the next version (1.4).  They use keywords to call pics from anywhee within the gallery.

As for calling from exif info, that I don't know.  Perhaps Tarique, the developer of this new addition, will be able to give more insight into it.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

hm, I guess looking up the exif info every time might result in many additional queries, I'm not sure this is a good idea.

GauGau

TC

That depends on how the exif information is stored.
If you had a keyword list then you can have a separate table which links keywords to images. That would make a query based on keyword much faster and easier to set up.
It has already been discussed elsewhere to use the exif date as the main date associated with an image so standard SQL queries could be used to organise by date.

If someone is already doing this can you describe how it is going to work and whether there is any code already in the CVS?