Lens Profiles for JPG Images

Status
Not open for further replies.

Outerbank10

Member
Joined
Aug 31, 2018
Messages
82
Lightroom Experience
Intermediate
Lightroom Version
6.x
Operating System
  1. Windows 7
Have read that lens profiles located in C:\Program Files\Adobe\Adobe Photoshop Lightroom (6.14 in my case)\Resources\LensProfiles\1.0\Sony or Tamron (in my case), can be added to Light Room for JPG images by editing the .lcp file in a text editor, changing the tag that indicates it is for a raw file from True to False and then save it with a new name, without the RAW at the end of the name. The renamed file is then placed in the Users Folder where the Lens Profile Downloaded installs non-Adobe- supplied lens profiles. By modifying the .lcp file from True to False and leaving off the RAW at the end of the file, does this modification remove the lens profile from its application to RAW images? Or does renaming the .lcp file just create a new lens profile just for JPG images and still retain the original .lcp files for RAW images?

Currently, LR under "Lens Corrections" for JPG images may have "Enable Profile Corrections" unchecked, and when checked it lists several different lens brands including Sony and Tamron, both of which are used. For Sony the only lens listed is Sony DT 18-200mm f/3.5-6.3. For Tamron, the only lens listed is Di 28-75mm f/2.8 SP XR LD IF. I have neither of these lenses. Consequently, I would like to add to this list, which I believe can be done using the above method. It is also my understanding that enabling the lens profile correction may cause unintended results. I am willing to take the gamble since some of the JPG images do not appear correct either with the lens profile unchecked or with using the two lens profiles offered..
 
It should work, but why don't you just try it. The worse that can happen is that you have to delete the modified copy again, because it doesn't work, or interferes with the raw profile somehow.
 
Made the changes as described in previous post, but I don't see any additional lenses available under Lens Corrections. The same lenses previously noted are listed. I would like to know in which folder LR is accessing to obtain these two lenses? When using Adobe Lens Creator application to create a special lens profile, to which folder in WIndows is the lens profile downloaded to?

Currently, the modified .lcp lens profiles are saved in C:\Users\UserName\ AppData\Roaming\Adobe\CameraRaw\LensProfiles\1.0\Sony\.

When searching the computer C:\Users\UserName\AppData\Roaming\Adobe\CameraRaw\LensProfileDefaults\, there are two XMP Lens Defaults listed. Is this the folder that LR is accessing for the two camera lenses available under Lens Corrections for JPEGS?
 
Finally got it working. The directions for making the changes to the .lcp files were incomplete. Determined that not only must the RAW file extension be removed, but it also must be replaced with a JPG file extension. There are now lens profiles available for JPG images that were not available. Of the JPG images updated with the correct lens profile, the images now appear geometrically correct.
 
Since installing the additional lens profiles in LR6 and using the profiles to make adjustments to a number of JPG images and seeing the results, a few thoughts have come to mind that I hope the experts on this forum can answer.

The JPG images were taken number of years ago after the purchase of my first digital camera. It was a Sony A100 with a stock Sony 18-70mm, 3.5-5.6 lens. Also subsequently purchased was a Tamron 18-200mm, 3.5-6.3 lens. As a beginner, only JPG images were taken initially. The JPG images were imported into LR6 from the original SD card. Camera Calibration showed only "Embedded", while Lens Corrections in the drop down list only showed for Sony, a DT-18-200mm lens, while for Tamron, it only showed a 28-75mm lens. Since neither of these two lenses were applicable to my needs, lens calibration was left unchecked.

My question is, what lens correction, if any, did Light Room apply to the JPG images with lens calibration unchecked? Presumably, the software must have applied some type of correction. The reason for asking is that since adding the new lens profiles to Light Room and applying them to the appropriate images, I see quite a difference in the images, correct differences. That is, lines that were previously curved and should have been straight, have been straightened. Images that had some vignette, are now corrected, and some images have been lightened. Consequently, the results have been surprising because I had read that adding lens profiles using the previously described method may result in objectionable images. Thus far it is the exact opposite.

Looking forward to anyone's insight.
 
The answer is confusing. Considering the answer at face value, it seems to infer that the camera captured the images without a lens. Therefore no lens correction/profile was applied by Light Room. From my understanding a JPG image right out of a camera is in-camera processed. The image seen on the camera's LCD screen is a processed image. If so, wouldn't Light Room interpret the in-camera processed image as it is? My concern prior to installing the additional lens profiles was double profiling. At least that was one of the warnings read on another website. Double profiling has not happened to the images that had the new profile applied. If double profiling has indeed occurred, it's not visually evident. At least to my eyes. Several of the images were of paintings in their frames. It was possible to visually see a slight curvature of the outer perimeter of the frames. Immediately upon applying the new lens profile, the curvature snapped into a straight edge. Also described was a correction in vignette. There also is no loss of photo sharpness. The bottom line is that the new profile seems to be doing its job by correcting the images.
 
Lens corrections in JPEG are applied during the creation of that JPEG, so in the camera. It's possible that the camera did not apply any lens corrections at all, however. There is no law that states that a camera must apply lens corrections to its JPEG output otherwise it cannot be sold.
 
Now I am more confused than ever by the last posting. Here is the situation as I understand it which may be totally incorrect. The camera is fitted with the Sony 18-70mm lens. The camera/lens combination sees an image and captures what it sees in JPEG format. It is presumed that the light passing through the lens has been modified based on the lens profile. That is, the image/light captured has been modified by the lens which is then recorded on the memory device used in the camera. All the conditions at the time the image was captured is recorded on the EXIF and can be read using an EXIF reader, including lens used.

Now to the last forum post. If as written, lens corrections are applied during the creation of a JPEG in camera, and then it's possible that the camera did not apply any lens corrections to the JPEG output, how then are the digital pixels properly arranged to show what the camera/lens combination captured? As written, the post seems incongruous. Certainly, the lens must have played a role in bending the rays of light in such a manner that the captured image is accurately displayed. Furthermore, this information has been digitally recorded as is on a memory card. It seems highly unlikely that the digital pixels are arranged and recorded without the aid of the lens.

In this instance, a before unavailable lens profile in Light Room was added to Lens Corrections application in Light Room, namely the Sony 18-70mm lens. This same lens was initially employed to capture these JPEG images. Prior to adding this lens profile to Light Room and under Lens Corrections, "None" was checked since an applicable lens profile was unavailable. Subsequent application of this lens profile to the JPEG images within Light Room has resulted in correcting the JPEG images for geometry, vignette and in some instances exposure. All without apparent degradation to the images. In fact, subsequent home printing of at least two of the images has resulted in very good printing output.

Can anyone help me understand what's going on?
 
Now I am more confused than ever by the last posting. Here is the situation as I understand it which may be totally incorrect. The camera is fitted with the Sony 18-70mm lens. The camera/lens combination sees an image and captures what it sees in JPEG format. It is presumed that the light passing through the lens has been modified based on the lens profile.
Light isn't affected by a profile. A profile is used to change the image that was projected by the lens. That is a software change of the recorded image. JPEG images can be changed this way, raw images will not because that would mean changing the raw data.

Like I said: there is no law that says that each camera must use a lens profile for JPEG output with each lens. It's possible that a certain camera does not change the image because there is no profile. That could happen if you attach a third party lens, for example. It could also happen with a camera manufacturer lens, if that manufacturer decided not to bother for this particular camera or lens.

A good example is tilt/shift lenses. Because each change in tilt and/or shift would require a different profile, tilt/shift lenses do not have embedded profiles and a JPEG image shot with a tilt/shift lens won't be corrected by a profile either. Another example is fish eye lenses. You can correct the distortion of a fish eye image by using a profile (Lightroom does have a few such profiles), but camera manufacturers won't do that with their JPEG output, because most people buy such a lens because they actually like the distorted view, and because the correction will cut off quite a bit.

In this instance, a before unavailable lens profile in Light Room was added to Lens Corrections application in Light Room, namely the Sony 18-70mm lens. This same lens was initially employed to capture these JPEG images. Prior to adding this lens profile to Light Room and under Lens Corrections, "None" was checked since an applicable lens profile was unavailable. Subsequent application of this lens profile to the JPEG images within Light Room has resulted in correcting the JPEG images for geometry, vignette and in some instances exposure. All without apparent degradation to the images. In fact, subsequent home printing of at least two of the images has resulted in very good printing output.

Can anyone help me understand what's going on?
You are talking about a profile that was produced by Adobe, not by Sony. So by definition, that profile will not have been used by Sony in the JPEG output of the camera, but Sony could have used their own profile for doing that. 'Double profiling' does not mean that the same profile is applied twice (once by the camera and once by Lightroom), but that two different profiles (one created by the camera manufacturer and one created by Adobe) are used to try correct the same lens fault, causing over-correction. Apparently that did not happen here, so the conclusion is that Sony (probably) did not apply a lens profile to the JPEG output.
 
Some cameras apply lens profiles to correct their JPG images. Most of those, as far as I know are mirrorless cameras. The idea is that the lens can be less complex (and therefore cheaper) and it's distortions can be fixed in software. Your Sony evidently doesn't apply them to images taken with that lens. You seem to think that if a lens profile isn't applied, you won't get an image at all. This is entirely false. You always get an image. Applying a lens profile can possibly improve that image.

