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

Fuji X100T - Removing conversion lens data from raw file

Started Oct 6, 2021 | Questions
ld_bl Forum Member • Posts: 71
Fuji X100T - Removing conversion lens data from raw file

Hi there,

I have some raw files from my Fuji X100T that for some reason have the tele converter lens settings embedded even though I don't have any of the conversion lenses and I'm pretty sure I didn't turn on the setting myself. I have since turned that setting off but my question is how can I remove this on the photos I've already taken? Lightroom automatically applies distortion correction for the tele converter lens which actually adds a lot of distortion to images shot without the lens and there's no way to turn it off. Has anyone been able to solve this problem?

Thanks in advance for your help.

ANSWER:
Fujifilm X100T
If you believe there are incorrect tags, please send us this post using our feedback form.
Erik Baumgartner Senior Member • Posts: 6,893
Re: Fuji X100T - Removing conversion lens data from raw file

Could you share a link to one of the affected RAW files?

 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
OP ld_bl Forum Member • Posts: 71
Re: Fuji X100T - Removing conversion lens data from raw file

Here's one. It shows 33mm in the exif data and Lightroom says the raw file contains a lens profile which is automatically applied with no option to turn that off.

https://drive.google.com/file/d/1zZE2z_iyzbdz0danebvCB3PjyDD2HUiT/view?usp=sharing

Erik Baumgartner Senior Member • Posts: 6,893
Re: Fuji X100T - Removing conversion lens data from raw file
2

ld_bl wrote:

Here's one. It shows 33mm in the exif data and Lightroom says the raw file contains a lens profile which is automatically applied with no option to turn that off.

https://drive.google.com/file/d/1zZE2z_iyzbdz0danebvCB3PjyDD2HUiT/view?usp=sharing

I don't think you can do it with Lightroom alone but, if you have it, the Iridient X-Transformer plug-in ($36) can be set to not pass the metadata through or to just ignore the lens corrections...

Edit:

With "Enable Profile Corrections" checked, Lightroom will then apply the normal 23mm lens corrections automatically...

With the regular corrections applied (R)

 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
OP ld_bl Forum Member • Posts: 71
Re: Fuji X100T - Removing conversion lens data from raw file

Thank you, that's very helpful. I wish there was a free tool that can do it...

Greybeard2017
Greybeard2017 Veteran Member • Posts: 3,112
Re: Fuji X100T - Removing conversion lens data from raw file
4

ld_bl wrote:

Thank you, that's very helpful. I wish there was a free tool that can do it...

I'm not familiar with the way that Lightroom achieves lens corrections but it would seem to use the Focal Length tag in the EXIF (there may be other profile information but I can't see it).

I tried changing the Focal Length tag from 33 to 23 in your sample file and it certainly changes the LR corrections.

If you want a free tool and don't mind using the command line then you can download Exiftool

https://exiftool.org/

The command you want is:

exiftool -FocalLength=23 DSCF1973.RAF

this will create a backup version - if you already have backups of your files you can use:

exiftool -FocalLength=23 -overwrite_original DSCF1973.RAF

this will overwrite your original without creating a backup

you can batch update all the RAF files in the current directory using:

exiftool -FocalLength=23 -overwrite_original -ext raf .

you can run the following command to check the value of Focal Length (before and after the update)

exiftool -FileName -FocalLength -ext raf -ext jpg -ext jpeg -T .

this shows File Name and Focal Length for raw and jpg files

(as usual when you are making updates its good practice to back everything up first)

 Greybeard2017's gear list:Greybeard2017's gear list
Fujifilm X-T30 Fujifilm X-S10 Fujifilm X-H2S
selected answer This post was selected as the answer by the original poster.
Erik Baumgartner Senior Member • Posts: 6,893
Re: Fuji X100T - Removing conversion lens data from raw file
1

ld_bl wrote:

Thank you, that's very helpful. I wish there was a free tool that can do it...

Well, you can always correct it manually - distortion, vignetting, and peripheral softness etc. too if you want, and save it as a preset to apply to just those screwed up images. You will lose some peripheral image because Lightroom, for whatever reason, doesn't allow you turn off the initial (incorrect, in this case) auto-correction, or give you access to the entire captured image to work with either.

 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
crowley213
crowley213 Senior Member • Posts: 1,177
Re: Fuji X100T - Removing conversion lens data from raw file

ld_bl wrote:

Hi there,

I have some raw files from my Fuji X100T that for some reason have the tele converter lens settings embedded even though I don't have any of the conversion lenses and I'm pretty sure I didn't turn on the setting myself. I have since turned that setting off but my question is how can I remove this on the photos I've already taken? Lightroom automatically applies distortion correction for the tele converter lens which actually adds a lot of distortion to images shot without the lens and there's no way to turn it off. Has anyone been able to solve this problem?

Thanks in advance for your help.

Maybe I am completely wrong, miss something, or don't understand it, but

- when I shoot the same scene with my X100T

- once with "CONVERSION LENS" set to "OFF"

- once with "CONVERSION LENS" set to "TELE", but NOT using a conversion length at all

then I see already in the camera a difference in the both images.

So how would modifying the exif data change anything in here at all?

Herbert

 crowley213's gear list:crowley213's gear list
Fujifilm X100T Fujifilm X-T3 Fujifilm XF 35mm F1.4 R Fujifilm XF 50-140mm F2.8 Fujifilm 16-55mm F2.8R LM WR +1 more
Erik Baumgartner Senior Member • Posts: 6,893
Re: Fuji X100T - Removing conversion lens data from raw file
1

crowley213 wrote:

ld_bl wrote:

Hi there,

I have some raw files from my Fuji X100T that for some reason have the tele converter lens settings embedded even though I don't have any of the conversion lenses and I'm pretty sure I didn't turn on the setting myself. I have since turned that setting off but my question is how can I remove this on the photos I've already taken? Lightroom automatically applies distortion correction for the tele converter lens which actually adds a lot of distortion to images shot without the lens and there's no way to turn it off. Has anyone been able to solve this problem?

Thanks in advance for your help.

Maybe I am completely wrong, miss something, or don't understand it, but

- when I shoot the same scene with my X100T

- once with "CONVERSION LENS" set to "OFF"

- once with "CONVERSION LENS" set to "TELE", but NOT using a conversion length at all

then I see already in the camera a difference in the both images.

So how would modifying the exif data change anything in here at all?

Herbert

The in-camera correction that you’re seeing is only applied to the jpeg, the RAW gets a metadata tag and the necessary correction data for an external editor convertor to make the corrections to the RAW. Lightroom applies these corrections automatically (and gives you no way to defeat them). If the metadata is wrong, the corrections are wrong. Stripping (or modifying) the metadata will allow you to avoid (or correct) this.

 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
OP ld_bl Forum Member • Posts: 71
Re: Fuji X100T - Removing conversion lens data from raw file

Thanks again. I will play around with these options and see which suits me best

crowley213
crowley213 Senior Member • Posts: 1,177
Re: Fuji X100T - Removing conversion lens data from raw file

Erik Baumgartner wrote:

crowley213 wrote:

ld_bl wrote:

Hi there,

I have some raw files from my Fuji X100T that for some reason have the tele converter lens settings embedded even though I don't have any of the conversion lenses and I'm pretty sure I didn't turn on the setting myself. I have since turned that setting off but my question is how can I remove this on the photos I've already taken? Lightroom automatically applies distortion correction for the tele converter lens which actually adds a lot of distortion to images shot without the lens and there's no way to turn it off. Has anyone been able to solve this problem?

Thanks in advance for your help.

Maybe I am completely wrong, miss something, or don't understand it, but

- when I shoot the same scene with my X100T

- once with "CONVERSION LENS" set to "OFF"

- once with "CONVERSION LENS" set to "TELE", but NOT using a conversion length at all

then I see already in the camera a difference in the both images.

So how would modifying the exif data change anything in here at all?

Herbert

The in-camera correction that you’re seeing is only applied to the jpeg, the RAW gets a metadata tag and the necessary correction data for an external editor convertor to make the corrections to the RAW. Lightroom applies these corrections automatically (and gives you no way to defeat them). If the metadata is wrong, the corrections are wrong. Stripping (or modifying) the metadata will allow you to avoid (or correct) this.

Thank you very much for the explanation, I think I got it.

I also checked my test images with Fast Raw Viewer and in there I do not see the differences!

Herbert

 crowley213's gear list:crowley213's gear list
Fujifilm X100T Fujifilm X-T3 Fujifilm XF 35mm F1.4 R Fujifilm XF 50-140mm F2.8 Fujifilm 16-55mm F2.8R LM WR +1 more
OP ld_bl Forum Member • Posts: 71
Re: Fuji X100T - Removing conversion lens data from raw file

