NEF/RAW+JPG: how to maintain coherent metadata

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

NEF/RAW+JPG: how to maintain coherent metadata

Julien T
Hello people,

as the following bug is still pending
https://bugs.kde.org/show_bug.cgi?id=126149

is there an easy way to duplicate tag/rating/caption &co between both
files when they have some pre-conditions (same exif creation date,
filename w/o extension, maker model for example) ?

For now, to avoid losing time, I only tag/rate jpg but I want to
duplicate the same on raw/nef.

Thanks a lot
Best regards,

Julien
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: NEF/RAW+JPG: how to maintain coherent metadata

Robert Zeller
Hello Julien,

I am also shooting both jpg and raw/nef. I am editing tags / geodata and
captions on my jpgs only. After all is done I am using exiv2 to extract
all metadata from the jpgs; command is:

exiv2 ex *.jpg

this creates files with the same basename that the jpgs had, but with
extension .exv ; then I move the *.exv sidecars to the directory where I
store the raw files.
In this directory I use the following command sequence to write the
metadata to the *.nef files:

for F in `ls *.nef` ; do
exiv2 -iixe $F
done

The command : man exiv2 gives you all the options that are useful with
exiv2.

Hope this helps

Robert


On 01/20/2011 01:27 PM, Julien T wrote:

> Hello people,
>
> as the following bug is still pending
> https://bugs.kde.org/show_bug.cgi?id=126149
>
> is there an easy way to duplicate tag/rating/caption &co between both
> files when they have some pre-conditions (same exif creation date,
> filename w/o extension, maker model for example) ?
>
> For now, to avoid losing time, I only tag/rate jpg but I want to
> duplicate the same on raw/nef.
>
> Thanks a lot
> Best regards,
>
> Julien
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
>  

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: NEF/RAW+JPG: how to maintain coherent metadata

Elle Stone
Hi Julien,

I'm doing something similar to what Robert is doing. Except I've
decided to keep the raw files in the same directory as the jpegs. I
don't shoot jpegs along with my raw (cr2) files. Rather I use exiftool
to extract the preview image and save as a "sidecar" jpeg for each raw
file.

I use exiftool to write all the metadata from the raw file over to the
extracted sidecar jpeg. In digikam, I only write metadata to the
sidecar jpeg. And after using digikam to tag, write captions, etc for
the sidecar jpegs, I use exiftool to write the tags and captions back
over to the raw files.

Exiftool syntax is a bit complicated sometimes. I'm writing up my
procedure. When I'm finished (hopefully today), if you like I'll post
it for you to consult.

I can't compare exiv2 to exiftool, having never used exiv2.
Undoubtedly either will serve your purposes.

Elle
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: NEF/RAW+JPG: how to maintain coherent metadata

Julien T
Thanks Robert, Elle,

In fact, I also have all nef+jpg in the same folder.

good script Robert.
two question
- is there a way to ensure there is no nef tagged by errors and no
erasing of user-metadata ?
- why exiv2 -iix*e* ? e is for photo exif metadata. you don't want to
keep the raw ones ?

Elle, if you can publish your process exiftool, I'm sure that I will
not the only one interested.

Thanks a lot

2011/1/20, Elle Stone <[hidden email]>:

> Hi Julien,
>
> I'm doing something similar to what Robert is doing. Except I've
> decided to keep the raw files in the same directory as the jpegs. I
> don't shoot jpegs along with my raw (cr2) files. Rather I use exiftool
> to extract the preview image and save as a "sidecar" jpeg for each raw
> file.
>
> I use exiftool to write all the metadata from the raw file over to the
> extracted sidecar jpeg. In digikam, I only write metadata to the
> sidecar jpeg. And after using digikam to tag, write captions, etc for
> the sidecar jpegs, I use exiftool to write the tags and captions back
> over to the raw files.
>
> Exiftool syntax is a bit complicated sometimes. I'm writing up my
> procedure. When I'm finished (hopefully today), if you like I'll post
> it for you to consult.
>
> I can't compare exiv2 to exiftool, having never used exiv2.
> Undoubtedly either will serve your purposes.
>
> Elle
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: NEF/RAW+JPG: how to maintain coherent metadata

Robert Zeller
Julien,

please find my comments in your text:

