Need help - Will Pay $ - Someone Familiar with Repairing CR2 files?


Recommended Posts

Had a hard drive go south prior to backup of a wedding. Am in desperate need. Recovered from original media card the CR2 files I shot; was near 800 in all. All but 100 of them are corrupted as recovered from the CF card. They are all recognized as CR2 files in Explorer and even have the correct file sizes. But neither Lightroom, Canon Photo Utility, Photoshop or any other editors will open them. I've tried ExiftTool to extract JPGs, got file format errors. I have a Hex Editor but can't make heads or tails of what I'm looking at. I'm out of options and don't want to have to tell this couple I have lost their photos. Anyone out there have experience with repairing this type of file corruption that can do the work or have suggestions? PLEASE. Need help!!!!

CR2Repair prompts me to download Stellar Photo Repair, which is the program I used to recover the CR2 files from the CF Card. But although it says in the description that the software can repair corrupted headers, I can't for the life of me figure out how to do that. 

you can use PhotoInfo to recover the JPEG from the EXIF, if the header is still OK or has minor damage; if the header is very damaged than even if the data is still OK (doubt it), you can't access it. Please post the EXIFTool result here, so we can see if it's still possible to recover something. Also did you try PhotoInfo? There's also Quick JPEG from CR2, but i haven't tried it: http://www.gdzid.com/QJFC.htm

_MG_8767.CR2

Main Info

 

Filename

_MG_8767.CR2

Directory

H:

Image type

Canon Raw File

Width

0 pixels

Height

0 pixels

File size

23.1Mb

File created date

11/25/2013 12:17:38 PM

File modified date

9/7/2013 5:30:30 PM

Bits Per Plane

8

Planes

3

Dpi

72 pixels

tada

 

or8tV1x.png

 

edit:zhangm beat me to it.

 

anyways, just mangled headers. the header is in the middle of the file. to fix the image, start at the header, cut from there till the end of the file, this will include the header and some image data, and paste this back at the top of the file, so whatever you pasted is the header+some image data,then the rest of the data will follow. save and you have your image. its tedious if you have many images. i might be able to write you a program to automate it. i cant do it now though.

I'm using XVI32 to view the files, find the second instance of FF E0 in each one, and delete up to that point.

http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm

http://www.mikekunz.com/image_file_header.html

XVI32 is scriptable, so check out the documentation on their site.

This is greek to me. Any help in salvaging these images would be so appreciated. Let me look over the post, get the program and take a stab. Worst case scenario I get nowhere and hire you :-)

There are 800 images. Need to salvage as many as I can. 
 

turns out, this is just the lossless jpeg image that is stored as grayscale. there is still plenty of info in the file such as color that needs to be parsed. i'll definitely parse the file further hoping to demangle it so it displays correctly.

ok heres the deal. it looks like in each of the 2 files you provided, there is the complete grayscale image, and some color data, about 1/4 color of the image. there is other data in the file, but this looks like color data of a different file. i tried replacing the 3/4 color data in one file from the other one you gave me, but it isnt the right one. the problem is that parts of different files are mangled in between and they may not be in order.

 

you provided image files 8767,and 8768. if you could upload 5 images before 8767 and 5 images after 8768, i could then try using the color information from those files into the 2 images i currently have. if the correct color exists in these for the 2 files i have, then hopefully there is a pattern where we could see for example 3 filename numbers back has the correct color information for us to complete the current numbered image.

If you want to get a raw byte-by-byte image of the entire memory card to me, perhaps from that I could attempt to repair the filesystem and see if we can get the entire set of files restored.

Instructions for doing the above (so you can get on with some of it if I've gone to bed):

 

Capturing the device image:

 

We're going to use the Linux dd command with a 'Live' Linux CD. (I'm presuming you're not using Linux as your main operating system right now, else some of this is redundant).

 

Note, in regards to storage space for saving this device image; The image file is going to be slightly larger than the total volume size of the memory card you're copying. Whether though you actually need this amount of space to store it depends on whether the file system of the device you're storing it on uses compression and if so how much space can be saved. FAT does not use compression, but NTFS does. If you're going to save it to a hard drive, it's perhaps unecessary to point this out, but if you're saving to a pen drive or another memory card, this fact may be important!

 

Also note, I'm generally presuming you're using a Windows computer and therefore NTFS; Ubuntu may 'mount' your NTFS partitions automatically, if not, the following instructions may help: http://superuser.com/questions/352157/mount-ntfs-windows-partition-on-ubuntu-live-cd

 

1) Download a Linux live CD (E.g the standard desktop Ubuntu install disk)

2) Burn it to disk

