DPReview.com is closing April 10th - Find out more

Answered: How to convert compressed Fuji RAW files to uncompressed?

Started Mar 7, 2021 | Discussions
Nikee69 Junior Member • Posts: 36
Answered: How to convert compressed Fuji RAW files to uncompressed?

Hi all

I have a set of 300+ photos shot as compressed RAW with my X-E3. Now the Photos app on Mac OS (Big Sur) does not like that format.

Answer: User Adobe DNG converter (free) that can convert batches (full directories, also recursively if wanted) of compressed Fuji RAW files to DNG files.

Just import the DNG files to Photos app like you would normally - et voilà!

Thanks!

Nicola

Erik Baumgartner Senior Member • Posts: 6,893
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?
5

Nikee69 wrote:

Hi all

I have a set of 300+ photos shot as compressed RAW with my X-E3. Now the Photos app on Mac OS (Big Sur) does not like that format.

Answer: User Adobe DNG converter (free) that can convert batches (full directories, also recursively if wanted) of compressed Fuji RAW files to DNG files.

Just import the DNG files to Photos app like you would normally - et voilà!

Thanks!

Nicola

Doing so will demosaic the RAFs irreversibly with Adobe's crummy X-Trans processing. If you're going to convert to DNG, you'll get far better results using Iridient X-Transformer ($36) instead.

 Erik Baumgartner's gear list:Erik Baumgartner's gear list
Sony RX100 Fujifilm X100V Fujifilm X-T2 Fujifilm X-T20 Fujifilm XF 35mm F1.4 R +5 more
eric333 Senior Member • Posts: 1,433
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?

but... is there a way to decompress a compressed.raf file into an uncompressed .raf file?

Not a .dng, just an unzipped form if itself.

I have to believe a compressed .raf uses some form of rar or zip algorithm.  And as it’s lossless there must be a way to unzip it.

Greybeard2017
Greybeard2017 Veteran Member • Posts: 3,112
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?

eric333 wrote:

but... is there a way to decompress a compressed.raf file into an uncompressed .raf file?

Not a .dng, just an unzipped form if itself.

I have to believe a compressed .raf uses some form of rar or zip algorithm. And as it’s lossless there must be a way to unzip it.

Presumably so - but its not the entire file that is compressed - just the CFA raw data within the file - that complicates things a bit

 Greybeard2017's gear list:Greybeard2017's gear list
Fujifilm X-T30 Fujifilm X-S10 Fujifilm X-H2S
eric333 Senior Member • Posts: 1,433
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?

Greybeard2017 wrote:

eric333 wrote:

but... is there a way to decompress a compressed.raf file into an uncompressed .raf file?

Not a .dng, just an unzipped form if itself.

I have to believe a compressed .raf uses some form of rar or zip algorithm. And as it’s lossless there must be a way to unzip it.

Presumably so - but its not the entire file that is compressed - just the CFA raw data within the file - that complicates things a bit

That makes sense.  The camera writes out the header portion of the file then engages the compression on the  cfa data since the compression method is (likely) tweaked to work only with the cfa data anyway.

And I’m thinking the compression can’t be too complicated because the camera has to do this all in real time.

Erik Baumgartner Senior Member • Posts: 6,893
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?

eric333 wrote:

but... is there a way to decompress a compressed.raf file into an uncompressed .raf file?

Not a .dng, just an unzipped form if itself.

I have to believe a compressed .raf uses some form of rar or zip algorithm. And as it’s lossless there must be a way to unzip it.

There must be a way, but I don't know what is. Sorry.

 Erik Baumgartner's gear list:Erik Baumgartner's gear list
Sony RX100 Fujifilm X100V Fujifilm X-T2 Fujifilm X-T20 Fujifilm XF 35mm F1.4 R +5 more
Tom Schum
Tom Schum Forum Pro • Posts: 13,282
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?

There has been a similar thread about this (or something very much like it), and severe problems one user had:

https://www.dpreview.com/forums/post/64910440

I use Iridient X-Transformer to convert my .RAFs to .DNGs, but I never shoot compressed raws, in order to avoid possible compatibility issues. So, I don't know if X-Transformer can deal with compressed raws.

Now I understand that Fuji is also offering a third compression option "compressed raws" in addition to the "lossless compressed" raws I believe are used in X-E3.

X-T4 manual page 106 and (above) X-E4 manual page 104

-- hide signature --

Tom Schum
Copper: Mankind's favorite electrical conductor

 Tom Schum's gear list:Tom Schum's gear list
Fujifilm X30 Sigma dp0 Quattro Panasonic ZS100 Fujifilm X-T3 Fujifilm X-E4 +14 more
Erik Baumgartner Senior Member • Posts: 6,893
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?

Tom Schum wrote:

There has been a similar thread about this (or something very much like it), and severe problems one user had:

https://www.dpreview.com/forums/post/64910440

I use Iridient X-Transformer to convert my .RAFs to .DNGs, but I never shoot compressed raws, in order to avoid possible compatibility issues. So, I don't know if X-Transformer can deal with compressed raws.

Now I understand that Fuji is also offering a third compression option "compressed raws" in addition to the "lossless compressed" raws I believe are most used.

I only use lossless compressed RAFs and X-Transformer has no problems with them.

 Erik Baumgartner's gear list:Erik Baumgartner's gear list
Sony RX100 Fujifilm X100V Fujifilm X-T2 Fujifilm X-T20 Fujifilm XF 35mm F1.4 R +5 more
Tom Schum
Tom Schum Forum Pro • Posts: 13,282
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?

Erik Baumgartner wrote:

Tom Schum wrote:

There has been a similar thread about this (or something very much like it), and severe problems one user had:

https://www.dpreview.com/forums/post/64910440

I use Iridient X-Transformer to convert my .RAFs to .DNGs, but I never shoot compressed raws, in order to avoid possible compatibility issues. So, I don't know if X-Transformer can deal with compressed raws.

Now I understand that Fuji is also offering a third compression option "compressed raws" in addition to the "lossless compressed" raws I believe are most used.

I only use lossless compressed RAFs and X-Transformer has no problems with them.

Great to know this!

Iridient X-Transformer is not perfect but in my opinion is a good alternative to Adobe.

-- hide signature --

Tom Schum
Copper: Mankind's favorite electrical conductor

 Tom Schum's gear list:Tom Schum's gear list
Fujifilm X30 Sigma dp0 Quattro Panasonic ZS100 Fujifilm X-T3 Fujifilm X-E4 +14 more
OP Nikee69 Junior Member • Posts: 36
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?

Erik Baumgartner wrote:

Doing so will demosaic the RAFs irreversibly with Adobe's crummy X-Trans processing. If you're going to convert to DNG, you'll get far better results using Iridient X-Transformer ($36) instead.

You're right. Adobe does not do a good job. Here's an example how it should look (directly from the Fuji X-E3 JPEG engine):

That's what Adobe DNG RAW converter and Iridient X-Transformer (Smooth RAW conversion, medium sharpening, Luminance noise reduction default, Color noise reduction default) do to the image:

Can you tell which is which?

PS: Both are gruesome.

OP Nikee69 Junior Member • Posts: 36
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?
1

I tried out Iridient Developer, which has some additional sliders to influence RAW development. The color artifacts are mostly gone when "Enable Noise reduction" is turned on and "Color (v3)" is up to about 20, "Color Aliasing, Fringing, Moire (v3)" to the maximum (8):

Now this obviously applies to the whole image, hence colors are lost. Here is a detail of a shirt in the same photo with the color correction set to "on":

Now compare this to the colors actually recorded (color correction set to "off"):

No wonder OOC JPGs look washed out, too:

I love Fuji, but this is just sad. But I guess it's the price I must pay for liking cameras without low pass filters.

Erik Baumgartner Senior Member • Posts: 6,893
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?

Nikee69 wrote:

Erik Baumgartner wrote:

Doing so will demosaic the RAFs irreversibly with Adobe's crummy X-Trans processing. If you're going to convert to DNG, you'll get far better results using Iridient X-Transformer ($36) instead.

You're right. Adobe does not do a good job. Here's an example how it should look (directly from the Fuji X-E3 JPEG engine):

That's what Adobe DNG RAW converter and Iridient X-Transformer (Smooth RAW conversion, medium sharpening, Luminance noise reduction default, Color noise reduction default) do to the image:

Can you tell which is which?

PS: Both are gruesome.

You’ve got some purple fringing there that the jpeg processing cleans up automatically that you will have do manually. You don’t want to use ANY of the built in Iridient NR or sharpening - set all those options to NONE, you will get better results with full control using LR NR and sharpening. “Smoother” is fine.

 Erik Baumgartner's gear list:Erik Baumgartner's gear list
Sony RX100 Fujifilm X100V Fujifilm X-T2 Fujifilm X-T20 Fujifilm XF 35mm F1.4 R +5 more
Tom Schum
Tom Schum Forum Pro • Posts: 13,282
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?
1

Nikee69 wrote:

Erik Baumgartner wrote:

Doing so will demosaic the RAFs irreversibly with Adobe's crummy X-Trans processing. If you're going to convert to DNG, you'll get far better results using Iridient X-Transformer ($36) instead.

You're right. Adobe does not do a good job. Here's an example how it should look (directly from the Fuji X-E3 JPEG engine):

That's what Adobe DNG RAW converter and Iridient X-Transformer (Smooth RAW conversion, medium sharpening, Luminance noise reduction default, Color noise reduction default) do to the image:

Can you tell which is which?

PS: Both are gruesome.

This is an excellent depiction of the glitches!

Offhand I would guess the Iridient version is on the right but maybe it's just wishful thinking on my part.

I generally do not use Iridient when there are lots of specular highlights in an image.  The JPG from the camera is as you have shown it: flawless in these situations.

-- hide signature --

Tom Schum
Copper: Mankind's favorite electrical conductor

 Tom Schum's gear list:Tom Schum's gear list
Fujifilm X30 Sigma dp0 Quattro Panasonic ZS100 Fujifilm X-T3 Fujifilm X-E4 +14 more
Erik Baumgartner Senior Member • Posts: 6,893
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?
1

Tom Schum wrote:

Nikee69 wrote:

Erik Baumgartner wrote:

Doing so will demosaic the RAFs irreversibly with Adobe's crummy X-Trans processing. If you're going to convert to DNG, you'll get far better results using Iridient X-Transformer ($36) instead.

You're right. Adobe does not do a good job. Here's an example how it should look (directly from the Fuji X-E3 JPEG engine):

That's what Adobe DNG RAW converter and Iridient X-Transformer (Smooth RAW conversion, medium sharpening, Luminance noise reduction default, Color noise reduction default) do to the image:

Can you tell which is which?

PS: Both are gruesome.

This is an excellent depiction of the glitches!

Offhand I would guess the Iridient version is on the right but maybe it's just wishful thinking on my part.

I generally do not use Iridient when there are lots of specular highlights in an image. The JPG from the camera is as you have shown it: flawless in these situations.

Those aberrations are easy to clean up in LR. The camera cleans everything up automatically, but it typically does so in a heavy handed way removing all the surrounding color. I use X-Transformer with almost every image and it’s just not an issue.

 Erik Baumgartner's gear list:Erik Baumgartner's gear list
Sony RX100 Fujifilm X100V Fujifilm X-T2 Fujifilm X-T20 Fujifilm XF 35mm F1.4 R +5 more
sluggy_warrior Veteran Member • Posts: 3,204
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?

eric333 wrote:

