Announcement

  •  » Extensions
  •  » Date taken/created from filename?

#1 2022-01-08 20:40:57

Haxton Fale
Member
UK
2021-12-23
5

Date taken/created from filename?

Hello,

I am currently using Piwigo as a gallery for (among other things) my Final Fantasy screenshots, taken in PNG format. However, they end up uploaded without the correct creation date set even though I am reasonably certain that I have it set correctly with exiftool.

Having said that, setting the metadata ahead of upload every single time is a major pain, and I'd much rather have the information retrieved from filenames if appropriate. Is there a plugin to do so?

Offline

 

#2 2022-01-09 07:20:59

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

Re: Date taken/created from filename?

Hi :-)

Have you read this doc page -> https://piwigo.org/doc/doku.php?id=user … amp;s=exif


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

 

#3 2022-01-09 09:04:00

Haxton Fale
Member
UK
2021-12-23
5

Re: Date taken/created from filename?

I have! It was most unhelpful. I have learned that PNG files do not store the metadata in the same way JPEGs do, but no matter how I tried to populate my own PNG files nothing seemed to stick upon upload.

Offline

 

#4 2022-01-09 11:47:05

erAck
Only trying to help
2015-09-06
2025

Re: Date taken/created from filename?

Haxton Fale wrote:

they end up uploaded without the correct creation date set even though I am reasonably certain that I have it set correctly with exiftool.

Could you provide a link to a sample image?


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

Offline

 

#5 2022-01-09 19:57:28

Haxton Fale
Member
UK
2021-12-23
5

Re: Date taken/created from filename?

Sure! Here is a picture that should have had its metadata set with exiftool, but as far as I can tell none of it sticks and/or Piwigo never reads the creation date correctly.

Offline

 

#6 2022-01-09 23:44:39

erAck
Only trying to help
2015-09-06
2025

Re: Date taken/created from filename?

Seems Piwigo can't read any EXIF/IPTC data from PNG. The PHP read_exif_data() function apparently also can't. After only 4 years of EXIF in PNG (eXIf chunk standardization) that standard may be too new.. *cough*

As a workaround you could convert to JPEG before uploading, e.g. using ImageMagick
convert file.png file.jpg


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

Offline

 

#7 2022-01-10 00:11:55

Haxton Fale
Member
UK
2021-12-23
5

Re: Date taken/created from filename?

I could, yes, but that's still adding extra steps to my original issue of "I would like to pull the date from filename if not present in metadata"

Offline

 

#8 2022-01-10 00:35:37

erAck
Only trying to help
2015-09-06
2025

Re: Date taken/created from filename?

Well, pulling dates from file names is not possible (unless you implement it), so ...


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

Offline

 

#9 2022-01-10 00:51:53

Haxton Fale
Member
UK
2021-12-23
5

Re: Date taken/created from filename?

Thus my initial question: is there anything that has this particular feature? A plugin, for example? I'll take that as a no.

Offline

 
  •  » Extensions
  •  » Date taken/created from filename?

Board footer

Powered by FluxBB

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