3) Reboot your computer and boot this (I presume you need no instructions here, ask if you do). At some point during booting it, it'll give you an option to "try ubuntu without making changes to your computer", that's the one you want.

4) Connect the memory card if you haven't already

5) Connect the device/card you're going to save the image file to, if necessary

6) Load a terminal (command prompt)

7) Enter the following, modifying the references to the devices as necessary:

sudo dd if=/dev/hda of=/dev/hdb/image.dd bs=512 conv=noerror,sync

Where /dev/hda is the device to copy from and /dev/hdb is the device to save the file to.

8) When it's completed, you can shutdown and boot your normal OS

 

Getting it to me:

 

We'll use torrents as an efficient mechanism if you're happy with that.

 

1) Download and install utorrent (or other client of choice)

2) File > create new torrent

3) Point it to the image file (image.dd) created above

4) Leave all other options as defaults, i.e. leave the public trackers, leave 'start seeding' checked, leave 'private torrent' UNchecked

5) Click 'create' and save the small torrent file somewhere

6) Email me that little torrent file (I can give you my email via PM)

7) I'll open the torrent file in my torrent client which will start copying the file over to my computer, we just need to leave our computers on until I've got it, then I can start to work on it

Oh, something I forgot when writing the above instructions, when sending it to me, stick the image file in a zip file to compress it, then make the torrent with the zip file. That may reduce the size of the file to be transfered. I presume you need no instructions for this, but just ask if you do.

How large is this file going to be? Just thinking that using a service like http://ge.tt might be easier, if you are not a torrent user already.

 

 

What is the maximum/largest file size?

We do not limit the file size you can upload, but your account may not have enough storage space for the file. If that's the case you can upgrade your account to get more space.

Some browsers may limit you to 2GB per file. If this is a problem, then you can use a newer browser. Chrome is always a good choice.

 

What is the storage limit without an account?
You have 250MB of storage space without creating an account. If you create a free account you will receive 2GB space.
 
  • 2 weeks later...