Greybeard2017 wrote:

eric333 wrote:

but... is there a way to decompress a compressed.raf file into an uncompressed .raf file?

Not a .dng, just an unzipped form if itself.

I have to believe a compressed .raf uses some form of rar or zip algorithm. And as it’s lossless there must be a way to unzip it.

Presumably so - but its not the entire file that is compressed - just the CFA raw data within the file - that complicates things a bit

That makes sense. The camera writes out the header portion of the file then engages the compression on the cfa data since the compression method is (likely) tweaked to work only with the cfa data anyway.

And I’m thinking the compression can’t be too complicated because the camera has to do this all in real time.

If you're comfortable with coding, all the details are available in the rawspeed library:

https://github.com/darktable-org/rawspeed/blob/f383f62eda0d22f53ea1b09c42348d63b5c915ac/src/librawspeed/decoders/RafDecoder.cpp

https://github.com/darktable-org/rawspeed/blob/f383f62eda0d22f53ea1b09c42348d63b5c915ac/src/librawspeed/decompressors/FujiDecompressor.cpp

However, I think converting from compressed to uncompressed RAF is a wrong direction. If an application doesn't support compressed RAF, update the application, or switch to a different one. Why waste storage with double file size?

OP Nikee69 Junior Member • Posts: 36
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?

Erik Baumgartner wrote:

You’ve got some purple fringing there that the jpeg processing cleans up automatically that you will have do manually.

You are right, these purple halos are actually an optical defect of the lens with high contrasts. Since the lens (XF 23mm 1.4 R) is pretty sharp at f8 they are very thin and out-resolve the 24 MP sensor (which has no anti alias / low pass filter), so aliasing occurs, as these light beams hit blue or green wells on the sensor.

OP Nikee69 Junior Member • Posts: 36
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?

Tom Schum wrote:

Nikee69 wrote:

That's what Adobe DNG RAW converter and Iridient X-Transformer (Smooth RAW conversion, medium sharpening, Luminance noise reduction default, Color noise reduction default) do to the image:

Can you tell which is which?

PS: Both are gruesome.

This is an excellent depiction of the glitches!

Offhand I would guess the Iridient version is on the right but maybe it's just wishful thinking on my part.

Iridient is on the left, Adobe DNG converter on the right. But they fail at the same places, which means that the RAW data in this image is just full of false color.

As posted earlier the purple halos are an optical abberation, so the red, green and blue pixels are actually false colors and the consequence of no low-pass/AA filter and high resolution lense, making the de-mosaicing process difficult. But these artifacts would be present with a Bayer array as well (think GFX 50s & 50r).

Also I was surprised to find no X-Trans "worms" with the Adobe converter. Which is a good thing.

I generally do not use Iridient when there are lots of specular highlights in an image. The JPG from the camera is as you have shown it: flawless in these situations.

It is also basically a colorized monochrome image if you look closely.

OP Nikee69 Junior Member • Posts: 36
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?

Today I tried out FUJIFILM X RAW STUDIO. It does only work when the camera in question is attached to the computer via USB, as it uses the in-camera JPEG engine to re-process the RAW files.

It's nice to correct exposure (also has some lights / shadow sliders), film simulation but not much more - and let the camera re-render the JPEG and save it on the computer.

Limitations there are many, but missing rotation to correct the horizon was one of the main issue I had with it.

darkchamber68
darkchamber68 New Member • Posts: 1
Re: How to convert compressed Fuji RAW files to uncompressed? Hello, completely new to this. I bough

sluggy_warrior wrote:

eric333 wrote:

Greybeard2017 wrote:

eric333 wrote:

but... is there a way to decompress a compressed.raf file into an uncompressed .raf file?

Not a .dng, just an unzipped form if itself.

I have to believe a compressed .raf uses some form of rar or zip algorithm. And as it’s lossless there must be a way to unzip it.

