Hi,
yesterday I was uploading images using the update tool to individually replace old photos with a new photo. Suddenly I noticed that the Description field was no longer being added to the piwigo gallery photo page. I have my Piwigo set up with local files editor so that it displays the iptc description field under the photo on the photo page. This is very important to my use. This is no longer working.
I have implemented the display IPTC descriptioin by adding the following in local files editor-
$conf['show_iptc'] = true;
$conf['use_iptc'] = true;
$conf['allow_html_descriptions'] = true;
Today I have been trying to figure it out. I read a little on IPTC use here-
http://piwigo.org/doc/doku.php?id=user_ … n:metadata
Although the IPTC description is not displaying under the page, it is still embedded within the photo. I can see it using an online exif viewer.
Today I tried uploading a fresh image with ftp and it is still displaying the same behaviour, ie not displaying IPTC description.
After reading the above help page, it says if I upload an image named sample.jpg then Piwigo has a tool to read the exif. I did that but clearly piwigo is not reading the IPTC as the tools says-
Informations are read from sample.jpg
no IPTC information
EXIF Fields in sample.jpg
Array
(
[FileName] => sample.jpg
[FileDateTime] => 1588854538
[FileSize] => 468197
[FileType] => 2
[MimeType] => image/jpeg
[SectionsFound] =>
[COMPUTED] => Array
(
[html] => width="2000" height="1051"
[Height] => 1051
[Width] => 2000
[IsColor] => 1
)
)
I have checked and all my plug ins are up to date.
Any suggestions? IPTC descriptions are critical to my use.
Thanks,
Jonathan
Piwigo 2.10.2 Check for upgrade
Operating system: Linux
PHP: 5.6.40 (Show info) [2020-05-07 08:50:34]
MySQL: 5.6.47-log [2020-05-07 08:50:34]
Graphics Library: External ImageMagick 7.0.9-8
Offline
Some further info, I also have a second installation of piwigo on another website which is exhibiting the same behaviour. I have not done any manual updates on this website, in fact I have not worked on it for many months. There are two updates outstanding Advanced Menu Manager Version 3.2.12 and Perso Footer Version 2.8.a. These have not been updated and so neither of these updates can be the cause.
Offline
Hi :-)
in local config have you mapping ?
exemple
$conf['use_iptc'] = true;
$conf['use_iptc_mapping'] = array(
'author' => '2#080',
'name' => '2#005',
'comment' => '2#120',
'keywords' => '2#025',
);
Offline
No, only the 3 lines I posted at the top of my original post.
I read the meta data help page and that was the first time I have seen that requirement. All I can say is that it worked fine until yesterday.
Looking at the metadata help file - https://piwigo.org/doc/doku.php?id=user … data&s[]=metadata
It shows a line " 2#120 = exampledescription " - however this is taken from the l/tools/metadata.php and mine shows "no IPTC information".
It may be that I have incorrectly implemented the description display, however it also appears Piwigo cant currently ready my meta data.
Offline
J0nny wrote:
It shows a line " 2#120 = exampledescription " - however this is taken from the l/tools/metadata.php and mine shows "no IPTC information".
It may be that I have incorrectly implemented the description display, however it also appears Piwigo cant currently ready my meta data.
You can use [extension by ddtddt] Read Metadata
Offline
Thanks, I downloaded, installed and activated read_metadata.
I haven't yet found any instructions on exactly how it works and what it does, however I see when I open it in plug ins I have the option to choose an image and "submit". I chose the last image uploaded which has IPTC in the image file, but which is not displayed. When I click submit it gives exif info but says "no IPTC information". I strip most exif info so there is not much to read. The image tested is this one-
https://www.webbaviation.co.uk/aerial/p … tegory/549
https://www.webbaviation.co.uk/aerial/_ … 323-xs.jpg
The print out says-
Information is read from Dymchurch Station db50323 - Dymchurch_Station_db50323.jpg
no IPTC information Dymchurch_Station_db50323.jpg
EXIF Fields in Dymchurch_Station_db50323.jpg
FileName = Dymchurch_Station_db50323.jpg
FileDateTime = 1588854191
FileSize = 468197
FileType = 2
MimeType = image/jpeg
SectionsFound =
COMPUTED
html = width="2000" height="1051"
Height = 1051
Width = 2000
IsColor = 1
As it happens, this is the same image that I uploaded a second copy of and renamed sample.jpg. When I run
/tools/metadata.php it still says no IPTC information, however my sample.jpg clearly has IPTC meta dta which can be seen in online exif viewers such as -
https://metadataviewer.herokuapp.com/?i … sample.jpg
There is an 87 word description embedded in the IPTC description field.
Offline
Hi :-)
J0nny wrote:
https://metadataviewer.herokuapp.com/?img=https%3A//www.webbaviation.co.uk/aerial/tools/sample.jpg&page=https%3A//www.webbaviation.co.uk/aerial/tools/sample.jpg
no IPTC in this link
mostly XMP ?
Offline
Hi,
this is pushing the boundaries of my meta data knowledge, but for practical purposes, IPTC is the information and XMP is the software format in which it is written or read. Thus in exif viewers like the one above and Jeffries Exif Viewer it is named as XMP , whereas in the firefox exif viewer plug in it is named IPTC Core (Adobe XMP).
However it is named, that's the info I want to add. I create it using photo mechanic, a very common piece of software for photographers. I don't have any other software that can add a meta data description, but if its an incompatibility with photo mechanic, I can find an alternative and run some experiments.
This mornings experiment was I tried uploaded several images from a completely different computer at a completely different physical address. The results were the same, no Meta description shown.
Offline
Hi :-)
can you send me photowith XMP ?
Offline
A clue - I have just uploaded an image with a copy of photo mechanic which has not had any updates applied for the last 2 weeks and the iptc showed in piwigo. Im still experimenting but it looks like a change in photo mechanic has made the iptc non readable in piwigo. I will do some more experiments to confirm this suspicion.
Here are 2 images, one with IPTC that Piwigo can read and one with IPTC that PIWIGO cannot read:-
Cant read:-
https://www.webbaviation.co.uk/aerial/g … b50323.jpg
Can read :-
https://www.webbaviation.co.uk/aerial/_ … 566-xs.jpg
Note, as I uploaded the later using the update function, if you view the large "original" version in the gallery it shows a cached version of the previous image. The xs version above is the new copy added today with an old copy of photomechanic for the iptc.
Offline
J0nny wrote:
for practical purposes, IPTC is the information and XMP is the software format in which it is written or read.
Half-way.. While IPTC is a standard (and standards body) and XMP a method to write metadata using XML to images and also XMP is used to write IPTC information, there is also so-called IPTC-IIM metadata "IPTC fields". In an image, both IPTC-IIM or XMP, either or none can be present. Confusing? Yeah. And different software treats them differently and/or keeps them in sync or not. See https://iptc.org/standards/photo-metada … -metadata/
Offline
J0nny wrote:
Cant read:-
https://www.webbaviation.co.uk/aerial/g … b50323.jpg
in your photo ->
Incorrect APP1 Exif Identifier Code
IPTC is in APP13
in your photo no APP13
error encoding ?
Offline
> Incorrect APP1 Exif Identifier Code
Hi, thanks, that sounds like something I should take up with photomechanic rather than a piwigo problem. I will ask them
Thanks for all your help on this :o)
Last edited by J0nny (2020-05-08 12:36:40)
Offline
I found the problem, it was a setting in Photo Mechanic.
For anyone reading this later with the same problem, it was under preferences > IPTC/XMP
There is a check box which for some reason got accidental unchecked. All I had to do was check the box called " add embedded IPTC (XMP will always be written ) "
Thanks to everyone who replied.
Offline
J0nny wrote:
I found the problem, it was a setting in Photo Mechanic.
For anyone reading this later with the same problem, it was under preferences > IPTC/XMP
There is a check box which for some reason got accidental unchecked. All I had to do was check the box called " add embedded IPTC (XMP will always be written ) "
Thanks to everyone who replied.
Thanks explain solution :-)
Offline