Alternative to Fujifim X-Raw Studio for Linux users.
Convert Fujifilm RAF files to JPEG using your camera's built-in processor via USB. Apply complete Fujifilm recipes with full control over film simulations, exposure, tone curve, and more!
- All Film Simulations - Provia, Velvia, Acros, Classic Chrome, Eterna, and more
- Complete Tone Control - Sharpness, Highlights, Shadows, Color/Saturation
- Exposure Adjustment - -2.0 to +3.0 EV in 1/3 stops (honored range)
- Dynamic Range - DR100, DR200, DR400
- White Balance - Full control including temperature and RGB shift
grawji is a GTK4 frontend for rawji with live recipe previews rendered by the camera engine.
- Camera: Fujifilm X-series camera with USB RAW conversion support (X-T20, X-T30, X-T3, X-T4, X-H1, X-Pro3, etc.)
- Python: 3.7 or newer
- PyUSB: USB library for Python
- Operating System: Linux (tested), macOS (should work), Windows (untested)
- Turn on your Fujifilm camera
- Navigate to: MENU → SET UP → CONNECTION SETTING → USB MODE
- Select: USB RAW CONV./BACKUP RESTORE
- Connect camera to computer via USB
Note: the camera only converts RAF files that were shot by that same camera body. Feeding a RAF from a different body (or model) is rejected with PTP error
0x2002.
Basic Conversion, uses the camera's default settings from when the photo was taken:
rawji input.RAF output.jpgApply a complete Fujifilm Recipe (Reggie's Portra):
rawji photo.RAF converted.jpg \
--film-sim=classicchrome \
--highlights=-1 \
--shadows=-1 \
--color=+2 \
--sharpness=-2 \
--nr=-4 \
--grain=weak \
--color-chrome=strong \
--wb-shift-r=+2 \
--wb-shift-b=-4 \
--exposure=+0.7provia- Standard (balanced, neutral)velvia- Vivid (saturated colors, high contrast)astia- Soft (gentle colors)classic-chrome- Muted, vintage lookclassic-neg- Classic Negative (film-print look)nostalgic-neg- Nostalgic Negative (warm, amber look)reala-ace- Reala Ace (faithful color, hard tonality)pronegh/pronegstd- PRO Neg (for portraits)acros/acros-ye/acros-r/acros-g- B&W variationsmonochrome/sepia- Standard B&W and sepiaeterna/eterna-bleach- Cinema-like colors
A film simulation must exist on the camera doing the conversion. The engine renders unknown codes as Provia.
Apply one recipe to many RAFs by passing several inputs and a directory as output:
rawji *.RAF converted/ --film-sim=velvia --grain=weakasshot- Keep the RAF's own white balance (default when unset)auto- Automatic white balancedaylight- Daylightshade- Shadeincandescent- Incandescent / tungstenfluorescent1/fluorescent2/fluorescent3- Fluorescentunderwater- Underwatertemperature- Manual color temperature, set the value with--wb-tempcustom1/custom2/custom3- Custom presets measured on the camera
Any preset can be fine-tuned with --wb-shift-r and --wb-shift-b. The
manual temperature mode honors only the camera's Kelvin presets on
older bodies, but any value from 2500 to 10000 K on XProcessor5 bodies.
| Parameter | Range | Description |
|---|---|---|
--film-sim |
See above | Film simulation mode |
--exposure |
-2.0 to +3.0 | Exposure bias in EV (1/3 stops) |
--highlights |
-2 to +4 | Highlight tone adjustment |
--shadows |
-2 to +4 | Shadow tone (X-T30: -2 to +4) |
--sharpness |
-4 to +4 | Sharpness (-4=soft, +4=hard) |
--color |
-4 to +4 | Color saturation/intensity |
--nr |
-4 to +4 | Noise reduction |
--clarity |
-5 to +5 | Clarity (newer bodies only) |
--grain |
off/weak/strong | Film grain effect |
--grain-size |
small/large | Grain size |
--color-chrome |
off/weak/strong | Color chrome effect |
--color-chrome-blue |
off/weak/strong | Color chrome FX blue |
--smooth-skin |
off/weak/strong | Smooth skin effect |
--dynamic-range |
100/200/400 | Dynamic range setting |
--white-balance |
See above | White balance mode |
--wb-shift-r |
-9 to +9 | WB shift, red-cyan axis |
--wb-shift-b |
-9 to +9 | WB shift, blue-yellow axis |
--wb-temp |
2500 to 10000 K | Kelvin (needs temperature) |
--mono-wc |
±9 gen4 / ±18 XProc5 | Mono warm-cool (B&W sims) |
--mono-mg |
±18 XProc5 | Mono magenta-green (B&W sims) |
--thumbnail |
flag | Small fast preview (~40 KB) |
--file-type |
jpeg/tiff-8bit/tiff-16bit/heif | Output format |
rawji input.RAF output.jpg \
--film-sim=acros-ye \
--exposure=+0.33 \
--highlights=0 \
--shadows=+3 \
--sharpness=+1rawji input.RAF output.jpg \
--film-sim=velvia \
--highlights=+1 \
--shadows=+1 \
--color=+2 \
--sharpness=+2rawji input.RAF output.jpg \
--film-sim=classic-chrome \
--highlights=+1 \
--shadows=-1 \
--color=-2 \
--sharpness=-1rawji input.RAF output.jpg \
--film-sim=classic-chrome \
--grain=strong \
--color-chrome=weak \
--highlights=+2 \
--shadows=-1The entire process takes ~2-5 seconds per image.
- Fujifilm X-T30
- Fujifilm X100F
- Fujifilm X-T3
- Fujifilm X-E5
Based on reverse-engineering:
- petabyt/fudge - X RAW STUDIO clone
- libgphoto2 - PTP protocol
- d185 binary profile format - 628-byte standard format works across all cameras
- Tone values use ×10 encoding - discovered through analysis
- The original X-Raw studio MacOS executable
Special thanks to:
- petabyt - For fudge and extensive PTP research
- gphoto2 team - For PTP protocol implementation
- Fujifilm community - For film simulation recipes