#1 2013-04-01 07:38

tipsen
Member
Registered: 2013-04-01
Posts: 1

Support for EXIF-data in CR2-files (Canon DSLR's RAW)

Hi

Would love to see support for reading EXIF-data from CR2-files (RAW-files from Canon DSLR's).
I'm using EXIF-data for renaming my .jpg files with date-picture-taken name but can't do the same with my CR2-files.

Regards, Tommy Ipsen

Offline

#2 2013-04-01 07:58

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,374

Re: Support for EXIF-data in CR2-files (Canon DSLR's RAW)

Hi,

EXIF data from CR2/CRW/RAW images can be extracted using a 3rd party tool in combination with PascalScript rule.

The RAW ready bundle can be downloaded from here: ReNamer-5.70-RAW+PDF.zip

Here is the related discussion: Date and Time from RAW images (CRW, CR2, RAW)

Also, there is a wiki article about this: ReNamer:Scripts:Exiv2

Last edited by den4b (2013-04-01 14:07)

Offline

#3 2018-08-23 09:55

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Support for EXIF-data in CR2-files (Canon DSLR's RAW)

@den4b
The URL for the zip and the script didn't work anymore.

I have investigated and collected some of your information here including updated link to the script

den4b wrote:

ReNamer Support for EXIF-data in CR2-files (Canon DSLR's RAW)

1) Download a tool called Exiv2 and unpack it into ReNamer's folder.
It is a command-line tool, it will let you extract date and time from RAW images.
Exiv2 is free software; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation

- - -
Download: http://www.exiv2.org/download.html
> Builds
> Visual Studio 32 & 64 bit DLLs for MSVC 2005/8/...
http://www.exiv2.org/builds/exiv2-0.26-msvc.tar.gz

Extract the archive (extract the GZ and then the TAR)
We need the BIN folder:
x:\TEMP\exiv2-0.26-msvc.tar\exiv2-0.26-msvc\dist\2015\Win32\dll\Release\bin\exiv2.exe

Copy the FILES of the whole BIN folder to the ReNamer folder where the ReNamer.exe is located.
- - -

Update
Even better:
I have found the Windows command line executable.
http://www.exiv2.org/download.html >> Older releases are also still available.  >> http://www.exiv2.org/archive.html
Exiv2 v0.25 Windows executable     exiv2-0.25-win.zip >> http://www.exiv2.org/releases/exiv2-0.25-win.zip
Now there are much less files to handle with as many functions are include in the big "exiv2.exe" (3,8MB)
Disadvantage: it may not be the newest exvi2 release (0.25 != 0.26).

cmd.txt
cmdxmp.txt
exiv2.exe
exiv2-man.html
libexpat.dll

- --


2) Get your hands on the latest version of ReNamer,
http://www.den4b.com/products/renamer    >>>    Downloads

and add a PascalScript rule  > http://www.den4b.com/wiki/ReNamer:Pascal_Script
with this code: http://www.den4b.com/wiki/ReNamer:Scripts:Exiv2

3) Drag over your RAW images to ReNamer, Preview, and Rename




More Info:
"minor modifications might be required as both of these tools update".
That's what probably happened.
The Exiv2 tool got updated, and image timestamp line from the output has been moved
from line 5 to line 9 (according to what I see from your modifications).
I don't think there was any need for major modifications, you could have just
changed TIME_STAMP_LINE constant to 9, and it should've worked smile
Unfortunately I don't have RAW files anymore, to perform the tests and support my guess...


EXIF format is quite versatile and has multiple standard and proprietary locations for storing the date taken.
The standard locations are tagged with 'DateTimeOriginal' and 'DateTime' in EXIF structure.
That is where ReNamer reads it, in that particular order.
Images can have other meta data streams attached to it, alternatives to standard EXIF.
File Explorer might be getting a different date taken from an alternative data stream.
Can you provide a sample image for analysis?
If you can, email it to the email address found in the About dialog.





See some examples of exiv2 command line use and also an example output of exiv2:
http://www.den4b.com/forum/viewtopic.php?pid=9565#p9565

Other example:
http://www.den4b.com/forum/viewtopic.php?id=2428


Sample images repository >  http://www.rawsamples.ch/




Enjoy!
 


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

Board footer

Powered by FluxBB