News for hackers. Stuff that matters.
Re:PhotoPrism: Browse Your Life in Pictures by mceachen on Tuesday July 11, 2023 @02:59PM (#36685694)
Ah! In this case, you might be happy to discover that ExifTool just added an "image content" hash--it's the SHA (or MD5 or whatever) hash of the _actual image bytes_, after ignoring the metadata header (and possible footer) payloads.

So if you, say, change the rotation of your RAW image file (which normally will just add or change the EXIF `Orientation` tag), the image content hash will stay the same.

See https://exiftool.org/ExifTool.html#ImageHashType

(of course, your current approach should prove substantively faster, but will only work with the formats that libraw supports)

Re:PhotoPrism: Browse Your Life in Pictures by dcow on Tuesday July 11, 2023 @05:50PM (#36687716)
Why is GP's approach substantially faster?
Re:PhotoPrism: Browse Your Life in Pictures by mceachen on Tuesday July 11, 2023 @06:44PM (#36688241)
His tool is in rust, so he can directly call the libraw function. ExifTool is a perl tool, so it'd be an external process that he'd need to coordinate with.