go ahead... be a heretic | |
PerlMonks |
Extract Digicam images from raw fileby joe++ (Friar) |
on Jan 09, 2003 at 10:53 UTC ( [id://225501]=CUFP: print w/replies, xml ) | Need Help?? |
Monks, Some time ago I accidentally erased a Compact Flash card with digicam images, before I copied them to another medium. Stupid... Luckily I realised that those Flash Cards have some basic file system layout, very similar to ye olde FAT-16. This means that erasing a file just sets a bit in the allocation table instead of physically removing the data from the actual file blocks. Also, I was pretty sure that I didn't erase single images in between, so the actual image data would likely be aligned in consecutive file blocks. I mounted the CF card on my Mac (using a PCMCIA adapter) and copied the file system to a disk image. After some tinkering with JPEG and EXIF file format specifications I was able to recover the images. Now this is a real kludge, with the following limitations (at least):
--
Back to
Cool Uses for Perl
|
|