Pentax PEF MIME Type
image/x-pentax-pef identifies, how Pentax PEF raw photos work, which applications open them, and how Poly supports them. MIME type details for image/x-pentax-pef
In active use| MIME type | image/x-pentax-pef |
|---|---|
| Extensions | .pef |
| First standardized | 2003 |
| Created by | Pentax |
| Browser support | |
| Example applications | Pentax Digital Camera Utility, Adobe Photoshop, Adobe Lightroom |
| Poly support | Yes. Poly recognizes `.pef` photos, creates useful visual derivatives, and reads available camera metadata. |
| Indexed by Poly | Yes. PEF photos are searchable by filename, available metadata, color, and visual similarity. Text photographed in the image is not indexed. |
| Preview in Poly | Yes. PEF photos open in Poly's image viewer using a camera-rendered preview. Use a raw editor to develop the original sensor data. |
| Poly agent | Yes. The Poly agent can view and reason about the visible photo, but it does not inspect the raw sensor mosaic or every proprietary tag. |
What does image/x-pentax-pef mean?
image/x-pentax-pef identifies a Pentax Electronic File, the proprietary raw-photo format used by Pentax cameras. Its usual extension is .pef. A PEF preserves sensor measurements and capture metadata so a raw processor can choose the demosaicing, white balance, exposure, color rendering, noise reduction, and sharpening used for the finished picture. Ricoh describes PEF as Pentax's original raw format and offers it alongside DNG on current supported cameras.1
The media type is a conventional identifier, not an IANA registration. It is absent from IANA's current image registry, while libopenraw documents image/x-pentax-pef for files made by Ricoh and Pentax cameras.23 The x- prefix reflects that unregistered status.
How to identify a PEF file
PEF uses a TIFF-derived structure to organize raw image data, previews, and metadata.4 This means a PEF can begin like a little-endian or big-endian TIFF, commonly with one of these byte sequences:
49 49 2A 00 II*.
4D 4D 00 2A MM.*
Those bytes are not a PEF-specific magic number. TIFF, DNG, and several other camera-raw formats can have the same header. Reliable identification also checks the .pef extension, TIFF directories, camera make and model, and Pentax-specific metadata.
A PEF can contain one or more rendered JPEG images in addition to the raw sensor payload. Pentax's own software has offered full-size JPEG extraction from PEF files.5 A file browser can use such an image for a quick preview, while a raw processor interprets the sensor data to make a new rendering. The two may differ in crop, brightness, white balance, color, noise reduction, and sharpening.
Renaming a TIFF, JPEG, or DNG file to .pef does not convert it. The bytes and camera-specific structure must match the format.
When did Pentax introduce PEF?
PEF dates to Pentax's first digital SLR, the *ist D, which launched in 2003. Pentax's software for that camera identifies its CCD raw files with the .pef extension, and the company's 2003 press archive records the *ist D launch.67
Pentax later added a choice between PEF and Adobe's DNG. The K-7 manual, for example, labels PEF as the Pentax original raw format and DNG as a publicly available format designed by Adobe.8 PEF remains in active use: the current Pentax KF records raw photos as either PEF or DNG, and Adobe's current compatibility list includes PEF from the KF, K-3 Mark III, K-1 series, KP, and many older bodies.19
How to open a .pef file
Use a raw editor that supports the camera model:
- Pentax Digital Camera Utility is Ricoh's first-party application for browsing and developing supported Pentax raw files. Ricoh continues to publish updates for current Pentax models.10
- Adobe Camera Raw, Photoshop, and Lightroom support PEF files from many Pentax cameras. Adobe's table states the minimum Camera Raw and Lightroom version for each body.9
- Apple Photos and Preview-based workflows can use the operating system's raw decoder for Pentax cameras listed by Apple.11
Chrome, Edge, Firefox, Opera, and Safari do not natively develop PEF files as web images. PEF is absent from MDN's list of browser image formats.12 For a website or message, export a JPEG, WebP, AVIF, or PNG derivative and keep the PEF as the editable original.
Support in Poly
Poly makes PEF captures useful alongside the rest of a photo library:
- Browse them with thumbnails and an in-app image preview.
- Find them by filename, available camera metadata, color, and visual similarity.
- Let the Poly agent inspect and reason about the visible photograph.
The preview is intended for browsing and visual understanding. Use a compatible raw editor when you need to develop the sensor data, recover highlights, change white balance, or apply camera-specific corrections. Preview detail and appearance depend on the usable rendered image stored in the file. Words photographed inside a PEF are not searchable as text.
Converting PEF to DNG, TIFF, or JPEG
Choose a destination based on what you need next:
| Destination | Best for | Important tradeoff |
|---|---|---|
| DNG | A more openly documented raw container | Conversion can change or omit proprietary metadata and camera-specific behavior |
| TIFF | High-quality interchange after raw development | Large, and the chosen rendering is baked into pixels |
| JPEG | Sharing, galleries, and broad compatibility | Lossy and usually 8-bit, with less editing latitude |
| PNG | Lossless exchange of a finished rendering | Large for photographs and no longer raw |
Pentax software can convert supported PEF files to DNG, and Pentax's raw-development workflow can create JPEG or TIFF images.58 These are different operations. PEF-to-DNG conversion keeps a raw-oriented workflow but changes the container. Exporting JPEG, TIFF, or PNG develops the sensor samples into pixels using selected processing settings.
Keep the untouched PEF after either kind of conversion. A rendered derivative cannot recover the original sensor measurements, and a converted raw file may not preserve every Pentax-specific field.
Metadata and privacy
A PEF can carry detailed Exif and manufacturer metadata. Exif fields can include capture time, location, camera and lens names, owner or photographer information, serial identifiers, and processing software.13
Review metadata before sharing an original raw file. Export settings can preserve more information than expected, so inspect the derivative as well as the source. A fresh JPEG intended for publication is usually easier to audit than a PEF containing raw data, previews, and proprietary tags.
Is PEF the same as DNG or JPEG?
No. All three can come from the same capture, but they serve different purposes.
| Format | Main purpose | Browser display | Editing latitude |
|---|---|---|---|
| PEF | Preserve a Pentax-native raw capture | No native support | High in compatible raw software |
| DNG | Store raw data in a publicly documented container | No native support | High in compatible raw software |
| JPEG | Store a finished, compact image | Native in current browsers | Lower after lossy encoding |
A camera may be able to record PEF and JPEG together, or let you choose PEF or DNG for the raw file.1 An embedded JPEG inside a PEF is only one component of the raw file. Extracting it gives you the camera's rendering, not a full development of the sensor data.
Footnotes
- Ricoh Imaging. PENTAX KF FAQ. Describes PEF and DNG as editable raw recording options. ↩ ↩2 ↩3
- Internet Assigned Numbers Authority. Media Types Registry. The image registry contains no
image/x-pentax-pefentry. ↩ - libopenraw. Pentax PEF. Documents the conventional media type and its use by Ricoh and Pentax cameras. ↩
- The National Archives (UK). PRONOM: Pentax PEF Image File, fmt/1781. Describes PEF as a TIFF-based Pentax raw format whose details vary by camera model. ↩
- Ricoh Imaging. PENTAX PHOTO Browser 3 and PENTAX PHOTO Laboratory 3 Update. Documents full-size JPEG extraction from PEF and conversion from PEF to DNG. ↩ ↩2
- Ricoh Imaging. PENTAX *ist D RAW Data Photoshop Plug-in. Identifies
.pefas the extension for raw files made by the *ist D. ↩ - Ricoh Imaging. 2003 Press Releases. Records the 2003 launch announcements for the Pentax *ist D. ↩
- Ricoh Imaging. PENTAX K-7 Operating Manual. Explains the choice between PEF and DNG and raw development to JPEG or TIFF. ↩ ↩2
- Adobe. Cameras Supported by Camera Raw. Lists Pentax PEF camera models and minimum application versions. ↩ ↩2
- Ricoh Imaging. Software Downloads. Lists current Digital Camera Utility updates and supported Pentax cameras. ↩
- Apple Support. Digital Camera RAW Formats Supported by Apple Operating Systems. Lists Pentax cameras supported by Apple's current raw processing. ↩
- MDN Web Docs. Image File Type and Format Guide. ↩
- Camera & Imaging Products Association. About Exif 3.0. Summarizes location, camera, lens, owner, photographer, serial-number, and processing-software metadata. ↩