Hi,
as far as I see, the SmartAlbums "photo name" filter checks the "title" of an image.
As a novice, I expected it to check the file name. I understand that internally, the "title" is in a variable named "name", but since the picture properties dialog says "title", SmartAlbums should also name it "title".
A consequence is that a "name" filter currently doesn't work with names from FTP upload, because these images don't get a "title" on synchronisation if the IPTC field 2#005 ("Object name") is empty.
What would be a clean solution for this problem?
Should Piwigo use the file name as "Title" on synchronisation with FTP uploads if there is no IPTC "Object Name"?
Should SmartAlbums offer a filename search, maybe combined?
BTW: Is filtering on "Description" (internal name comment) planned for SmartAlbums?
Piwigo version: 2.9.0
SmartAlbums version 2.3.0
Offline
Hello
thx for reporting
I'm notifying the author but you could also post on his repository https://github.com/mistic100/Piwigo-SmartAlbums
Offline
Before I make an entry in the SmartAlbums issue tracker, I would like to discuss whether Piwigo should use the file name as "Title" on synchronisation with FTP uploads if there is no IPTC "Object Name".
Oliver
Offline
Piwigo by default get the name from filename [Github] Piwigo file admin/site_update.php@L534 + https://github.com/Piwigo/Piwigo/blob/a … .php#L1074
then if $conf['use_exif'] is used and you sync metadata the iptc field is read and overwrite the name : if "overrides existing values with empty ones" option is checked it does replace with empty values
The 'Title'/'name' comes from recent changes I think. Originally it was Name butTitle seems more user friendly
Offline
flop25 wrote:
Piwigo by default get the name from filename
thanks for the information!
It seems that this (filename -> name) is done correctly only at the very first import.
On subsequent synchronizations, the (translated) filename is not copied to the name/title field, or (if "overrides existing values with empty ones" is set) name/title is cleared even with $conf["use_exif"] = false;
I didn't find yet in the code why this is the case, maybe I try tomorrow to understand it.
So if I use the wrong settings, I can not "repair" my error afterwards by another synchronization.
Oliver
Offline
OliverB wrote:
name/title is cleared even with $conf["use_exif"] = false;
sorry taht's the iptc one in fact
[Github] Piwigo file include/config_default.inc.php@L357
Offline
correct, removing the mapping 'name' => '2#005' avoids overwriting an existing name, but inhibits also the option to use the IPTC field (I didn't use it yet). Not the most used IPTC field, though.
Unchecking "overrides existing values with empty ones" looks better.
I will try to find out later why a new sync doesn't read the filename again to the (empty) name field.
Offline