A turn-by-turn description of how Julia Evans reverse engineered the proprietary image format used by the iOS Notability app.
As she says:
People don’t usually invent totally custom file formats! Nothing in here was really complicated – it was just some existing standard formats (zip! apple plist! an array of floats!) combined together in a pretty simple way.