On 01/21/2011 02:51 PM, Julien T wrote:
> Thanks Robert, Elle,
>
> In fact, I also have all nef+jpg in the same folder.
>
> good script Robert.
> two question
> - is there a way to ensure there is no nef tagged by errors and no
> erasing of user-metadata ?
>  
The script works for all *.nef that have a common basename with a *.exv
; e.g. if there is one dscxxx.exv and a dscxxx.nef then the metadata
that were selected by the parameters that follow the -i option will be
replaced in the raw file with those in the .exv file. If you don't want
to replace the data of a particular dscyyy.nef then you have to remove
the related dscyyy.exv before executing the script.
> - why exiv2 -iix*e* ? e is for photo exif metadata. you don't want to
> keep the raw ones ?
>  
It depends upon what you want to replace; if you want to leave the
original exif section untouched, then of course leave the "e" parameter
out. If you want to replace everything you can use the "a" parameter :
exiv2 -ia *.nef will replace all sections with the respective contents
in the *.exv files. I am not quite sure about the comment/caption. Until
recently it was not possible to write a comment to nefs. But I had the
impression that with the newest exiv library this is also possible now
with Nikon raw files.

> Elle, if you can publish your process exiftool, I'm sure that I will
> not the only one interested.
>
> Thanks a lot
>
> 2011/1/20, Elle Stone <[hidden email]>:
>  
>> Hi Julien,
>>
>> I'm doing something similar to what Robert is doing. Except I've
>> decided to keep the raw files in the same directory as the jpegs. I
>> don't shoot jpegs along with my raw (cr2) files. Rather I use exiftool
>> to extract the preview image and save as a "sidecar" jpeg for each raw
>> file.
>>
>> I use exiftool to write all the metadata from the raw file over to the
>> extracted sidecar jpeg. In digikam, I only write metadata to the
>> sidecar jpeg. And after using digikam to tag, write captions, etc for
>> the sidecar jpegs, I use exiftool to write the tags and captions back
>> over to the raw files.
>>
>> Exiftool syntax is a bit complicated sometimes. I'm writing up my
>> procedure. When I'm finished (hopefully today), if you like I'll post
>> it for you to consult.
>>
>> I can't compare exiv2 to exiftool, having never used exiv2.
>> Undoubtedly either will serve your purposes.
>>
>> Elle
>> _______________________________________________
>> Digikam-users mailing list
>> [hidden email]
>> https://mail.kde.org/mailman/listinfo/digikam-users
>>
>>    
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
>
>  

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: NEF/RAW+JPG: how to maintain coherent metadata

Elle Stone
In reply to this post by Julien T
On 1/21/11, Julien T <[hidden email]> wrote:
>
> Elle, if you can publish your process exiftool, I'm sure that I will
> not the only one interested.

Hi Julien,

It took a bit longer than I hoped, but here's a link to my write-up on
working with digikam and exiftool together:

http://ninedegreesbelow.com/2011/imaging/exiftool_digikam/exiftool_digikam.html

Elle Stone
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: NEF/RAW+JPG: how to maintain coherent metadata

Julien T
Thanks a lot, Elle.
really, a useful compilation of commands.

I also find digikam and exiv2 to be slower than exiftool when handling
exif change.

I still will ask advice about copying tags from jpg to raw, as I
planned to used different folders

exiftool -tagsfromfile %d%f.JPG -TagsList -r -overwrite_original -ext
NEF -o $raw $Images
Images is current directory, raw, the one with NEF file. both file
have the same name.

is it right ?

Thanks a lot
Cheers

Julien
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: NEF/RAW+JPG: how to maintain coherent metadata

Dan McDaniel
In reply to this post by Elle Stone
On Mon 24.Jan.11 13:43, Elle Stone wrote:

>On 1/21/11, Julien T <[hidden email]> wrote:
>>
>> Elle, if you can publish your process exiftool, I'm sure that I will
>> not the only one interested.
>
>Hi Julien,
>
>It took a bit longer than I hoped, but here's a link to my write-up on
>working with digikam and exiftool together:
>
>http://ninedegreesbelow.com/2011/imaging/exiftool_digikam/exiftool_digikam.html
>
>Elle Stone

Thanks for that link. Very handy info on using exiftool.

Dan McDaniel
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: NEF/RAW+JPG: how to maintain coherent metadata

Elle Stone
In reply to this post by Julien T
Hi Julien,

Alas you ask a question I can't answer, that I've been meaning to post
to the exiftool forum (http://u88.n24.queensu.ca/exiftool/forum/ -
they are very helpful), how to read metadata from a file in one folder
and write to a file in another folder.

In your post, is "$raw" shorthand way of indicating the path to your
raw folder, etc? Anyway, I just posted the question to the exiftool
forum.

Elle
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users