←back to thread

A new PNG spec

(www.programmax.net)
615 points bluedel | 8 comments | | HN request time: 4.112s | source | bottom
Show context
ggm ◴[] No.44373884[source]
Somebody needs to manage human time/date approximates in a way other people in s/w will align to.

"photo scanned in 2025, is about something in easter, before 1940 and after 1920"

replies(2): >>44374228 #>>44374233 #
1. SchemaLoad ◴[] No.44374228[source]
The issue that gets me is that Google Photos and Apple photos will let you manually pick a date, but they won't actually set it in the photo EXIF, so when you move platforms. All of the images that came from scans/sent without EXIF lose their dates.
replies(2): >>44374285 #>>44377765 #
2. ggm ◴[] No.44374285[source]
It's in sidecar files. Takeout gets them, some tools read them.
replies(1): >>44377940 #
3. mbirth ◴[] No.44377765[source]
IIRC osxphotos has an option to merge external metadata into the exported file.
4. kccqzy ◴[] No.44377940[source]
But there is no standardization of sidecar files, no? Whereas EXIF is pretty standard.
replies(2): >>44378063 #>>44385882 #
5. jeroenhd ◴[] No.44378063{3}[source]
EXIF inside of PNGs is new. You can make it work by embedding structured chunks into the file, but it's not official in any way (well, not until the new spec, at least). Sidecar files have some kind of interoperable format that at least don't break buggy PNG parsers when you open the image file. The sidecar files themselves differ in format, but at least they're usually formatted according to their extension.

The usual sidecar files, XMP files, are standardised (in that they follow a certain extensible XML structure) and can (and often do) include EXIF file information.

replies(1): >>44382587 #
6. SchemaLoad ◴[] No.44382587{4}[source]
Pretty much all the photos in Apple/Google photos are going to be JPEG and HEIF which do support EXIF. But both services basically will not touch what came out of the camera at all. If you add a description or date, it gets stored externally to the image so when you export your data, those changes are lost. Or they get dumped in a JSON file requiring you to use some custom script to handle it.
replies(1): >>44385898 #
7. account42 ◴[] No.44385882{3}[source]
XMP [0] is a standard but no idea of Google and Apple use it (Darktable does). You could also store EXIF data as sidecar files but I don't think that has better support.

[0] https://en.wikipedia.org/wiki/Extensible_Metadata_Platform

8. account42 ◴[] No.44385898{5}[source]
Not touching the image for metadata changes is a good thing as that makes backups more efficient/simpler. Embedded metadata is also a security issue as users may share more information than they realize which is why it is common to strip it automatically in many places.