Why convert PEF to PNG?
PEF files are camera-raw files that cannot be used directly in browsers, design tools, or most image editors. Converting to .PNG produces a lossless, widely supported image that works everywhere without re-compression artifacts. It is particularly useful when you need a pixel-perfect developed image to continue editing in Photoshop or GIMP. For sharing or web use, JPG is usually the better choice because it produces far smaller files.
How to convert PEF to PNG
darktable OPEN-SOURCE
Import the .pef into the Lighttable, open it in Darkroom, then press Ctrl+E to export as PNG at 8- or 16-bit depth.
RawTherapee OPEN-SOURCE
Open your .pef folder in RawTherapee, set the output format to PNG in the Queue tab, and click Start processing.
XnView MP FREE
Use File > Save As for a single file, or Tools > Batch Convert to process a whole folder of .pef files to PNG at once.
Command line - ImageMagick CLI
Run magick input.pef output.png - ImageMagick reads PEF via its raw delegate and writes a standard PNG.
About these formats
A PEF file is the raw image format produced by Pentax (Ricoh Imaging) DSLRs - the unprocessed sensor data before any color or sharpness adjustments are applied. On Windows, install the free…
Open .PEF details →A PNG (Portable Network Graphics) is a lossless raster image format. Every modern OS, browser, and image app opens PNGs natively - just double-click. The most common questions are not about…
Open .PNG details →Quality & what to watch
- PNG from a developed raw is large - a 16-bit PNG from a 24 MP Pentax body can exceed 100 MB; use 8-bit if file size matters.
- Exporting to PNG discards the 12- or 14-bit raw flexibility; always keep the original
.pefas your master file. - EXIF metadata (camera model, exposure settings, and GPS on equipped bodies) transfers to the PNG - strip it before publishing if privacy is a concern.