Annonce

Écrire une réponse

Veuillez écrire votre message et l'envoyer

Cliquez dans la zone sombre de l'image pour envoyer votre message.

Retour

Résumé de la discussion (messages les plus récents en premier)

TOnin
2021-03-12 10:13:08

Bonjour,

D'après ce que je comprends, tu utilises l'extension Write Metadata http://piwigo.org/ext/extension_view.php?eid=769

Photo -> Piwigo : Je ne sais pas si tu as personnalisé la liaison entre les champs IPTC de tes photos et ceux de Piwigo (dans local/config/config.inc.php)
Par défaut d'après $conf['show_iptc_mapping'] et $conf['use_iptc_mapping'] ce serait : (désolé pour le flou entre piwigoDB: et piwigo: (piwigoHTML: ?))

'iptc_keywords'          =>   '2#025' -> piwigo:keywords
'iptc_caption_writer'  => '2#122' -> piwigo:author
?iptc_byline?             => '2#080' -> ?
'iptc_byline_title'        => '2#085' -> ?
'iptc_caption'             => '2#120' -> piwigoDB:comment = piwigo:description
?                                 => '2#055' -> piwigo:date_creation
?                                 => '2#005' -> piwigo:name

Piwigo -> Photo : Est-ce que tu as regardé les champs que l'extension Write Metadata copiait depuis Piwigo vers la Photo ? (dans le code source, fichier main.inc.php, fonction wm_write_metadata)

piwigo:name                                                -> ObjectName
piwigo:name                                                -> Headline
piwigo:description (piwigoDB:comment)  -> CaptionAbstract
piwigo:author                                               -> By-line / Writer-Editor
piwigo:keywords                                          -> Keywords

J'ai l'impression que tu parles des commentaires laissés sur la page de la photo, commentaires qui pourraient éventuellement avoir été déposés pas un visiteur.

Petit inventaire à partir de https://exiftool.org/TagNames/

IPTC:ObjectName peut contenir une chaîne jusqu'à 64 caractères.
IPTC:Headline jusqu'à 256 caractères.
IPTC:CaptionAbstract jusqu'à 2000 caractères.
JPEG:Comment
EXIF:UserComment (undef)

Ce fil de discussion sur le forum d'exiftool est intéressante, il y est fait allusion à la concaténation par exiftool des commentaires JPEG:Comment ('COM') dans des blocs de 64000 caractères :
Writing comments https://exiftool.org/forum/index.php?topic=3893

La question que tu poses lexi, je me la suis posée, mais je n'ai pas modifié la façon dont circulent les données dans mon flux d'informations. Je me pose aussi la question du support de l'UTF8 dans la plupart de ces champs aux spécifications possiblement anciennes, la réponse pourrait dépendre de l'environnement logiciel de chacun.

lexi
2021-03-10 19:46:35

De plus après avoir exiftool

Code:

sudo apt install exiftool

dans le menu Edition d'une photo, j'ai cliqué sur le bouton avec les 2 petits carrés pour forcer la synchronisation 
https://i.imgur.com/O1yhVje.png
mais même problème, j'ai refais un test, je ne retrouve aucune trace du nouveau commentaire que j'ai laissé dans les tags des photos (que ce soit dans le répertoire des photos redimensionnées et dans le répertoire des photos originales)

lexi
2021-03-10 19:20:31

Hello tout le monde,

La récupération de mes commentaires sur mes photos Jpeg pour les appliquer sur l'interface de Piwigo fonctionne à merveille.
Je me demandais si l'opération inverse était également possible afin de centraliser l'information dans un unique endroit. C'est à dire, lorsque l'on écrit un commentaire depuis l'interface de Piwigo, le commentaire est automatiquement écrit sur la photo.

Les modules exit et imagick sont bien présents et activés (phpinfo() )

Code:

/var/www/html/piwigo/local/config $ php -m | grep exif
exif
/var/www/html/piwigo/local/config $ php -m | egrep imagick

J'ai fait le test.
J'ai ajouté un commentaire sur une photo depuis l'interface de Piwigo et j'ai ensuite vérifié les tag (IPC, exif) avec le programme exiv2 mais malheureusement je n'ai trouvé aucune trace du commentaire sur les photos.

Que ce soit dans le répertoire ou sont stockées les photos redimmensionnées, que le répertoire contenant les photos originales.
Inversement, je retrouve bien le tag commentaire que j'avais laissé via Digikam sur une photo/

Code:

/var/www/html/piwigo $ for i in $(find /mnt/photo/piwigo -name *.jpg); do exiv2 $i; done | grep writing
Exif comment    : writing a caption from Digikam
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080715-f524e8ca-sm.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310101317-8fa84f20-sm.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080719-120285cb-me.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310101317-8fa84f20-xs.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080715-f524e8ca-sq.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080715-f524e8ca-cu_e250.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080725-9f9ac30f-me.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080715-f524e8ca-me.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310101317-8fa84f20-xx.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080715-f524e8ca-th.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310170535-b854426c-sq.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080722-6100a13a-xs.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080722-6100a13a-sq.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080722-6100a13a-2s.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310170535-b854426c-xs.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080722-6100a13a-sm.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080725-9f9ac30f-la.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080715-f524e8ca-2s.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080725-9f9ac30f-sq.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310170535-b854426c-2s.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080722-6100a13a-la.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310170535-b854426c-xx.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080719-120285cb-sq.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080725-9f9ac30f-xs.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310101317-8fa84f20-2s.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080719-120285cb-sm.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080725-9f9ac30f-xx.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080719-120285cb-la.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080715-f524e8ca-xs.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310101317-8fa84f20-xl.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080719-120285cb-xs.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310170535-b854426c-me.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080719-120285cb-2s.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310101317-8fa84f20-me.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310101317-8fa84f20-sq.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310170535-b854426c-sm.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080725-9f9ac30f-xl.jpg: No Exif data found in the file
/mnt/photo/piwigo/photo_resized/2021/03/10/20210310080722-6100a13a-me.jpg: No Exif data found in the file
pi@raspberrypi:/var/www/html/piwigo $

Ma question est : Est ce que c'est possible ? Est ce que j'ai manqué quelque chose dans le paramétrage ?

Piwigo 11.3.0
Version de PHP: 7.3
Graphics Library: ImageMagick 6.9.10-23
Plugin Write Metadata 11a

Pied de page des forums

Propulsé par FluxBB

github twitter newsletter Faire un don Piwigo.org © 2002-2024 · Contact