Cannot change metadata date on one photo file
Opened this issue · 1 comments
Describe the bug
I have successfully changed the date in the metadata of many photos on my NC installation with Memories. There is one photo that the date simply always changes to the current date/time no matter what I put into the date change dialog. To be clear, Memories allows me to enter a new date but once I submit the change it just changes the date to today's date/time.
The file is named gplus-1233776374.jpg
however the file
utility on Linux reports that it's a PNG:
# file /var/lib/nextcloud/data/brian/files/Phone/DCIM/Camera/gplus-1233776374.jpg /var/lib/nextcloud/data/brian/files/Phone/DCIM/Camera/gplus-1233776374.jpg: PNG image data, 1440 x 2560, 8-bit/color RGB, non-interlaced
I have tried updating the timestamp on the filesystem with touch
:
# touch -d 2016-01-23\ 19:45:00 /var/lib/nextcloud/data/brian/files/Phone/DCIM/Camera/gplus-1233776374.jpg
however Memories still shows the date it was imported as it's metadata date. But the file itself has a much older date after the above touch
:
# stat /var/lib/nextcloud/data/brian/files/Phone/DCIM/Camera/gplus-1233776374.jpg
File: /var/lib/nextcloud/data/brian/files/Phone/DCIM/Camera/gplus-1233776374.jpg
Size: 104561 Blocks: 208 IO Block: 4096 regular file
Device: fd14h/64788d Inode: 1450775 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 48/ apache) Gid: ( 48/ apache)
Context: system_u:object_r:httpd_sys_rw_content_t:s0
Access: 2016-01-23 19:45:00.000000000 -0500
Modify: 2016-01-23 19:45:00.000000000 -0500
Change: 2024-10-26 17:57:47.808521302 -0400
Birth: 2024-10-26 13:40:22.004442179 -0400
not that I think needing to use touch
should be necessary (editing in Memories should be sufficient), but I just did that as a debugging step.
This issue seems similar to #921 however there doesn't seem to be any EXIF data in it to be corrupt:
ExifTool Version Number : 12.70
File Name : gplus-1233776374.jpg
File Size : 105 kB
File Modification Date/Time : 2024:10:26 17:59:39-04:00
File Access Date/Time : 2024:10:27 12:05:52-04:00
File Inode Change Date/Time : 2024:10:26 18:00:02-04:00
File Permissions : -rw-r--r--
File Type : PNG
File Type Extension : png
MIME Type : image/png
Image Width : 1440
Image Height : 2560
Bit Depth : 8
Color Type : RGB
Compression : Deflate/Inflate
Filter : Adaptive
Interlace : Noninterlaced
Significant Bits : 8 8 8
Image Size : 1440x2560
Megapixels : 3.7
Steps To Reproduce
No response
Platform
- OS: Linux
- Browser: Chrome
- Memories Version: 7.4.1
- Nextcloud Version: 29.0.8
- PHP Version: 8.0.30
Screenshots
No response
Additional context
- Any errors in the JS console?
- Any errors in the Nextcloud server logs?
PNG's exif support is iffy at best, I'll suggest just converting to another format if this is a photo. Memories uses the exiftool output, which seems to point to today's date.