Converting from raw photos to JPG and keeping EXIF headers?
Hello all! I have a Pentax *istDS digital SLR camera that records in .pef format (Pentax raw). It has what corresponds to EXIF fileheaders included, but i cant seem to get them transfered when i convert to JPEG. I use dcraw to convert from .pef to .jpg and that works perfectly. The only caveat is the EXIF headers that is lost. Has anyone a solution for this? Or a pointer on how they did it on another camera or even a URL describing things? I have tried looking for it on Google, butfailed so far.. -- -- /Rikard ----------------------------------------------------------------------------- email : rikard.j@rikjoh.com web : http://www.rikjoh.com mob : +46 (0)736 19 76 25 ------------------------ Public PGP fingerprint ---------------------------- < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >
On 11/28/05, Rikard Johnels <rikard.j@rikjoh.com> wrote:
Hello all!
I have a Pentax *istDS digital SLR camera that records in .pef format (Pentax raw). It has what corresponds to EXIF fileheaders included, but i cant seem to get them transfered when i convert to JPEG. I use dcraw to convert from .pef to .jpg and that works perfectly. The only caveat is the EXIF headers that is lost.
Iam not a aware of a free tool being capable to do it, but neftags2jpg is able to transfer EXIF headers back into JPEG files. Get it from <http://pages.quicksilver.net.nz/pepe/d70/neftags2jpg.tar.bz2>, it requires exiv2 <http://home.arcor.de/ahuggel/exiv2/> version 0.7+. Give it a try. \Steve -- Steve Graegert <graegerts@gmail.com> | Blog <http://tikomi.org> Software Consultant {C/C++ && Java && .NET} Office: +49 9131 7123988 Mobile: +49 1520 9289212
* Rikard Johnels <rikard.j@rikjoh.com> [11-28-05 08:20]:
I have a Pentax *istDS digital SLR camera that records in .pef format (Pentax raw). It has what corresponds to EXIF fileheaders included, but i cant seem to get them transfered when i convert to JPEG. I use dcraw to convert from .pef to .jpg and that works perfectly. The only caveat is the EXIF headers that is lost.
Has anyone a solution for this? Or a pointer on how they did it on another camera or even a URL describing things?
I use exiftool, http://owl.phy.queensu.ca/~phil/exiftool/ , for my .nef files, but it supports .pef files also. Version 5.82 was issued two days ago. note: BibblePro will include the exif information on conversion but is commercial and a little pricey, but has a linux package. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
On Monday 28 November 2005 16:22, Patrick Shanahan wrote:
* Rikard Johnels <rikard.j@rikjoh.com> [11-28-05 08:20]:
I have a Pentax *istDS digital SLR camera that records in .pef format (Pentax raw). It has what corresponds to EXIF fileheaders included, but i cant seem to get them transfered when i convert to JPEG. I use dcraw to convert from .pef to .jpg and that works perfectly. The only caveat is the EXIF headers that is lost.
Has anyone a solution for this? Or a pointer on how they did it on another camera or even a URL describing things?
I use exiftool, http://owl.phy.queensu.ca/~phil/exiftool/ , for my .nef files, but it supports .pef files also. Version 5.82 was issued two days ago.
note: BibblePro will include the exif information on conversion but is commercial and a little pricey, but has a linux package. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
I dont understand the doc's for it. I can get it to print the header in the .pef file, but how do i get it to "insert" the grabbed headers into a .jpg? What i do is: dcraw -w -q3 -c image.pef |ppmtojpeg > image.jpg #Yields a .jpg file exiftool image.pef #yeilds a listing of the headres on stdout How do i get the header from the .pef into the .jpg file??? Is there a smarter way to do it? -- -- /Rikard ----------------------------------------------------------------------------- email : rikard.j@rikjoh.com web : http://www.rikjoh.com mob : +46 (0)736 19 76 25 ------------------------ Public PGP fingerprint ---------------------------- < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >
* Rikard Johnels <rikard.j@rikjoh.com> [11-28-05 11:59]:
I dont understand the doc's for it. I can get it to print the header in the .pef file, but how do i get it to "insert" the grabbed headers into a .jpg?
What i do is: dcraw -w -q3 -c image.pef |ppmtojpeg > image.jpg #Yields a .jpg file exiftool image.pef #yeilds a listing of the headres on stdout
How do i get the header from the .pef into the .jpg file??? Is there a smarter way to do it?
From the command line, issue: exiftool with *no* parameters, will provide the documentation.
-------------- SYNOPSIS exiftool [OPTIONS] [-TAG[[+-<]=[VALUE]] or --TAG...] FILE ... DESCRIPTION A command-line interface to Image::ExifTool used for read ing and writing meta information in image files. "FILE" may be an image file name, a directory name, or "-" for the standard input. Information is read from the speci fied file and output in readable form to the console (or written to an output text file with the "-w" option). To write information to an image file, specify new values using either the "-TAG=[VALUE]" syntax or the "-TagsFrom File" option. This causes exiftool to rewrite "FILE" with the specified information, preserving the original file by renaming it to "FILE_original". (Note: Be sure to verify that the new file is OK before erasing the original.) --------------- exiftool -TagsFromFile /<path>/file1.pef /<path>/file1.jpg ps: you might want to take a look at UFRaw to do your file conversions. http://ufraw.sourceforge.net/ The latest version has the ability to transfer some of the exif information during conversion from raw format to jpg. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
participants (3)
-
Patrick Shanahan
-
Rikard Johnels
-
Steve Graegert