Announcement

#1 2020-05-07 15:01:55

J0nny
Member
2017-12-15
31

sudden loss of add image IPTC desription on upload.

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

 

#2 2020-05-07 17:36:07

J0nny
Member
2017-12-15
31

Re: sudden loss of add image IPTC desription on upload.

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

 

#3 2020-05-07 18:23:19

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: sudden loss of add image IPTC desription on upload.

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',
  );


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#4 2020-05-07 20:48:32

J0nny
Member
2017-12-15
31

Re: sudden loss of add image IPTC desription on upload.

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

 

#5 2020-05-07 21:17:06

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: sudden loss of add image IPTC desription on upload.

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


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#6 2020-05-08 08:59:30

J0nny
Member
2017-12-15
31

Re: sudden loss of add image IPTC desription on upload.

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

 

#7 2020-05-08 09:05:47

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: sudden loss of add image IPTC desription on upload.

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 ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#8 2020-05-08 09:55:30

J0nny
Member
2017-12-15
31

Re: sudden loss of add image IPTC desription on upload.

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

 

#9 2020-05-08 10:25:50

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: sudden loss of add image IPTC desription on upload.

Hi :-)

can you send me photowith XMP ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#10 2020-05-08 10:50:11

J0nny
Member
2017-12-15
31

Re: sudden loss of add image IPTC desription on upload.

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

 

#11 2020-05-08 11:45:34

erAck
Only trying to help
2015-09-06
2020

Re: sudden loss of add image IPTC desription on upload.

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/


Running Piwigo at https://erack.net/gallery/

Offline

 

#12 2020-05-08 11:59:04

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: sudden loss of add image IPTC desription on upload.

in your photo ->

Incorrect APP1 Exif Identifier Code

IPTC is in APP13

in your photo no APP13

error encoding ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#13 2020-05-08 12:36:20

J0nny
Member
2017-12-15
31

Re: sudden loss of add image IPTC desription on upload.

> 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

 

#14 2020-05-08 18:54:08

J0nny
Member
2017-12-15
31

Re: sudden loss of add image IPTC desription on upload.

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

 

#15 2020-05-08 20:01:09

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: sudden loss of add image IPTC desription on upload.

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 :-)


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

Board footer

Powered by FluxBB

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