0
votes

What I want to do is display thumbnail images of photographs (the 150x150 images) in a page organized by the date the picture was taken.

I looked at the files uploaded, and the original (unchanged, large) image has the original date, but the thumbnails are dated at the date of the upload. I imagine there must be some way of post-processing the thumbnails to change their date to the original date, or to add some tag containing the date?

1

1 Answers

1
votes

You can use touch: http://php.net/manual/en/function.touch.php

So after the thumb is created use touch to set the file dates/times to the ones of the original file.

P.S. original file time with for example filectime() http://php.net/manual/en/function.filectime.php