exif transfer script - General Discussion and Assistance - CHDK Forum supplierdeeply

exif transfer script

  • 11 Replies
  • 4641 Views
exif transfer script
« on: 16 / October / 2009, 11:56:17 »
Advertisements
morning folks. first off im not sure if this is a chdk wide issue or only because of my beta firmware, nevertheless..

currently on linux when i have RAW files converted into jpegs they lack exif data. so i have been using exiftool via the command line to copy the exif tags from the exifed-jpegs folder to the rawconverted-jpegs folder. manually setting each and every name. no big deal for one or two files, but on days were i have hundreds of files that needed exif transfer it can be quite a headache.

so my question is has anyone created a shell script that can search the file names then execute exiftool to transfer there metadata to the matching name raw-jpeg?
canon powershot sd900 ti
canon digital ixus 500
canon powershot s400
flickr

*

Offline RaduP

  • *****
  • 926
Re: exif transfer script
« Reply #1 on: 16 / October / 2009, 13:38:44 »
Just save them as dng instead of RAW and the EXIF data will be preserved.

Re: exif transfer script
« Reply #2 on: 16 / October / 2009, 14:17:01 »
i dont believe RAWstudio will accept .dng
ufraw is to cumbersome for me and i believe RAWstuido to be a better alternative.
canon powershot sd900 ti
canon digital ixus 500
canon powershot s400
flickr

*

Offline RaduP

  • *****
  • 926
Re: exif transfer script
« Reply #3 on: 16 / October / 2009, 15:24:28 »
Why not use Raw Therapee?


Re: exif transfer script
« Reply #4 on: 16 / October / 2009, 15:53:51 »
does that support batch processing and copy pasting of settings?
canon powershot sd900 ti
canon digital ixus 500
canon powershot s400
flickr

*

Offline reyalp

  • ******
  • 14114
Re: exif transfer script
« Reply #5 on: 16 / October / 2009, 18:33:00 »
i dont believe RAWstudio will accept .dng
ufraw is to cumbersome for me and i believe RAWstuido to be a better alternative.

FWIW: http://rawstudio.org/news.php
Quote
2007-08-14

It took us more than 6 month, but eventually we made it. A new release of Rawstudio is ready!
This release adds the much awaited curve-tool and supprt for DNG-files and more cameras.
That said, your shell script should be pretty easy... you presumably have all the commands you need from doing it manually, so it's just a matter of throwing them in a script with the appropriate loop over the files you want to deal with. This is basic shell scripting stuff, not really CHDK. It's not clear what part you are having trouble with, but if you are more specific, maybe someone can help.

edit:
one significant disadvantage of DNG is that shooting is slower.
Don't forget what the H stands for.

Re: exif transfer script
« Reply #6 on: 16 / October / 2009, 18:59:32 »
That said, your shell script should be pretty easy... you presumably have all the commands you need from doing it manually, so it's just a matter of throwing them in a script with the appropriate loop over the files you want to deal with. This is basic shell scripting stuff, not really CHDK. It's not clear what part you are having trouble with, but if you are more specific, maybe someone can help.

edit:
one significant disadvantage of DNG is that shooting is slower.



re: dng, did not know they had support, looks like i should upgrade anyhow. not digging the slowness you mention, shooting in RAW is already slow enough.

as far as the shell script. i have not even tried it yet. nor have i ever scripted a shell. i put this thread up in hopes that someone may have already created it.

file names are constant, folders are constant i just need to find the matching name and run the exiftool command. i just simply have no idea how that is achieved.
canon powershot sd900 ti
canon digital ixus 500
canon powershot s400
flickr

*

Offline wontolla

  • ****
  • 413
  • S3 & G9 & A720
Re: exif transfer script
« Reply #7 on: 17 / October / 2009, 12:01:18 »
I use the following exiftool commands:

Code: [Select]
exiftool -overwrite_original -tagsfromfile %%f.JPG -XMP:all  -r -ext DNG dir .
exiftool -overwrite_original -tagsfromfile %%f.JPG -IPTC:all  -r -ext DNG dir .

This will copy all XMP and IPTC metadata fields from the JPG file to the corresponding DNG file. It is done to every file on the current directory.
« Last Edit: 17 / October / 2009, 12:06:51 by wontolla »


Re: exif transfer script
« Reply #8 on: 17 / October / 2009, 12:44:35 »
I use the following exiftool commands:

Code: [Select]
exiftool -overwrite_original -tagsfromfile %%f.JPG -XMP:all  -r -ext DNG dir .
exiftool -overwrite_original -tagsfromfile %%f.JPG -IPTC:all  -r -ext DNG dir .

This will copy all XMP and IPTC metadata fields from the JPG file to the corresponding DNG file. It is done to every file on the current directory.

nice, do you know how to read the exif from one jpeg in a different folder and apply it to the jpeg in the current one?
canon powershot sd900 ti
canon digital ixus 500
canon powershot s400
flickr

*

Offline wontolla

  • ****
  • 413
  • S3 & G9 & A720
Re: exif transfer script
« Reply #9 on: 19 / October / 2009, 06:09:18 »

I suppose you just replace "%%f.JPG" with "%%/FolderName/f.JPG"

or use "dir" to specify the name of the folder you want to work on.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal