Convert PEF to JXL

Drag and drop files here or click to select.
Max file size 100mb.
Uploading progress:

PEF vs JXL Format Comparison

Aspect PEF (Source Format) JXL (Target Format)
Format Overview
PEF
Pentax Electronic Format

PEF is Pentax's proprietary RAW image format used in their DSLR and mirrorless cameras, including the K-1, K-3, and KP series. It stores 12-bit or 14-bit unprocessed sensor data in a TIFF-based container, preserving the full dynamic range and color fidelity from Pentax's APS-C and full-frame CMOS sensors. PEF supports both compressed and uncompressed RAW storage, giving photographers maximum post-processing flexibility with their weather-sealed Pentax bodies.

Lossless RAW
JXL
JPEG XL

JPEG XL is a next-generation image format standardized as ISO/IEC 18181 in 2022. Created as the true successor to JPEG, it achieves 60% better compression efficiency with both lossy and lossless modes. JXL supports HDR with up to 32-bit float per channel, alpha transparency, animation, and progressive decoding — all in a royalty-free open standard designed for universal adoption and long-term accessibility.

Lossless Modern
Technical Specifications
Color Depth: 12-bit or 14-bit per channel (RAW)
Compression: Lossless compressed or uncompressed
Transparency: Not supported
Animation: Not supported
Extensions: .pef
Color Depth: Up to 32-bit float per channel (HDR)
Compression: Lossy (VarDCT) and Lossless (Modular)
Transparency: Full alpha channel support
Animation: Native animation support
Extensions: .jxl
Image Features
  • Transparency: Not supported
  • Animation: Not supported
  • EXIF Metadata: Full camera, lens, GPS, shake reduction data
  • White Balance: As-shot with full post-processing range
  • Dynamic Range: Full sensor range (12-14 stops)
  • Pixel Shift: Multi-shot resolution data in newer models
  • Transparency: Full alpha channel with premultiplied alpha
  • Animation: Native frame sequences with variable delays
  • EXIF Metadata: Full Exif and XMP metadata support
  • HDR: PQ and HLG transfer functions, wide gamut
  • Progressive: Built-in progressive decoding by design
  • Color Management: ICC profile embedding, wide gamut
Processing & Tools

PEF processing with Pentax and third-party tools:

# Convert PEF with dcraw
dcraw -T -w -o 1 -4 photo.pef

# Using rawpy in Python
import rawpy
raw = rawpy.imread('photo.pef')
rgb = raw.postprocess(
    use_camera_wb=True,
    output_bps=16)

JXL encoding with cjxl reference encoder:

# Lossless encoding
cjxl input.png output.jxl -q 100

# High-quality lossy for portfolio
cjxl input.png output.jxl -q 92 -e 7

# Maximum quality with progressive
cjxl input.png output.jxl -q 95 \
  -e 9 --progressive
Advantages
  • 14-bit color depth on newer models (K-1, K-3 III)
  • Full sensor data for extensive post-processing
  • Weather-sealed cameras produce reliable outdoor data
  • Pixel Shift Resolution for ultra-detailed captures
  • In-body shake reduction metadata for stabilization
  • Astrotracer data for astrophotography
  • 60% smaller than JPEG at equivalent visual quality
  • Both lossy and lossless compression in one format
  • HDR support preserves Pentax sensor dynamic range
  • Progressive decoding for instant web previews
  • Full alpha transparency and animation support
  • Royalty-free and open ISO standard (18181)
  • Excellent for landscape photography output
Disadvantages
  • Proprietary format limited to Pentax ecosystem
  • Smaller market share means less third-party support
  • Large files from full-frame K-1 (36 MP, ~40 MB)
  • Cannot be displayed in web browsers
  • Pentax also supports DNG, splitting user base
  • Browser support still growing (Safari, Firefox partial)
  • Chrome removed support in v110, re-added experimentally
  • Limited native OS support on older systems
  • Encoding at highest effort can be slow
  • Social media platform support still limited
Common Uses
  • Landscape photography with weather-sealed Pentax bodies
  • Astrophotography with Astrotracer GPS unit
  • Outdoor and adventure photography
  • Pixel Shift Resolution architectural captures
  • Portrait photography with Pentax Limited lenses
  • Next-generation web image delivery
  • Lossless photographic archival
  • HDR landscape and astro output
  • Portfolio and gallery distribution
  • Efficient storage for photo collections
