NfNitLoop / feoblog

A distributed, cryptographically-verifiable blog / social network
Other
71 stars 4 forks source link

Strip "Media Group UUID" exif from JPEG images #121

Open NfNitLoop opened 1 year ago

NfNitLoop commented 1 year ago

Scenario:

If the user ever uploads the image again, it has different file contents, thus a different hash, and breaks content-addressable store. Leads to:

NfNitLoop commented 1 year ago

Brainstorming:

Q: Should I just strip all exif data out of images?

A: No. If I'm working on a computer and I drag a file in, I may want the exif metadata to stay present. We shouldn't modify files without users' consent. (Though, we may want a separate feature to warn people about exif metadata. GPS in particular.)

… But Safari (only on iOS?) creating images w/ different UUIDs with every upload feels more like a bug. So maybe limit the stripping to