Canon RAW "CR3" damaged after Canon DPP(Digital Photo Professional) save files

Started by mitch_TW, May 29, 2019, 06:32:19 AM

Previous topic - Next topic

mitch_TW

Camara:Canon EOS R
Lens:Manual lens without EXIF information
Image type:RAW(CR3)
exiftool version:11.44
OS:Windows 10 64bit

Step1:Use exiftool to write lens information(succeed)
------
exiftool -FNumber=1.4 *.CR3 -overwrite_original
------

Step2:Open Canon DPP(Digital Photo Professional) to adjust image(succeed)
Step3:Use Canon DPP to convert RAW to JPG(succeed)
Step4:Use Canon DPP to save the RAW files  and exit.

After exit Canon DPP, the CR3 RAW files size become only 2XX KB(original 3X MB)and can't be open anymore.

CR3 RAW file example
https://drive.google.com/open?id=1och9koel5_xU_9iTmgFXmf15sf8PDSyd

Phil Harvey

Thanks for this report.  I can reproduce this problem.

It turns out that for some reason CanonDPP is sensitive to the ordering of the QuickTime atoms.  ExifTool always puts the image data last, which is fine until DPP writes its editing data.  For some reason DPP doesn't rewrite the image data if it comes after the editing data (although it reads it fine in this position).  I'll see about patching Exiftool to always write the editing data last, and post back here when I know more.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

I have just released ExifTool 11.45 with a patch to fix this problem. 

The problem only affects images that were edited by DPP followed by ExifTool.  The image data will be lost if these images are subsequently edited by DPP again.

If you have any images that were edited by DPP then ExifTool (but not DPP again), then re-edit them with ExifTool 11.45 to restructure them so DPP doesn't destroy them later.

I consider this a bug in DPP, and ideally they should fix it, but in my experience large foreign companies are unlikely to address to a bug like this.

Thanks again for this report.  Hopefully we have caught it before it affects anyone else.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

mitch_TW

Quote from: Phil Harvey on May 29, 2019, 09:27:52 AM
I have just released ExifTool 11.45 with a patch to fix this problem. 
- Phil

Thank you for your hard work!

It is really a great program.

Although I  use manual lens without EXIF information, but I use exiftool to add " LensType="Canon EF 50mm f/1.2L USM".

So finally I can use Canon DPP to correct peripheral illumination or chromatic aberration !