Best For
  • Maximum quality from Pentax DSLR and mirrorless cameras
  • Post-processing in Lightroom, Capture One, Pentax Digital Camera Utility
  • Astrotracer-assisted astrophotography workflows
  • Outdoor photography in challenging weather conditions
  • Delivering processed Pentax landscapes with optimal quality
  • Archiving astrophotography in lossless quality
  • Web portfolios with progressive loading
  • HDR output for landscape and nature photography
  • Future-proof storage of Pentax photo collections
Version History
Introduced: 2003 (Pentax *ist D)
Developer: Pentax / Ricoh Imaging
Status: Active (Ricoh continues Pentax brand)
Evolution: *ist D PEF (12-bit) → K-series (14-bit) → K-1 II (full-frame, pixel shift)
Introduced: 2022 (ISO/IEC 18181)
Developer: Joint Photographic Experts Group
Status: Active, adoption growing
Evolution: JPEG (1992) → JPEG 2000 (2000) → JPEG XR (2009) → JPEG XL (2022)
Software Support
RAW Processors: Lightroom, Capture One, Digital Camera Utility 5
Image Editors: Photoshop (via ACR), GIMP, Affinity Photo
OS Preview: macOS (native), Windows (codec), Linux (dcraw)
Libraries: rawpy, LibRaw, dcraw
Web Browsers: Not supported
Image Editors: GIMP 2.99+, Krita, darktable
Web Browsers: Safari 17+, Firefox (behind flag), Chrome (experimental)
OS Preview: macOS 14+, Windows (via plugin), Linux (various)
Libraries: libjxl, Pillow (via plugin), ImageMagick 7.1+
CLI Tools: cjxl/djxl (reference), ImageMagick

Why Convert PEF to JXL?

Converting PEF to JXL gives Pentax photographers the most advanced delivery and archival format for their processed images. Pentax cameras are renowned for landscape, astrophotography, and outdoor work, producing PEF files with rich detail and wide dynamic range. JXL is uniquely suited to preserving these qualities — its HDR mode can maintain the full tonal range from 14-bit PEF sensor data, while its compression efficiency means large landscape panoramas and high-resolution pixel shift captures become practical to store and share.

Pentax's Pixel Shift Resolution mode, available on cameras like the K-1 II and K-3 III, produces exceptionally detailed images by combining four sensor-shifted exposures. The resulting PEF files can be 80+ MB, and processed TIFF exports exceed 200 MB. Lossless JXL encoding reduces these to approximately 60-80 MB — still large but far more manageable for archival storage and network transfers — while preserving every detail of the pixel-shifted composite.

For astrophotography, a signature Pentax strength, JXL's HDR capabilities are particularly valuable. The extreme dynamic range in star fields, nebulae, and tracked long exposures benefits from JXL's ability to store wide-gamut, high-bit-depth data without clipping. Combined with Pentax's built-in Astrotracer GPS tracking, JXL provides an end-to-end workflow from capture to delivery that preserves the full depth of the night sky.

While Pentax has a smaller market share than Canon, Nikon, or Sony, this actually makes format future-proofing more important for PEF users. JXL's ISO standard backing provides security that the format will remain readable regardless of Pentax's market position. Converting your PEF archive to JXL alongside keeping the originals ensures your photographs remain accessible no matter what happens in the camera industry.

Key Benefits of Converting PEF to JXL:

  • HDR Preservation: Maintain full dynamic range from Pentax 14-bit sensors
  • Pixel Shift Support: Efficient storage for ultra-high-resolution composites
  • Astrophotography: Wide-gamut encoding for star fields and deep-sky images
  • Landscape Quality: Progressive loading for panoramic web portfolios
  • Lossless Archival: 30-50% smaller than TIFF with identical quality
  • Format Insurance: ISO standard protects against proprietary format risks
  • Open Standard: Royalty-free with growing ecosystem support

Practical Examples

Example 1: Landscape Photography Portfolio

Scenario: A landscape photographer uses a Pentax K-1 II for mountain and wilderness photography and wants to deliver processed images on their portfolio website.

Source: alpine_sunrise_0156.pef (42 MB, 7360x4912, 14-bit)
Conversion: PEF → JXL (lossy, quality 92)
Result: alpine_sunrise_0156.jxl (980 KB, 7360x4912)

Portfolio delivery:
1. Develop PEF in Lightroom with landscape preset
2. Export to JXL at quality 92 for web delivery
3. Serve with progressive decoding for instant display
✓ 980 KB for a 36 MP landscape image
✓ Full tonal range in sunrise highlights and shadow detail
✓ Progressive loading shows complete preview instantly
✓ Visually indistinguishable from lossless version

Example 2: Astrophotography Archive with Astrotracer Data

Scenario: An astrophotographer captures deep-sky objects using a Pentax K-3 III with Astrotracer and wants to archive the processed images with optimal compression.

