How to export/import Makernotes?

Started by ajax, April 08, 2022, 10:46:50 PM

Previous topic - Next topic

ajax

Have been confronted with a problem caused by lack of support for metadata in Canon CR3 (raw) files when post processing with Rawtherapee (RT).  When I develop a Canon CR3 raw file using RT the resulting images (e.g., tif format) do NOT contain the Makernotes.  I've been using ExifTool GUI (ETG) to manipulate metadata for some time now with very good success.  However, these CR3 files are new since development of ETG ceased.  Insofar as ETG uses ExifTool which is being updated and appears to support CR3 format files I'm thinking ETG should still work.  The problem seems to be that when you use the Export/Import menu to copy metadata from a selected file the files with a CR3 extension are excluded.  Thought here is that there might be a way to add CR3 files without needing to modify the program.  In that, some kind of configuration or setup change. Is there any possibility someone here might know how to do that?

If ETG cannot be revised then I'm pretty sure that ExifTool can do the job but I could use some help figuring out how to write a command to do this?

StarGeek

I don't know if this is still the case, but there is this previous post on copying MakerNotes from a CR3.  While it was specific to copying to a DNG, I would think the problem is the same due to the split of data in the CR3.

Quote from: Phil Harvey on September 29, 2020, 06:12:58 AMExifTool can't currently copy MakerNotes from a CR3 file -- this would require some dedicated logic since the MakerNotes are arranged very differently in a CR3 file compared to those that would go into a DNG.  In a CR3 file the maker notes are split into (at least) 4 different sections which would need to be re-assembled to be stored in a DNG.  I could possibly look into adding this feature, but it would be some work (which may be why Adobe punted on this one, but they have a whole team of programmers so I don't see this as a valid excuse for them).
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Phil Harvey

I don't have time to look into this in detail right now, but this seems to work:

> cp t/images/Writer.jpg a.jpg
> exiftool a.jpg -canon:all
> exiftool a.jpg -tagsfromfile t/images/CanonRaw.cr3 -make -model -makernotes
    1 image files updated
