HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Hardware Newsgroups > Digital Photo

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-09-2007, 05:11 PM
bugbear
 
Posts: n/a
Default raw processing on Linux - retain EXIF?

Has anyone written a workflow script that uses
ExifTool (http://www.sno.phy.queensu.ca/~phil/exiftool/)
to transfer the appropriate EXIF tags from the RAW
file to the output JPEG file when using
DCRAW (http://cybercom.net/~dcoffin/dcraw/) ?

In general, the "-TagsFromFile" option
is a good "first approximation, but some
tags would need altering or creating
(e.g. White Balance, Compression, colour space,
and any colour temperature assumptions
made during the use of DCraw)

The aim, of course, if a JPEG with
full and accurate EXIF.

BugBear
Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
  #2  
Old 07-10-2007, 01:11 AM
Floyd L. Davidson
 
Posts: n/a
Default Re: raw processing on Linux - retain EXIF?

bugbear <bugbear@trim_papermule.co.uk_trim> wrote:
>Has anyone written a workflow script that uses
>ExifTool (http://www.sno.phy.queensu.ca/~phil/exiftool/)
>to transfer the appropriate EXIF tags from the RAW
>file to the output JPEG file when using
>DCRAW (http://cybercom.net/~dcoffin/dcraw/) ?
>
>In general, the "-TagsFromFile" option
>is a good "first approximation, but some
>tags would need altering or creating
>(e.g. White Balance, Compression, colour space,
>and any colour temperature assumptions
>made during the use of DCraw)
>
>The aim, of course, if a JPEG with
>full and accurate EXIF.


One script that I use primarily to rotate images for
correct orientation according to the EXIF tag, or
lacking a tag by checking horizontal vs. vertical size
also makes an attempt at that "first approximation".

It rotates the image (using /convert/), and then tries
to verify EXIF data and will copy it from the original
JPEG file or from an NEF file if the JPEG is lacking.
Other than changing the flagged orientation to match, it
makes no attempt at updating tags though.

I use /ufraw/ rather than /dcraw/, but the script is
generic in that sense.

Is that of any use to you?

I'm not sure how significant it is with other cameras,
but with Nikon there is a rather large difference
between the EXIF data in a JPEG output file compared to
an NEF output file.

--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@apaflo.com
Reply With Quote
  #3  
Old 07-10-2007, 04:38 AM
l v
 
Posts: n/a
Default Re: raw processing on Linux - retain EXIF?

bugbear wrote:
> Has anyone written a workflow script that uses
> ExifTool (http://www.sno.phy.queensu.ca/~phil/exiftool/)
> to transfer the appropriate EXIF tags from the RAW
> file to the output JPEG file when using
> DCRAW (http://cybercom.net/~dcoffin/dcraw/) ?
>
> In general, the "-TagsFromFile" option
> is a good "first approximation, but some
> tags would need altering or creating
> (e.g. White Balance, Compression, colour space,
> and any colour temperature assumptions
> made during the use of DCraw)
>
> The aim, of course, if a JPEG with
> full and accurate EXIF.
>
> BugBear


I wrote my own Perl scripts many years ago. My Canon 300D does not
record the EXIF tags in the RAW file, rather in the THM file. I use
dcraw and Image Magic (convert) to create a small (1024 x 1024) jpeg.
exifcopy (http://www.hugsan.com/EXIFutils/) to copy all EXIF and IPTC
data and Image::IPTCInfo to set some IPTC attributes followed by jhead
(http://www.sentex.net/~mwandel/jhead) is used to automatically rotate
the image based on the EXIF orientation tag. This and more occurs
within the same script which downloads from the card to the hard drive
which includes a backup copy of the raw file to an external server.

However, since I do not use my converted jpegs for anything other than
keyword tagging and previewing, I do not alter the tags for WB or color
as I use dcraw with the following options: -m -t 0 -w -c

--

Len
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot retain Recycle Bin Settings GEVan Windows XP 5 06-10-2007 08:34 PM
Unable to retain outlook account passwords? V.D.R Windows Vista 2 06-04-2007 10:24 PM
Is There A Way To Retain Unused-Icon Customizations? Mark M Morse Windows XP 6 05-28-2007 11:56 PM
extracting EXIF Orientation cartoper@gmail.com Digital Photo 3 04-02-2007 04:35 PM
Stuck with EXIF bret Digital Photo 6 04-02-2007 11:17 AM


All times are GMT. The time now is 04:19 AM.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger