Announcement

  •  » Extensions
  •  » SmartAlbums photo "name" is actually "title", not good with FTP

#1 2017-05-28 12:11:59

OliverB
Member
2017-05-05
29

SmartAlbums photo "name" is actually "title", not good with FTP

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

 

#2 2017-05-28 22:26:07

flop25
Piwigo Team
2006-07-06
7037

Re: SmartAlbums photo "name" is actually "title", not good with FTP

Hello
thx for reporting
I'm notifying the author but you could also post on his repository https://github.com/mistic100/Piwigo-SmartAlbums


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2017-05-29 07:50:14

OliverB
Member
2017-05-05
29

Re: SmartAlbums photo "name" is actually "title", not good with FTP

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

 

#4 2017-05-29 23:21:09

flop25
Piwigo Team
2006-07-06
7037

Re: SmartAlbums photo "name" is actually "title", not good with FTP

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


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2017-05-30 00:19:51

OliverB
Member
2017-05-05
29

Re: SmartAlbums photo "name" is actually "title", not good with FTP

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

 

#6 2017-05-30 00:27:09

flop25
Piwigo Team
2006-07-06
7037

Re: SmartAlbums photo "name" is actually "title", not good with FTP

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


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#7 2017-05-30 00:46:46

OliverB
Member
2017-05-05
29

Re: SmartAlbums photo "name" is actually "title", not good with FTP

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

 
  •  » Extensions
  •  » SmartAlbums photo "name" is actually "title", not good with FTP

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact