Ligtroom Classic: Does not apply the same lens correction to raw and JPEG files

  • 1
  • Problem
  • Updated 4 months ago
  • Not a Problem
  • (Edited)
Using a Canon EOS M5 with a Canon EF-M 15-45 mm zoom lens, I set the camera to shoot RAW+JPEG. In Lightroom, the correct lens is picked up for the lens correction but the same lens cannot even be displayed for the JPEG image. All I see are the EF-S lenses. The metadata about the lens and the zoom settings are the same in both images.
  1. Is it possible to force Lightroom to use the same Canon EF-M 15-45mm lens correction on the JPEG image as well?
  2. How?
  3. And, why is it even seeing the lens as an EF-S lens even though the metadata correctly identifies it?
Photo of Cemal

Cemal

  • 46 Posts
  • 0 Reply Likes

Posted 5 months ago

  • 1
Photo of Andrew Rodney

Andrew Rodney

  • 652 Posts
  • 122 Reply Likes
Lens profile are only applied to raw files, not JPEGs in Lightroom.
Photo of Cemal

Cemal

  • 46 Posts
  • 0 Reply Likes
The option is certainly there Andrew. And, if I select a lens Lightroom dutifully applies the correction, appropriate or not. That's part of the puzzle.
Photo of Steve Sprengel

Steve Sprengel, Champion

  • 2657 Posts
  • 341 Reply Likes

Your EOS M5 is a mirrorless camera, not a DSLR.

LR corrects raws from mirrorless cameras automatically with a built-in lens profiles.  There should be a notation at the bottom of the lens calibration area that says as much.  As such there aren't selectable lens profile files for mirrorless lenses, only lenses for DSLRs with lenses that can be used on multiple camera bodies.

Mirrorless cameras typically have an electronic viewfinder showing an already-lens-corrected image in real-time, and the JPGs from a mirrorless camera are already corrected by the camera so a raw lens profile wouldn't be applicable.

If you are seeing something unexpected please upload an example raw+jpg to somewhere like dropbox, googledrive or onedrive, and we can see if it acts the same for us.

Photo of Cemal

Cemal

  • 46 Posts
  • 0 Reply Likes
Thanks for the explanations, Steve. I am uploading two photos, the one with -1 in the name is from a RAW file and the -2 is from the accompanying JPEG file. The first one has the lens correction applied and the second one does not. I also don't see any text in the lens correction panel that refers to built in lens profiles. I do know that without applying the built in lens corrections the images may look severly distorted , almost a fish-eye look. The point is, Lightroom indeed seems to be applying some basic level lens corrections to both image formats, but specific corrections are reserved for RAW images for some reason. Please let me know if you see the difference in the two images after you get a chance to look at them.

Thank you

Photo of Steve Sprengel

Steve Sprengel, Champion

  • 2657 Posts
  • 341 Reply Likes

Regarding your third 1. question:
  1. Is it possible to force Lightroom to use the same Canon EF-M 15-45mm lens correction on the JPEG image as well?
  2. How?
  3. And, why is it even seeing the lens as an EF-S lens even though the metadata correctly identifies it?

If you manually select Canon as the lens manufacturer then LR will show a somewhat-matching lens from the list of available profiles, not that this lens will be right, usually.

Of course your lens will have a built-in profile for any raw files and profiles aren't needed for JPGs, so you shouldn't be enabling profile corrections much less selecting anything in the lists.

Photo of Cemal

Cemal

  • 46 Posts
  • 0 Reply Likes
If I don't apply the lens corrections to the RAW images, both formats look the same. So, Lightroom is not applying the lens specific corrections to the RAW images until I decide to do so. Am I right?
Photo of David Converse

David Converse

  • 478 Posts
  • 149 Reply Likes
Your camera can use EF and EF-S lenses via the Canon adapter.

Also, your camera has automatic lens corrections available which are applied in-camera. Check your menus and owners guide to see if that is turned on. If it is (I believe it is enabled by default) then JPEG files don't need any additional corrections. I don't know if these are limited to EF-M lenses or if other Canon lenses are automatically corrected as well, you can check with Canon support.
Photo of Cemal

Cemal

  • 46 Posts
  • 0 Reply Likes
