Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-06-2007, 01:18 AM   #1
Tom Brown
LQ Newbie
Registered: Jan 2007
Posts: 12

Rep: Reputation: 0
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.
Old 03-06-2007, 07:25 PM   #2
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
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.
Old 01-16-2008, 11:38 PM   #3
Registered: Feb 2006
Location: Costa Rica
Distribution: PCLinuxOS, Mint, Eeebuntu, Raspbian
Posts: 71

Rep: Reputation: 15
I dont see .pef in the imagemagick supported formats list.
Old 12-14-2009, 11:08 AM   #4
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
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.

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 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.
Old 12-27-2010, 08:36 PM   #5
LQ Newbie
Registered: Mar 2009
Posts: 5

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


camera, jpeg, jpg, raw

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
dvd batch conversion layer1man Linux - Software 1 10-25-2005 09:06 AM
audacity, batch conversion mifan Linux - Software 1 08-19-2005 03:51 AM
Batch LAME MP3 conversion ??? khermans Linux - General 10 03-27-2005 07:10 PM
Batch image conversion mrsolo Linux - Software 1 09-06-2004 05:47 PM
Algorithm for bmp to jpeg conversion giriprasad1979 Programming 4 03-01-2004 04:33 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration