PEF to PNG Converter for Pentax RAW Photos
Turn a Pentax PEF into a PNG that editors, browsers and most image upload forms accept. The PNG is 8-bit with no EXIF, so treat it as a working copy, not a lossless replacement for the RAW.
Download Started!
How would you rate your experience with MiConvert?
PEF files, and what a PNG made from one really contains
PEF, short for Pentax Electronic File, is the RAW format Pentax cameras record, and many Pentax bodies can save DNG instead. It holds undeveloped sensor data that needs RAW software such as Pentax Digital Camera Utility, Lightroom or darktable before it looks like a photo. Websites, design tools and image hosts reject it outright.
Our servers start by looking at the JPEG preview inside the PEF. When its long edge reaches 90 percent of the full decode, the PNG is built from that preview, so it inherits the camera's color rendering along with the preview's JPEG compression artifacts. Otherwise the raw data is demosaiced at full resolution by LibRaw with the camera's white balance, AHD interpolation and sRGB color, then written as PNG at compression level 6.
PNG compression throws nothing away, but the output is not a lossless copy of the RAW. It is 8-bit RGB, so the extra bit depth that gives a PEF its editing headroom is cut to 256 levels per channel. There is no transparency, because a photo has no alpha channel to keep. EXIF and the color profile are dropped, and the decode route adds no noise reduction, lens correction or highlight recovery. Orientation, however, is always corrected.
A PNG makes sense when a site, print service or design app specifically asks for one, or when you will retouch the image and want to avoid piling JPEG compression onto each save. Expect large files: a PNG of a full-resolution Pentax frame is far bigger than the same photo as a JPG.
How to convert Pentax PEF to PNG
- Make sure the file is a Pentax camera RAW. Braille documents in Portable Embosser Format also end in .pef, but they hold text and cannot become images here.
- Keep each PEF under 80 MB. Pixel Shift Resolution files store several exposures in one file and can run past that cap, so test one before uploading a set.
- Upload up to 10 PEF files at a time. Without signing in, each may be up to 50 MB; a free account lifts this to the 80 MB RAW cap.
- Choose PNG and start. The server reads each file, picks the preview or the full decode, and has two minutes to finish it.
- Download each PNG within about four hours. If you need the shooting data, copy it back from the PEF with exiftool.
What the PEF to PNG converter does
- Near full-size output: a camera preview is used only when it is within 10 percent of the full decode's long edge; otherwise the whole frame is decoded. Only if every decoder fails is a smaller embedded preview, at least 1,000 pixels long, delivered.
- When the full decode is used: neutral rendering with camera white balance, AHD demosaic and sRGB, and no automatic exposure, noise or lens adjustments. When a near full-size camera preview is used, the PNG keeps the camera's own look.
- A chain of decoders, LibRaw 0.20, RawTherapee 5.9, a current LibRaw build and dcraw, with the current build used first for cameras the 2020 LibRaw lacks color data for.
- Vertical shots are rotated before the PNG is written.
- A regular JPEG that was renamed to .pef is detected and converted as a JPEG instead of failing.
- 8-bit RGB PNG at compression level 6, with pixel values stored exactly as decoded.
PEF to PNG questions
What does PEF stand for, and what is a PEF file?
In photography, PEF means Pentax Electronic File, the RAW format of Pentax cameras. The same extension is used by the Portable Embosser Format for braille, which this converter cannot read because it contains text, not an image.
Is the PNG lossless, and does it have a transparent background?
The PNG step adds no further loss, but the image is 8-bit, and when it comes from the camera's preview it already carries JPEG compression. It has no transparency: RAW photos have no alpha channel, so every pixel is opaque. Background removal is a separate editing job.
Can I get a 16-bit PNG?
Not today; our RAW output to PNG and JPEG XL is 8-bit only. For 16-bit files, develop the PEF in a RAW editor such as darktable, RawTherapee or Lightroom and export from there.
I searched for a PEF logo PNG. Is that this?
No. This page converts Pentax RAW photos into PNG images. If you need the logo of an organization abbreviated PEF, get it from that organization; nothing here creates or supplies logos.
My PEF failed with a message starting 'RAW conversion failed'. What now?
For PEF files our error text is currently technical rather than a plain explanation, but it means no decoder could read the file. Copy it from the card again in case the transfer was incomplete, and check it is under 80 MB. If it still fails, the camera may be unsupported or the file damaged; exporting from Pentax Digital Camera Utility, or converting to DNG, which carries its own color data, and uploading that are the practical alternatives.
Will the PNG keep EXIF, the date or GPS?
No metadata is written to the PNG, so camera, lens, exposure, date and location are all missing. You can copy them across afterwards with exiftool -TagsFromFile photo.PEF -all:all --Orientation photo.png. Skip Orientation as shown, because the PNG is already rotated upright, and note that some apps do not read metadata stored in PNG files.
Should I pick PNG or JPG for a Pentax RAW?
Pick JPG for sharing and smaller files; on the preview route it can be the camera's own JPEG, unchanged. Pick PNG when a tool demands it or you plan repeated edits. Neither keeps the RAW's full editing latitude.
Where are my PEF files processed and how long are they kept?
On our servers, reached over HTTPS. The PEF is removed once its conversion ends, whether it succeeded or failed, and the PNG is deleted automatically about four hours after it is ready. Anyone with the random download link can use it during that window. We log file names, sizes and results, file names may be sent to Google Analytics, signed-in users keep a conversion history entry until they delete their account, and there is no public gallery.