I've played around a bit with exifTool over the weekend and I found that changing the focal length alone is not enough. There is "Geometric Distortion Params" embedded in the exif of the Fuji raw file. I was thinking of overwriting that field with data from a normal Fuji X100T file but apparently you can't write to that field. Maybe you just can't write to the whole field because it's made of multiple floating point numbers (probably coefficients of a polynom to describe the distortion correction) but I can't figure out how to get/set the single numbers either...

So, I'm kind of stuck. Might have another look at a later date.

I would have thought there's an easier way to fix this as it seems like a pretty easy mistake to make...

Erik Baumgartner Senior Member • Posts: 6,893
Re: Fuji X100T - Removing conversion lens data from raw file
1

ld_bl wrote:

I've played around a bit with exifTool over the weekend and I found that changing the focal length alone is not enough. There is "Geometric Distortion Params" embedded in the exif of the Fuji raw file. I was thinking of overwriting that field with data from a normal Fuji X100T file but apparently you can't write to that field. Maybe you just can't write to the whole field because it's made of multiple floating point numbers (probably coefficients of a polynom to describe the distortion correction) but I can't figure out how to get/set the single numbers either...

So, I'm kind of stuck. Might have another look at a later date.

I would have thought there's an easier way to fix this as it seems like a pretty easy mistake to make...

How many shots did you shoot this way? If you don't mistakenly enable the TCL correction in the camera menu again, you shouldn't have any trouble in the future.

If you need to fix a lot of images, just get the Iridient X-Transformer plug-in and fix it that way. besides being able to fix the issue, you also get significantly better demosaicing and the ability to trick LR into allowing you to use film situations that aren't available with your model. Well worth the 40 bucks, IMO.

 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
Greybeard2017
Greybeard2017 Veteran Member • Posts: 3,112
Re: Fuji X100T - Removing conversion lens data from raw file
1

ld_bl wrote:

I've played around a bit with exifTool over the weekend and I found that changing the focal length alone is not enough. There is "Geometric Distortion Params" embedded in the exif of the Fuji raw file. I was thinking of overwriting that field with data from a normal Fuji X100T file but apparently you can't write to that field. Maybe you just can't write to the whole field because it's made of multiple floating point numbers (probably coefficients of a polynom to describe the distortion correction) but I can't figure out how to get/set the single numbers either...

So, I'm kind of stuck. Might have another look at a later date.

I would have thought there's an easier way to fix this as it seems like a pretty easy mistake to make...

The Geometric Distortion Params are actually embedded in the raw data whereas most other EXIF metadata (like the focal length) is stored in the preview jpg - I'm guessing exiftool doesn't like to mess with the raw data.

Here is your sample with the params updated - see if it does what you want - I see there are other parameters that control chromatic aberration and vignetting corrections but I didn't touch those:

https://www.dropbox.com/s/4trht3qonm9j5q1/X100Tz.RAF?dl=0

 Greybeard2017's gear list:Greybeard2017's gear list
Fujifilm X-T30 Fujifilm X-S10 Fujifilm X-H2S
OP ld_bl Forum Member • Posts: 71
Re: Fuji X100T - Removing conversion lens data from raw file

Thank you! That works. So, how did you update the params?

I also saw the other params like vignetting and chromatic aberrations but I assumed they couldn't be changed by exiftool either...

Greybeard2017
Greybeard2017 Veteran Member • Posts: 3,112
Re: Fuji X100T - Removing conversion lens data from raw file

ld_bl wrote:

Thank you! That works. So, how did you update the params?

I also saw the other params like vignetting and chromatic aberrations but I assumed they couldn't be changed by exiftool either...

I used a script written in Perl which you are welcome to try (if you have Perl on your computer - MacOS and Linux have it as standard)

 Greybeard2017's gear list:Greybeard2017's gear list
Fujifilm X-T30 Fujifilm X-S10 Fujifilm X-H2S
OP ld_bl Forum Member • Posts: 71
Re: Fuji X100T - Removing conversion lens data from raw file

That would be lovely. Thank you!

Greybeard2017
Greybeard2017 Veteran Member • Posts: 3,112
Re: Fuji X100T - Removing conversion lens data from raw file
1

ld_bl wrote:

That would be lovely. Thank you!

PM sent

 Greybeard2017's gear list:Greybeard2017's gear list
Fujifilm X-T30 Fujifilm X-S10 Fujifilm X-H2S
Keyboard shortcuts:
FForum MMy threads