> exiftool a.jpg -canon:all
Macro Mode                      : Normal
Self Timer                      : Off
Quality                         : RAW
Canon Flash Mode                : Off
Continuous Drive                : Single
Focus Mode                      : AF + MF
Record Mode                     : CR3+JPEG
Canon Image Size                : Large
Easy Mode                       : Manual
Digital Zoom                    : None
Contrast                        : Normal
Saturation                      : Normal
Camera ISO                      : Auto
Metering Mode                   : Evaluative
Focus Range                     : Not Known
Canon Exposure Mode             : Aperture-priority AE
Lens Type                       : Canon EF-M 15-45mm f/3.5-6.3 IS STM
Max Focal Length                : 45 mm
Min Focal Length                : 15 mm
Focal Units                     : 1/mm
Max Aperture                    : 3.6
Min Aperture                    : 23
Flash Activity                  : 0
Flash Bits                      : E-TTL
Zoom Source Width               : 0
Zoom Target Width               : 0
Manual Flash Output             : n/a
Color Tone                      : Normal
SRAW Quality                    : n/a
Focal Length                    : 15 mm
Auto ISO                        : 100
Base ISO                        : 12800
Measured EV                     : 2.75
Target Aperture                 : 3.6
Target Exposure Time            : 1/81
Exposure Compensation           : 0
White Balance                   : Auto
Slow Shutter                    : None
Shot Number In Continuous Burst : 0
Optical Zoom Code               : n/a
Camera Temperature              : 38 C
Flash Guide Number              : 0
Flash Exposure Compensation     : 0
Auto Exposure Bracketing        : Off
AEB Bracket Value               : 0
Control Mode                    : Camera Local Control
F Number                        : 3.6
Exposure Time                   : 1/70
Measured EV 2                   : 1.625
Bulb Duration                   : 0
Camera Type                     : EOS High-end
Auto Rotate                     : None
ND Filter                       : n/a
Canon Image Type                : Canon EOS M50
Canon Firmware Version          : Firmware Version 1.0.0
Owner Name                      :
Canon Model ID                  : EOS M50 / Kiss M
Thumbnail Image Valid Area      : 0 159 6 113
AF Area Mode                    : Face + Tracking
Num AF Points                   : 143
Valid AF Points                 : 1
Canon Image Width               : 6000
Canon Image Height              : 4000
AF Image Width                  : 6000
AF Image Height                 : 4000
AF Area Widths                  : 337 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
AF Area Heights                 : 299 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
AF Area X Positions             : 392 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
AF Area Y Positions             : -327 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
AF Points In Focus              : 0
AF Points Selected              : 0
Image Unique ID                 : 3b7f679f6bf5d5e1b60ca2b2f051a029
Time Zone                       : +00:00
Time Zone City                  : London
Daylight Savings                : Off
Battery Type                    : LP-E12
Bracket Mode                    : Off
Bracket Value                   : 0
Bracket Shot Number             : 0
Raw Jpg Size                    : Large
WB Bracket Mode                 : Off
WB Bracket Value AB             : 0
WB Bracket Value GM             : 0
Live View Shooting              : On
Focus Distance Upper            : 0.24 m
Focus Distance Lower            : 0.22 m
Shutter Mode                    : Electronic First Curtain
Flash Exposure Lock             : Off
RF Lens Type                    : n/a
Lens Model                      : EF-M15-45mm f/3.5-6.3 IS STM
Internal Serial Number          : CG0156580
Dust Removal Data               : (Binary data 1024 bytes, use -b option to extract)
Crop Left Margin                : 0
Crop Right Margin               : 0
Crop Top Margin                 : 0
Crop Bottom Margin              : 0
Aspect Ratio                    : 3:2
Cropped Image Width             : 6000
Cropped Image Height            : 4000
Cropped Image Left              : 0
Cropped Image Top               : 0
Tone Curve                      : Standard
Sharpness                       : 4
Sharpness Frequency             : n/a
Sensor Red Level                : 0
Sensor Blue Level               : 0
White Balance Red               : 0
White Balance Blue              : 0
Color Temperature               : 5200
Picture Style                   : Auto
Digital Gain                    : 0
WB Shift AB                     : 0
WB Shift GM                     : 0
Measured RGGB                   : 1183 1024 1024 461
Color Space                     : sRGB
VRD Offset                      : 0
Sensor Width                    : 6288
Sensor Height                   : 4056
Sensor Left Border              : 276
Sensor Top Border               : 48
Sensor Right Border             : 6275
Sensor Bottom Border            : 4047
Black Mask Left Border          : 0
Black Mask Top Border           : 0
Black Mask Right Border         : 0
Black Mask Bottom Border        : 0
Picture Style User Def          : Auto; Auto; Auto
Picture Style PC                : None; None; None
Custom Picture Style File Name  :
AF Micro Adj Mode               : Disable
AF Micro Adj Value              : 0
Peripheral Lighting Setting     : On
Chromatic Aberration Setting    : On
Distortion Correction Setting   : Off
Peripheral Illumination Corr    : Off
Auto Lighting Optimizer         : Standard
Highlight Tone Priority         : Off
Long Exposure Noise Reduction   : Off
High ISO Noise Reduction        : Standard
Ambience Selection              : Standard
Grainy B/W Filter               : Off
Soft Focus Filter               : Off
Toy Camera Filter               : Off
Miniature Filter                : Off
Miniature Filter Orientation    : Horizontal
Miniature Filter Position       : 0
Miniature Filter Parameter      : 0
Fisheye Filter                  : Off
Painting Filter                 : Off
Watercolor Filter               : Off
HDR                             : Off
HDR Effect                      : Natural


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

ajax

Phil,

Yes that seems to do it!

Thanks both for the help and especially for the tool.

Phil Harvey

Yes.  Here is why this works:

Oct. 29, 2020 - Version 12.09
  - Added ability to copy CanonMakerNotes from CR3 images to other file types


(this was mentioned later in the same thread that StarGeek quoted)

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