←back to thread

Apple Photos app corrupts images

(tenderlovemaking.com)
1133 points pattyj | 1 comments | | HN request time: 0.609s | source
1. renewiltord ◴[] No.45277896[source]
Use photorec to recover from the old SD card even if you deleted

Then for the current files you’ll want to see what happened. Often with this class of problem either the bytes are zeroed or shifted. Since the size is the same, perhaps they’re zeroed or perhaps bytes are LE to BE or dumb shit like that (don’t know why it would be but weird world right).

Just diff and see if you see anything (I wrote off memory but you get the idea)

   diff -aui <(xxd -r file1) <(xxd -r file2)
If files are getting zeroed sucks but otherwise maybe you can swizzle it back out. If full bytes look weird, look at binary representation and see if you have pattern.

From that bare start you can see what’s up.