Announcement

#1 2018-10-23 11:58:02

miblo69
Member
Stockholm, Sweden
2012-06-05
22

EXIF information is sometimes not read completely

Hi,

It seems as if php has problems with reading EXIF data in certain JPG files.  This is seemingly a known issue, but caused me headaches until i determined the root cause. This is just a heads-up to others who may have image sorting issues.

It started when the EXIF sorting in Piwigo seemingly went wonky. And I couldn't figure out why. Long story short, I have configured Piwigo to use DateTimeOriginal as primary Image sort key, but Piwigo is unable to extract that information from certain images. In my particular case the problem was related to a Huawei smartphone. Samsung, Sony and others worked well. So in Albums where several manufacturers were involved, the sorting was completely illogical - until I discovered the reason why.

I have submitted a ticket to the php team here:
https://bugs.php.net/bug.php?id=75785

The simple resolution is to use the EXIF DateTime instead of DateTimeOriginal. However it causes other implications if pictures are post-processed, since I really want to sort the photos when they were taken - not when they were processed.

Until the php issue is resolved, DateTime it is.

Piwigo version: 2.9
PHP version: 7.2.11

Offline

 

#2 2018-10-24 06:43:02

executive
Member
2017-08-16
475

Re: EXIF information is sometimes not read completely

As far as I can tell, there are at least three date fields in EXIF.  "Date/Time Original" and "Create Date" are the capture date for digital cameras, and are untouched by software (Lightroom in my case). Software updates the "Modify Date" field.

Another option would be to map one of the IPTC recorded dates.

https://piwigo.org/doc/doku.php?id=user … n:metadata

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact