LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Pentax .PEF RAW to JPEG batch conversion utility needed (https://www.linuxquestions.org/questions/linux-software-2/pentax-pef-raw-to-jpeg-batch-conversion-utility-needed-534947/)

Tom Brown 03-06-2007 12:18 AM

Pentax .PEF RAW to JPEG batch conversion utility needed
 
I wish I could browse thumbnails of .PEF files in Linux but short of being able to do that, it would be almost as good to have a batch conversion process to convert the RAW files to something that I *can* browse as thumbnails. I'm a bit of a shutterbug and it takes a long time to use GIMP to convert hundreds of files to JPEG, just so I can see thumbnails in the file browser.

Any tips or perhaps a script of some kind?

I'm on AMD64 Debian Etch with KDE 3.5 but I'd gladly compile from source, install from RPM, or do whatever is required if a utility exists to do the conversion.


Oh yeah.... Hugin rocks! It's one of my favorite applications EVER. :) :)

David the H. 03-06-2007 06:25 PM

The 'convert' utility from imagemagick can convert formats for you, provided it can handle the input. And it would surprise me very much if it couldn't, if the GIMP can. It should be trivial to set up a simple script with it.

rastiazul 01-16-2008 10:38 PM

I dont see .pef in the imagemagick supported formats list.

Wim Sturkenboom 12-14-2009 10:08 AM

I found this thread using google while I was trying to achieve this as well. I'm fully aware that it is very old and I'm usually the one who states not to kick old threads but I like to post a solution that I found on the net.

Code:

ufraw-batch --wb=camera --exposure=0 --out-type=jpeg --compression=96 *.PEF
which will convert all pefs in a directory to jpegs with the same base filename; you can specify a different output directory using the --out-path option (useful when you shoot raw+jpeg).

The command above is slightly modified from http://jcornuz.wordpress.com/2007/10...verting-batch/ I have changed the --exposure option from auto to 0 as this will result in a jpeg that looks very similar to the original pef (it's slightly lighter, a tenth of a stop or so).

If Tom Brown is still around, he might want to mark this thread as solved.

A note: this worked for images from a K10D. It can theoretically work for newer cameras as well but might require a newer version of ufraw. It should also work for raw files from other brands like Canon and Nikon.

nobrowser 12-27-2010 07:36 PM

The modern geeqie image viewer supports .PEF (and probably all other formats that dcraw and ufraw do).


All times are GMT -5. The time now is 05:12 PM.