Announcement

#1 2019-09-11 03:56:30

pokmis
Member
2019-09-11
2

Default Creation date to file created date if EXIF not available?

Hi,

Is there a way to configure Piwigo so, upon image upload,  it automatically populates 'Creation Date' for files that don't have metadata available? I frequently have PNG files taken from iOS that have no embedded metadata and they end up having NULL values for Creation Date which means they don't show up correctly in my albums which are sorted by 'Creation date'

Ideally I'm looking for a way to either:
-automatically set the date to the image file date created timestamp if no metadata are in the file
or
-automatically set the date to the image post timestamp if no metadata are in the file

Piwigo 2.9.5
Operating system: Linux
PHP: 5.5.22 (Show info) [2019-09-10 21:47:04]
MySQL: 5.6.41-84.1-log [2019-09-10 21:47:04]
Graphics Library: External ImageMagick 6.8.9-9

Offline

 

#2 2019-09-12 06:49:21

executive
Member
2017-08-16
664

Re: Default Creation date to file created date if EXIF not available?

automatically, no.
But you can use batch manager to set the creation date with a few clicks.

Offline

 

#3 2019-10-01 04:38:46

pokmis
Member
2019-09-11
2

Re: Default Creation date to file created date if EXIF not available?

I created a plugin extension named "Default Creation Date To Today" to implement this behavior automatically
https://piwigo.org/ext/extension_view.php?eid=887

Automatically set the "Creation Date" of uploaded images that have no DateTimeOriginal EXIF data to the date/time they were uploaded.

If you like to organize your albums by Creation Date but sometimes upload images with no EXIF data this extension will default the creation date to the time they were uploaded so they show up in a meaningful order.

Offline

 

#4 2019-10-01 06:08:09

executive
Member
2017-08-16
664

Re: Default Creation date to file created date if EXIF not available?

Thank you for your contribution and hard work.

Offline

 

Board footer

Powered by FluxBB

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