If you don't know if your camera is applying a profile, try applying one in Lightroom. If it improves the image, as it does in your case, keep it. If not, back out the correction.
 
Thanks for your input. It has been informing. However, some of the explanation is still confusing. It may be that the term "lens profile" may not exactly describe what it is, or does. Lens correction seems a more appropriate term. Which by the way is how the editing function that applies a lens corrective action is labeled within Light Room. By definition, it would seem that the term lens profile more accurately describes the particular behavior of a particular lens, rather than a software fix thereafter. That is, the Sony 18-70mm lens described in this discussion has a particular "lens profile" that portrays an image in a manner that may require an image correction. In DXO's PhotoLab, it has what is described as Camera/Lens Modules that perform similar if not identical actions to what is described herein as a lens profile. Now I may be splitting hairs, but my initial understanding of the term "lens profile" meant to me the behavior of the lens in use. Therefore, the camera and Light Room is transferring the data as is into Light Room based on the profile of the lens in use.
 
A lens profile describes the characteristics of a lens. It is used to correct images taken with that lens. Your camera can use a lens profile to correct jpeg images taken with that lens, but it does not have to do that.
 
You are correct that use of the term lens profile, when properly used, describes the characteristics of the lens. However, when something is used to correct images taken with a particular lens it has to be called something else because it is after the fact. I suppose it could be called lens re-profiling? And yes, a camera can internally make lens corrections to an image. However, it still remains after the fact. In the instance with the Sony A100 camera, it does not have this internal capability. Whereas, my Sony A57 has 3 lens compensation settings to adjust the "image", not the profile of the lens used. For example, it has Shading, Chromatic Aberration and Distortion settings.
 
So to summarize, in the context of editing photos, the term "lens profile" is used to describe the corrections/compensation applied to the photo.

When you shoot JPEG, the light passes through the lens and hits the sensor. Some cameras apply corrections/compensations to the image data before saving it as a JPEG. Some only apply those corrections when enabled in the menus. Some cameras will only apply corrections for specific lenses. Other cameras won't apply any lens corrections/compensation. If a camera hasn't applied corrections, then they can be corrected later in Lightroom by applying a suitable lens profile.
 
FWIW I finally got a lens profile converted from RAW to JPG using the following method (note: file locations for Mac):
  1. Copy the required lens correction file from Applications/Adobe Photoshop Lightroom X/Right-click Show Package Contents/Resources/Lens Profiles to Library/Application Support/Adobe/CameraRaw/LensProfiles/Pentax
  2. Rename the file dropping the RAW ending: e.g. PENTAX (smc PENTAX-DA 18-135mm F3.5-5.6 ED AL[IF] DC WR) - RAW.lcp becomes PENTAX (smc PENTAX-DA 18-135mm F3.5-5.6 ED AL[IF] DC WR).lcp
  3. Open the file in text editor and unlock
  4. Use Edit | Find to locate and DELETE the tag <stCamera:CameraRawProfile>False</stCamera:CameraRawProfile>
  5. Use Edit | Find | Find and Replace to replace the string CameraRawProfile="True" with the string CameraRawProfile="False" (over 400 of these in my file)
  6. Save the file and relaunch Lightroom.

The issue I was having was that the lens profile would not load. After inspecting some Sigma lip files for JPG I realised step 4 was required to correct this.
 
Finally got it working. The directions for making the changes to the .lcp files were incomplete. Determined that not only must the RAW file extension be removed, but it also must be replaced with a JPG file extension. There are now lens profiles available for JPG images that were not available. Of the JPG images updated with the correct lens profile, the images now appear geometrically correct.
Hi there,

Custom profiles need to be stored in the user location, so the first location you mentioned. The modified profile is a custom profile.
Hi there, could you please elaborate on this? On a windows machine, what folder should i copy the modified lcp file to?

Thanks in advance,

Szabolcs
 
Hi there,


Hi there, could you please elaborate on this? On a windows machine, what folder should i copy the modified lcp file to?

Thanks in advance,

Szabolcs
C: \ Users \ [your username] \ AppData \ Roaming \ Adobe \ CameraRaw \ LensProfiles
 
C: \ Users \ [your username] \ AppData \ Roaming \ Adobe \ CameraRaw \ LensProfiles
Hi Johan,

thanks for the quick response.

I of course forgot to Show Hidden Items, and my AppData folder was nowhere to be found. It all appears to be working now. Underneath "C: \ Users \ [your username] \ AppData \ Roaming \ Adobe \ CameraRaw \ LensProfiles" I had a "1.0" sub-folder that was empty. I copied the lcp file not in this 1.0 sub-folder, but instead the LensProfiles folder, and I can now apply lens corrections to jpgs.

Thank you very much! :)

Szabolcs
 
Status
Not open for further replies.
Back
Top