Announcement

#1 2020-04-07 10:37:24

bdonner
Member
2015-12-16
4

Solved: Write metadata to file

I have been scratching my head for several months now with not getting Piwigo to write tags/keywords to photo files, is someone here able to help?  All is OK with adding tags to photos in the Piwigo database, but we need the photo files to have the tags / keywords written into them once the files are exported / saved from Piwigo to local computers.

There seems to be two ways meant to accomplish this even if I am unclear about them (I cannot find any documentation about either):

1. The "Write Metadata"-plugin:
I think it worked many years ago, but the last year I have not got it to function. No keywords / tags created in Piwigo are copied to the file into any exif or IPTC-field.

2. The "Synchronise" standard function in Piwigo:
I find no documentation about the two different functions of Synchronise, a) synchronise database photos with file metadata" and b)  "synchronise file structure with database", and I am not sure if either should write database -> file, or if both are file -> database synchronisation.


The IPTCH field "Keyword" seems to be used by most systems for saving tags/keywords to photo files nowdays. Piwigo reads this field from for instance Windows&Lightroom manipulated files.  Adding tags to a photo in Piwigo and saving the metadata to the file through the "Write Metadata" plugin does not write the photos' tags as IPTC keywords, and analyzing the exported jpg files, I cannot find tags saved in any other metadata/exif field either.  Throug the Synchronise functionin Piwigo, nothing seems to be written to the files at all. Both the "Write Metadata" and the "Synchronise" operations give OK responses for being performed correctly.

Very graetful for any help with writing piwigo tags to files!

Thanks,
Benjamin

Piwigo version: 2.10.2
PHP version: 7.2.29
MySQL version: 5.6.47

------------------
SOLVED:

This issue was solved: The virtual server our imagebank was moved to a year ago did not have exiftools enabled for our account.  The Piwigo logs, however, showed exiftool as executing without giving any error codes, thus I assumed all was OK. But no exiftool was there to be executed, now when the server admin enabled exiftools for us, all is OK :) !

Last edited by bdonner (2020-04-08 10:57:41)

Offline

 

#2 2020-04-07 20:14:59

executive
Member
2017-08-16
1099

Re: Solved: Write metadata to file

Synchronize only updates the Piwigo database. It does not touch original files.

Write Metadata should work. Enable logging and see if you get any errors.
https://piwigo.org/doc/doku.php?id=user … thumbnails

Offline

 

#3 2020-04-08 10:29:30

bdonner
Member
2015-12-16
4

Re: Solved: Write metadata to file

executive wrote:

Synchronize only updates the Piwigo database. It does not touch original files.

Write Metadata should work. Enable logging and see if you get any errors.
https://piwigo.org/doc/doku.php?id=user … thumbnails

Thank you, this is what the log says for the time around when I saved the metadata to the file. No errors from what I understand, but none of the tags inserted through Piwigo in the file either (the new keyword is 'testtagg1', the other ones where inside the file from the start:

[2020-04-08 11:18:48]    [DEBUG]    taglist_after
  10062: array(
    0 => '17',
    1 => '378',
    2 => '842',
    3 => '1466',
  )
[2020-04-08 11:18:48]    [DEBUG]    $images_to_update
[2020-04-08 11:19:28]    [INFO]    wm_write_metadata command = exiftool -q -IPTC:Headline="2016-10-24 10.33.52-1" -IPTC:ObjectName="2016-10-24 10.33.52-1" -IPTC:Caption-Abstract="dav" -IPTC:By-line="Benjamin Donner" -IPTC:Keywords="foto: Benjamin Donner" -IPTC:Keywords="Strömma" -IPTC:Keywords="testtagg1" -IPTC:Keywords="Visit Kimitoön" "./upload/2020/04/08/20200408110252-0f035d9a.jpg" 2>&1
[2020-04-08 11:19:35]    [INFO]    attempt to see the name of the tag #1, #3, #7, #12, #955 from the address : 46.229.168.130
[2020-04-08 11:20:12]    [INFO]    wm_write_metadata command = exiftool -q -IPTC:Headline="2016-10-24 10.33.52-1" -IPTC:ObjectName="2016-10-24 10.33.52-1" -IPTC:Caption-Abstract="dav" -IPTC:By-line="Benjamin Donner" -IPTC:Keywords="foto: Benjamin Donner" -IPTC:Keywords="Strömma" -IPTC:Keywords="testtagg1" -IPTC:Keywords="Visit Kimitoön" "./upload/2020/04/08/20200408110252-0f035d9a.jpg" 2>&1
[2020-04-08 11:20:39]    [DEBUG]    [i.php]   
  src_path: '20200408110252-0f035d9a.jpg'
  derivative_path: '20200408110252-0f035d9a-la.jpg'
  o_size: '2529 1909 4827861'
  d_size: '1001 756 756756'
  mem_usage: 0.6999999999999999555910790149937383830547332763671875
  timing: array(
    'load' => 103,
    'rotate' => '',
    'crop' => '',
    'scale' => 382,
    'sharpen' => '',
    'watermark' => '',
    'save' => 52,
    'send' => 3,
    'total' => 542,
  )

Offline

 

#4 2020-04-08 10:58:06

bdonner
Member
2015-12-16
4

Re: Solved: Write metadata to file

SOLVED:

This issue was solved. The virtual server our imagebank was moved to a year ago did not have exiftools enabled for our account.  The Piwigo logs, however, showed exiftool as executing without giving any error codes, thus I assumed all was OK. But no exiftool was there to be executed, now when the server admin enabled exiftools for us, all is OK :) !

Thanks for the help!

Offline

 

Board footer

Powered by FluxBB

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