Source: orion_nebula_stack.pef (28 MB, 6192x4128, 14-bit)
Conversion: PEF → JXL (lossless, 16-bit)
Result: orion_nebula_stack.jxl (11.2 MB, 6192x4128, lossless)

Astrophotography workflow:
1. Stack and process PEF astro captures
2. Encode to lossless JXL preserving 16-bit depth
3. Archive with observation metadata
✓ Faint nebula detail preserved in lossless mode
✓ 60% smaller than equivalent 16-bit TIFF
✓ 16-bit depth prevents banding in smooth gradients
✓ Metadata preserves tracking and exposure settings

Example 3: Pixel Shift Resolution Architecture Documentation

Scenario: An architectural photographer uses the K-1 II's Pixel Shift Resolution to capture ultra-detailed building exteriors, producing massive PEF files that need efficient storage.

Source: cathedral_facade_psr.pef (95 MB, 7360x4912, pixel shift)
Conversion: PEF → JXL (lossless)
Result: cathedral_facade_psr.jxl (32 MB, 7360x4912, lossless)

Architecture archive:
1. Process Pixel Shift PEF in Digital Camera Utility 5
2. Export to lossless JXL for archival and client delivery
3. Generate lossy JXL for web presentation
✓ 95 MB pixel shift capture → 32 MB lossless JXL
✓ Ultra-fine architectural detail preserved perfectly
✓ Network transfer 3x faster than TIFF equivalent
✓ Client-ready for large-format print production

Frequently Asked Questions (FAQ)

Q: Which Pentax cameras produce PEF files?

A: Most Pentax DSLRs and the K-mount mirrorless cameras produce PEF files. Notable models include the full-frame K-1 and K-1 II, APS-C models like the K-3 III, K-3 II, K-70, KP, and older models like the K-5 and K-7. The *ist D was the first Pentax digital SLR with PEF support. Pentax cameras also offer DNG as an alternative RAW format.

Q: Should I use PEF or DNG in my Pentax camera?

A: Both preserve full sensor data. PEF may include Pentax-specific metadata (like Shake Reduction data) that DNG omits. DNG is an open standard with broader software support. For conversion to JXL, either source format works equally well — the processed image quality is identical. If you shoot PEF and want broader long-term accessibility, converting to JXL achieves that goal.

Q: Does PEF to JXL conversion preserve the Pentax color science?

A: The RAW processing step (demosaicing, white balance, color correction) determines the color output. If you process PEF files with a Pentax color profile in Lightroom, Capture One, or Digital Camera Utility, the Pentax color character is baked into the processed image. The JXL encoding then preserves this color exactly — either losslessly or with imperceptible lossy compression at high quality settings.

Q: How does JXL handle Pixel Shift Resolution images?

A: JXL excels at compressing Pixel Shift Resolution images. Because pixel-shifted captures have reduced noise and enhanced detail compared to single-shot images, JXL's compression model can achieve especially good ratios. The smooth, noise-free areas compress very efficiently, while the enhanced detail is preserved with high fidelity. Typical compression ratios are 55-65% for lossless encoding.

Q: Can I convert PEF files from older Pentax cameras like the K-5?

A: Yes. Our converter supports PEF files from all Pentax camera generations, from the *ist D (2003) through the latest models. The rawpy library (backed by LibRaw) maintains broad compatibility with all PEF variants. Older 12-bit PEF files and newer 14-bit files are both handled correctly with appropriate processing.

Q: What quality setting is best for landscape photography JXL output?

A: For web portfolio display, quality 88-92 provides excellent results with the smooth gradients and fine textures typical of landscape photography. For print preparation, quality 95 or lossless (100) is recommended. Pentax landscape images with their rich detail and wide tonal range benefit from JXL's superior handling of gradients — even at quality 90, sky gradients appear smooth without banding.

Q: Is Pentax likely to continue using the PEF format?

A: Ricoh Imaging (which owns the Pentax brand) continues to support PEF in new cameras. However, they also offer DNG as an alternative. Regardless of Pentax's future format decisions, converting processed PEF images to JXL ensures your photo archive remains accessible in an ISO standard format that is independent of any camera manufacturer's decisions.

Q: How does PEF to JXL compare to PEF to JPEG for sharing photos?

A: JXL produces significantly better results than JPEG at the same file size. A Pentax landscape photo that would be 2 MB as JPEG quality 92 can be 800 KB as JXL with equivalent or better visual quality. JXL's gradient handling is particularly superior, avoiding the banding and blocking that JPEG introduces in skies and smooth surfaces. For sharing, JXL with a JPEG fallback is the optimal approach.