This topic is now closed to further replies.
  • Posts

    • For some reason I suddenly have the urge to go shopping at Sears.
    • So I did a quick test based on 3+ different public instances from the litany at searx.space ... and it spins everything rather differently. It seems that SearXNG is a meta-search engine (queries multiple search indexes rather than only Google's or Bing's or Wikipedia's or Reddit's) that operates in two modes: > public instances ... each instance opens itself to outside users who piggyback on its cached search history; this instance's own identity becomes known/tracked but end-users are hidden similar to an anonymization proxy; this instance's querying of major search indexes may be API based [rated limited, blocked, etc.]). > private instances ... your private install/instance that itself queries multiple (configurable) search indexes of crawled web content; every major Search Engine associates all traffic to your private instance (so your traffic is tracked via network usages) but client-side tracking (your own browser/computer specs) is flushed because it's a "server" doing the querying rather than your browser. My test asked the same 1 question to the 3+ engines and they all returned vastly different results: some had CAPTCHA failures against Google, some had failures against Wikipedia, and the actual results were also different -- some had auto-complete enabled, others returned a wikipedia highlighted excerpt despite the Wikipedia failure (hinting at results being cached from previous keyword matching), and others just gave an Are-You-Human non-CAPTCHA loop before returning random results. So this begs the caveat: Search query results will vary based on which instance is used because every instance queries the other search indexes separate (and thus its results are influenced on that instance's aggregate search history and index-access limitations). The major distinctions for SearXNG versus DDG or Brave: > The search UI is 'untracked' since no UI trackers are baked-in which would phone home or lay cookies into your browser (for DDG/Brave usage stats), > There is no 'crawler' that canvasses the Internet to discover fresh content (it leaves that to the major search indexes), > Queries multiple search indexes ("meta-search engine") based on the configurations and usage history of the server instance, > Privacy-friendly due to its ability to shield user tracking via standing up a non-local server instance connectable to major VPN providers: queries would all appear to come from general VPN/Proxy providers rather than your private instance (whether installed locally or on your own VPS in the cloud). PS: I've previously come across specialized search engines of this nature that indexes searches across media assets like YT, OF, etc. SearXNG seems to be a good backbone...if the rate-limiting/captcha/etc. issues were resolved.
    • For a guy who claims to hate Farage and the ignorant, gullible, rightwing racist skinheads sponsored by Putin that his lies represent, you sure are quoting them time and time and time again, mate. I guess you're conveniently ignoring the fact that your country and commonwealth just happened to work much better when it was still part of the E.U.? Denial isn't just a river in Egypt.
    • Do you live in the U.K? Do any of the people here that are against the UK leaving the E.U, live in the U.K? If not then why are you bothered? If you do live here then it is a different thing . Brexit was a good idea, should have done it years before, it was done badly, but the idea was good. You are saying the same thing as remainers do, oh we did what Putin wanted, we listened to the lies and Farage. I hate Farage and never believed most of what he said, certainly did not believe the £350m a week for the NHS. But we did pay a lot of money to the E.U and yes some of it came back, but what is the point of paying it out for only some of it to come back? Get out of the E.U, no money to them and in theory we can use the money to do things in the country. I said in theory, but our governments are a total and complete waste of space. No matter what colour rosette they wear. You and others say it was a mistake and yet the two main parties in the U.K are not looking at rejoining the EU, I wonder why that is? I was not tricked by anyone. Makes no odds now, we are out and have been for 10 years, what we need is a decent government to run the country. All they do is shout at each other like a load of kids and seems to do nothing and make this country more into a police and nanny state. Getting more like China all the time.
    • 4TB TEAMGROUP MP44Q, 2TB T-Force G50, and 2TB WD My Passport SSDs drop to great prices by Fiza Ali Prime Day may be over, but there are still worthwhile storage deals available, including discounts on SSDs for shoppers who missed the event or are looking to upgrade their storage solution. Particularly, 2TB Western Digital My Passport, 2TB TEAMGROUP T-Force G50, and 4TB TEAMGROUP MP44Q SSD are selling at great prices with up to 23% off. The 2TB TEAMGROUP T-Force G50 is an M.2 2280 PCIe 4.0 x4 NVMe SSD with sequential read speeds of up to 5,000MB/s and sequential write speeds of up to 4,500MB/s. The drive has an endurance rating of 1,300 TBW (terabytes written) and features a DRAM-less design. The company specifies a mean time between failures (MTBF) of 3 million hours. The drive includes an "ultra-thin" graphene heat spreader that helps dissipate heat without significantly increasing the drive's thickness. It also supports S.M.A.R.T. monitoring, allowing compatible software to monitor drive health and operating status. The SSD is rated for operating temperatures from 0°C to 70°C, with a storage temperature range of -40°C to 85°C. The drive is backed by a five-year limited warranty as well. 2TB TEAMGROUP T-Force G50 SSD: $269.99 (Amazon US) The TEAMGROUP MP44Q is an M.2 2280 PCIe 4.0 x4 NVMe SSD that delivers sequential read speeds of up to 7,000MB/s and sequential write speeds of up to 5,900MB/s. It uses 3D QLC NAND flash memory to provide 4TB of storage capacity for games, applications, media files, and other data. The drive has an endurance rating of 2,000 TBW and an MTBF of 1.6 million hours. The SSD features a DRAM-less design and supports TEAMGROUP's S.M.A.R.T. monitoring software, allowing users to monitor drive health, temperature, and remaining lifespan. For thermal management, the MP44Q also includes an "ultra-thin" graphene heat spreader. It is designed to operate at temperatures between 0°C and 70°C and can be stored at temperatures ranging from -40°C to 85°C. The SSD is also backed by a five-year limited warranty. 4TB TEAMGROUP MP44Q SSD: $478.99 (Amazon US) The 2TB WD My Passport SSD connects via a USB-C port using the USB 3.2 Gen 2 interface. It delivers sequential read speeds of up to 1,050MB/s and sequential write speeds of up to 1,000MB/s through NVMe technology. In terms of security features, the drive includes password protection with 256-bit AES hardware encryption. The SSD is also designed to resist shock and vibration and is rated to withstand drops from heights of up to 6.5 feet. The recommended operating temperature range is 5°C to 35°C, while the non-operating temperature range is -20°C to 65°C. This drive is also backed by a five-year limited warranty. 2TB Western Digital My Passport SSD: $279.99 (Amazon US) Good to know This Amazon deal is U.S. specific, and not available in other regions unless specified. We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only. Check out Today's Deals on Amazon | or our recent tech deals. Become a Prime member (for Students or SNAP) via Neowin Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP) Subscribe to Prime Video, Audible Plus, Music Unlimited or Kindle Unlimited via Neowin As an Amazon Associate, we earn from qualifying purchases.
  • Recent Achievements

    • Week One Done
      flexorcist earned a badge
      Week One Done
    • One Month Later
      Woland13 earned a badge
      One Month Later
    • Week One Done
      Woland13 earned a badge
      Week One Done
    • One Year In
      bernmeister earned a badge
      One Year In
    • Week One Done
      Scoobystu earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      492
    2. 2
      +Edouard
      225
    3. 3
      PsYcHoKiLLa
      147
    4. 4
      Steven P.
      75
    5. 5
      FloatingFatMan
      71
  • Tell a friend

    Love Neowin? Tell a friend!