You may be right David. I will check again with a severely distorted image if the Lightroom applied lens corrections make any improvements. That said, on such cameras Lightroom should probably disable the lens correction option for a better UI and user experience. What say you?
Photo of Todd Shaner

Todd Shaner, Champion

  • 1135 Posts
  • 366 Reply Likes
(EDIT- Removed "built-in profile," which the Canon EOS M5 does not use.)
Canon apparently dropped JPEG in-camera distortion correction for the EOS M series cameras. Only vignetting (peripheral illumination) and chromatic aberration correction are available when using the in-camera menu item 'Lens aberration correction.' I'm not sure why Canon did this since all of their current DSLR and Point & Shoot camera models support in-camera JPEG distortion correction. The LR lens profile corrects both vignetting and distortion, but only with raw files.

You can modify the Canon EF-M 15-45mm raw lens profile for use with JPEG files and use it with Lens Profile Distortion = 100 and Vignetting = 0 since that has already been corrected in-camera. Here's how:

Raw Lens Profile Modification for use with JPEG
Camera Files

The
Adobe installed lens profiles can be found here:

Mac:
Applications/Adobe Photoshop Lightroom X/Contents/Resources/Lens Profiles

Windows:
C:\Program Files\Adobe\Adobe Photoshop Lightroom VERSION\Resources\LensProfiles\1.0

Open
the RAW lens profile you want to edit (PROFILE_NAME - RAW.lcp) in
a text editor such as Windows Notepad or Mac TextEdit (change Format> Make
plain text). Find and Replace All instances (about 20) of:

stCamera:CameraRawProfile="True" 

and
change to:
stCamera:CameraRawProfile="False"

Do NOT Save the modified file to the same location. Rename the file by changing - RAW to -
JPEG and save the file to the below "user" folder location. The text
editor may try to add a .txt extension to the file name. Retain the original
file extension .lcp.

Mac:
Macintosh HD / Users / [your username] / Library / Application Support / Adobe
/ CameraRaw / LensProfiles /

Windows:
C: \ Users \ [your username] \ AppData \ Roaming \ Adobe \ CameraRaw \ LensProfiles \

Close
and reopen LR to load the new lens profile.

(Edited)
Photo of Cemal

Cemal

  • 46 Posts
  • 0 Reply Likes
Todd, our paths cross once more, good to hear from you and thank you for the detailed instructions to modify the file. I did that for the EF-M 18-150 mm lens, search and replaced 68 occurrences of the expression, saved it in the folder you indicated, restarted Lightroom. But, the 18-150 mm lens does not appear in the list from which I can select the lens. I double checked that I replaced RAW with JPEG and retained the original file extension. I am sending a screen capture of the folder contents, perhaps I made a mistake somewhere. I am sure your keen eyes will spot that! Thank you.
Photo of Todd Shaner

Todd Shaner, Champion

  • 1135 Posts
  • 366 Reply Likes
Hi Cemal. My bad–I gave you the wrong path! Please move the .lcp file to the below 'LensProfile' folder location and then restart LR to load it. I'll change my original post so no one else makes the same mistake. Please let me know if you have any other questions.

Windows:C: \ Users \ [your username] \ AppData \ Roaming \ Adobe \ CameraRaw \ LensProfiles \
Photo of Cemal

Cemal

  • 46 Posts
  • 0 Reply Likes
Todd, this worked like a charm! Thank you. I will do the same with a few other lenses I use on that camera and remember you every time I fix for lens distortions! Thanks again. By the way, I saved the file in \1.0 folder under LensProfiles and it works. This may help keep it consistent with the location of the RAW profiles.
(Edited)
Photo of Todd Shaner

Todd Shaner, Champion

  • 1135 Posts
  • 366 Reply Likes
Glad to help.  LR will detect all profiles in the top-level 'LensProfiles' folder even if they aren't in the 1.0 folder. You can save the converted JPEG lens profiles in a separate folder as shown below to keep track of them. Make sure you only apply the lens profile to camera created JPEGs and not export files that already have the raw lens profile applied.

Photo of Cemal

Cemal

  • 46 Posts
  • 0 Reply Likes
That's good to know Todd, thank you.