Presumably so - but its not the entire file that is compressed - just the CFA raw data within the file - that complicates things a bit

That makes sense. The camera writes out the header portion of the file then engages the compression on the cfa data since the compression method is (likely) tweaked to work only with the cfa data anyway.

And I’m thinking the compression can’t be too complicated because the camera has to do this all in real time.

If you're comfortable with coding, all the details are available in the rawspeed library:

https://github.com/darktable-org/rawspeed/blob/f383f62eda0d22f53ea1b09c42348d63b5c915ac/src/librawspeed/decoders/RafDecoder.cpp

https://github.com/darktable-org/rawspeed/blob/f383f62eda0d22f53ea1b09c42348d63b5c915ac/src/librawspeed/decompressors/FujiDecompressor.cpp

However, I think converting from compressed to uncompressed RAF is a wrong direction. If an application doesn't support compressed RAF, update the application, or switch to a different one. Why waste storage with double file size?

Hi,

I'm totally new to this & I know little. Sorry I jump around a bit in my concerns

Purchased X-T3 some months back. I took photos in RAW & chose compressed by mistake...Lunar Eclipse ;-(  . Now my finepix studio wont download the RAF files. The first download I did would. They were in Fine. What a pain it has been. Any help on that would be greatly appreciated. FPS does open them  from the windows file but as in windows 10 photos I get what  may be  connected to X-Trans demosaic  algorithims ...I think. It goes bright with lots of noise and spots of red green & blue if I recall correctly.

My question to this thread is which DIFFERENT application do you suggest? Do you mean free or paid?

Thank you for any help

I downloaded Raw X it wont let me use profile but I will youtube that. I have come from Nikon D70s & D800. Fuji  seems hard work!

Truman Prevatt
Truman Prevatt Forum Pro • Posts: 14,596
Re: Answered: How to convert compressed Fuji RAW files to uncompressed?

sluggy_warrior wrote:

eric333 wrote:

Greybeard2017 wrote:

eric333 wrote:

but... is there a way to decompress a compressed.raf file into an uncompressed .raf file?

Not a .dng, just an unzipped form if itself.

I have to believe a compressed .raf uses some form of rar or zip algorithm. And as it’s lossless there must be a way to unzip it.

Presumably so - but its not the entire file that is compressed - just the CFA raw data within the file - that complicates things a bit

That makes sense. The camera writes out the header portion of the file then engages the compression on the cfa data since the compression method is (likely) tweaked to work only with the cfa data anyway.

And I’m thinking the compression can’t be too complicated because the camera has to do this all in real time.

If you're comfortable with coding, all the details are available in the rawspeed library:

https://github.com/darktable-org/rawspeed/blob/f383f62eda0d22f53ea1b09c42348d63b5c915ac/src/librawspeed/decoders/RafDecoder.cpp

https://github.com/darktable-org/rawspeed/blob/f383f62eda0d22f53ea1b09c42348d63b5c915ac/src/librawspeed/decompressors/FujiDecompressor.cpp

However, I think converting from compressed to uncompressed RAF is a wrong direction. If an application doesn't support compressed RAF, update the application, or switch to a different one. Why waste storage with double file size?

Disk space is cheap.  By compressing with an unknown process in which there is no available decompression resources available - then you are buying yourself problems.  I've never found compressed raws worth the time or aggravation to mess with.  It would have been nice if Fuji provided a S/W package to compress and/or uncompress their raws.  But alas - S/W is not Fuji's long suit.

-- hide signature --

"The winds of heaven is that which blows between a horse's ears," Arabic Proverb
__
Truman
www.pbase.com/tprevatt

 Truman Prevatt's gear list:Truman Prevatt's gear list
Leica Q2 Monochrom Fujifilm X-H1 Fujifilm X-Pro3 Fujifilm XF 35mm F1.4 R Fujifilm XF 50-140mm F2.8 +12 more
Keyboard shortcuts:
FForum MMy threads