Fempeg is a Rust tool that converts Nikon NEF RAW files into processed image formats like PNG or JPEG.
On GitHub releases, there are two versions:
-
fempeg.exe→ Without ExifTool- Includes only some basic EXIF info (printed to bash).
- Smaller file size (~3MB).
- No additional dependencies required.
-
fempeg-exif.exe→ With ExifTool- Full EXIF support, including the
-iinteractive TUI for searching EXIF info. - Larger file size (~36MB).
- No additional dependencies required.
- Full EXIF support, including the
Download the version that fits your needs.
git clone https://github.com/SirPigari/fempeg.git
cd fempeg
- Without ExifTool:
cargo build --release
- With ExifTool:
cargo build --release --features include_exiftool
Make sure you have libraw and exiftool installed if using the include_exiftool feature.
The output binary will be in target/release/fempeg.
Fempeg supports exporting to a wide range of image formats for maximum compatibility:
- PNG
- JPEG (or JPG)
- BMP
- GIF
- WebP
- TIFF (or TIF)
- TGA
- ICO
- HDR
- OpenEXR (or EXR)
- PNM (PBM, PGM, PPM, PAM)
- Farbfeld (or FF)
- AVIF
- QOI
fempeg ./photo.NEFfempeg photo.NEF -o ./output/photo_out.pngfempeg ./nefs -o ./out --format pngfempeg photo.NEF -o ./out -f png+jpeg-r, --ratio <R>→ Resize output image by ratio (0 < R <= 1), default: 0.15-t, --threads <N>→ Number of threads to use, default: number of CPU cores-p, --preview→ Use the embedded preview image instead of full RAW processing-b, --brightness [VAL]→ Brightness control. Acceptsauto|none|<float>|<int>|<percent>%. No flag = leave as-is.-bwithout value => auto-R, --rotation <VAL>→autoto use EXIF orientation or explicit degrees (90,180,270)-e, --enhance→ Apply a light enhancement (unsharpen + small contrast)-d, --debug→ Enable debug output--sort <METHOD>→ Sort input files before processing (name, numeric, size, mtime)-i, --info→ Show EXIF info about the file, exit afterwards (interactive TUI available if using ExifTool)-h, --help→ Show help message
- libraw → RAW conversion library
- ExifTool → Metadata extraction (included in Windows
fempeg-exif.exeor via--features include_exiftoolon Unix) - Windows users do not need to install any dependencies.
- All other dependencies are managed by
cargo
Note: Fempeg has been tested only with Nikon NEF files.
While libraw supports most Nikon cameras, some newer or software-generated NEFs may not decode correctly.
