Scripting Lens Correction to process millions of photos

We have several million "Fish-Eye" images that we need to flatten out and the new "Lens Correction" feature of Photoshop CS5 appears to work pretty well.  I was able to use the predefined File -> Automate -> Lens Correction function to process a hanfull of images and it worked fine for a small batch.
I would like to know if there is a way with Photoshop CS5 to script/batch out a process so that I can use it to process the millions of individual files we need to have processed.
Also, I am not familiar with the Photoshop "Batch" or "Scripting" process, so assuming the above request is possible, some direction on how to proceed would be greatly appreciated.
Thank You.
Lee

Unfortunatly I'm talking millions of images.  Anwhere from 3 to 20 millon. Space is not an issue but time may be but that will all be evaluated during this process.
From what I've figured out so far, handling this via a script would probalby be the best way to handle it as I may have to do some other integration in order to retrieve my lists of files to process, handle errors and dynamically name the saved images.  I also believe scripting will allow me to run the process from outside of Photoshop.
For now, however, I'm trying the simpler approach mentioned above.  So how would I go about creating an action to applie lens correction?
Thanks
Lee

Similar Messages

  • Batch processing lens correction in LR3

    Hi folks,
    my questions today are best practise questions:
    First:
    What is the best way to apply the auto lens correction to already imported images in LR3?
    Second:
    Is it possibe to do auto lens correction during the import process? 
    Thanx for your support
    JK

    1. Select desired images, go to Develop, and click the "Enable Profile Corrections" checkbox in the Lens Corrections panel.
    Note that you will need Auto Sync enabled for this to work. In Develop, on the right panel, there is a "Sync..." button with a little switch to its left. If you click that switch, that will enable the Auto Sync feature, and the button will be renamed to show this.
    2. Yes, make a preset. Namely, pick an image and turn on profile-based lens corrections (see previous step). Go to Develop menu and choose New Preset... In the ensuing dialog box, check the "Lens Corrections" box (and whichever other boxes you want to be included in the preset). When you import your images, select this as your Develop preset. This will cause lens corrections to be applied to all images that are imported.

  • Batch photos analysis, correction and processing - One size (analysis and correction) does not fit all

    PS CC 2014, Bridge and ACR. iMac. 100 pictures. Each  picture was taken in a totally difference environment (lighting, noon and evening. inside, outside, ISO, etc).  I need to process all 100 photos in ACR at the same time (don’t have time to manually analyze and edit one photo at a time) whereby each picture receives it own unique individual AUTO analysis and correction. One identical cookie cutter analysis and correction for all 100 photos will NOT work. I have the same question using LIGHTROOM. I will end up adopting whichever solution (ACR or LIGHTROOM) is the easiest and fastest.  I do realize that I will have to go back and tweak each photo. Thanks. Bob

    So I cannot just click once and the system will AUTO run all 100 photos through all the possible options (exposure, contrast, white balance, etc.). I sounds like I will have to run all 100 photos though each individual element (exposure, contrast, white balance, etc.). This would be very time consuming. Please clarify.

  • I messed up Lens Correction - photos titled

    Some of my photos are tilted or slanted. I beleive it happened when I was exploring options in LENS CORRECTION-Upright. How do I set this back to REGULAR or default. I can correct each photo (one at a time), but this is very time consuming.  Thanks  Bob

    If you can select a group of photos that have this issue, turn on Auto Sync and click Off in the Lens Correction Upright area, and after the change has propagated to the group, turn off Auto Sync.  That should reset the Upright function for the group of selected photos without affecting anything else with the photos.
    AutoSync is turned on and off by the little switch beside the Sync button in the LR Develop panel.

  • Lens Correction and JPEGs

    Hi,
    I'm new to LR. I've spent the last two months watching every tutorial, practicing with a portfolio/video instructional off the Adode site and reorganizing my own photos and folders on my computer.
    I finally took the "bold" step to put a few of my photos into LR. All my photos are from either a Nikon 3000 or 3100 with the same lens AF-S DX Nikkor 18-135mm f/3.5-5.6G ED.
    Also, all my photos are JPEGs.
    1) In Lens Correction > Profile > Enable Profile Correction there are 3 options
    Default (no make/model options)
    Auto (no make/model options)
    Custom > when I click this I get the model and Adobe profile for the Nikon AF-S Nikkor 14-24mm f/2.8G ED
    Is the Adobe profile the same for both lenses? The 14-24 and the lens on my camera - the 18-135?
    Default and Auto look the exact same. If I click Custom, the image becomes a little more exposed. To my eye, Default/Auto look better.
    2) Also, should I "check" chromatic aberration for all my photos? I'm not sure how this feature works in LR with JPEGs.
    3) Considering where I am and my skills at this point, what is the best recommendation going forward, for learning LR and working with my JPEGs.
    Since I'm going to be essentially working only with JPEGS for a while, what lens correction should I use with these photos? Default/Auto/Custom?
    4) Are there any other settings that I need to pay attention to with the camera/lens/file type that I am using while trying to learn LR?
    I'm starting to realize from my readings, that JPEGS will have a more limited range of development in LR and "LR will display only the profiles available for the file type of the selected image."  Lens profile support | Lightroom 5, 4, 3 | Photoshop CS6, CS5 | Camera Raw 8, 7, 6
    I want to become a more serious amateur and enthusiastic photographer, but I also don't want to spend 15 minutes editing/developing every semi-decent photo I take.
    As an aside, my 3100 has a shutter problem, so I will be upgrading at some point (probably Micro 4/3) and I plan to explore shooting RAW or a combination of RAW/JPEG somewhere down the road.
    Thanks
    Andrew

    As I understand lens correction profiles, most are written for RAW photos only, and there are only a few profiles written for JPGs. That would explain why you don't see your specific lens under Custom.
    2) Also, should I "check" chromatic aberration for all my photos? I'm not sure how this feature works in LR with JPEGs.
    I'm certainly not the biggest expert on chromatic aberration, but it seems to me that the chromatic aberration algorithms are looking for certain types of coloration at "edges", and I don't see why that would be different for JPGs compared to RAWs.
    But I'm confused by the actual question ... checking the box and seeing if it makes the photo better seems so simple that I don't really understand why you had to ask the question.
    3) Considering where I am and my skills at this point, what is the best recommendation going forward, for learning LR and working with my JPEGs.
    Since I'm going to be essentially working only with JPEGS for a while, what lens correction should I use with these photos? Default/Auto/Custom?
    Again, the learning process in Lightroom is ... just do it. You can't harm your photos, you can always undo whatever you did that you didn't like. The lens correction you choose is the one that makes the photo's appearance look best to you.
    4) Are there any other settings that I need to pay attention to with the camera/lens/file type that I am using while trying to learn LR?
    Any setting and any slider and any tool might be the right one for your photo. There is no general setting that EVERYONE uses, as the reason software provides options is that some people want it one way, and other people want it a different way.
    I want to become a more serious amateur and enthusiastic photographer, but I also don't want to spend 15 minutes editing/developing every semi-decent photo I take.
    The learning curve can be difficult, but as I said, editing your photos will never harm your originals, and you can always undo whatever you did. So ... just do it.
    I am concerned that even as a beginner, you think it might take you 15 minutes to edit a single photo. Unless you are doing a HUMONGUS amount of brushing, this should never take 15 minutes, even for a beginner. Yes, of course if you want everything to be absolutely PERFECT, then it will take longer, but there really is no such thing as a PERFECT photo. Your goal ought to be (in my opinion) making the photos look GOOD, and learning what the sliders and tools do as you go. And certainly there is no unique determination of what a GOOD photo is, a photo that looks GOOD to you may not look good to someone else, but that's kind of irrelevant, its your photo, it should only matter that it looks GOOD to you.
    You said you watched tutorials, are these tutorials helping, or not? Do you feel you have learned the basic purpose of (some of) the develop sliders and develop tools, or not?

  • Lens correction doesn't work in CS5 Bridge

    Lens Correction in Bridge isn't working properly for me.
    I ran the Lens Correction tool in Bridge and selected "Match best profile" from the profile section.
    The script ran and saved the new files in the proper folder, but didn't produce any lens correction results. I double-checked this by creating a highly distorted lens profile and running the script with that, but it didn't produce any results either. It seems the Lens Correction tool, when accessed through Bridge, isn't working. It does, however, work great when used in Photoshop... just not in Bridge where you can apply it to multiple files.
    Has anyone had any experience with this? Judging from the ancient dialog screen, I'd bet that this feature doesn't get used much.

    Has anyone had any experience with this? Judging from the ancient dialog screen, I'd bet that this feature doesn't get used much.
    Your last remark about popular usage seems to be spot on, never even tried it myself. It seems one of the many needless and bad working options in Bridge that should have been dealt with long time ago but as we all know by now Bridge is neglected by Adobe bean counters and we still are waiting for the miracle...
    Tried your route in Bridge CC (selecting a few files in Bridge / menu tools / Photoshop / Lens Correction) and run the scripts.
    You are right, the files are saved in a separate 'results' folder with the same filename but nothing has changed other then instead having a locked background layer now the dreadful 'layer 0' assigned (dreadful because I have lots of actions working on the layer called 'background' and they refuse to work on 'layer 0', I have to built in a flatten layer command to change it again to background, but this is slightly Off Topic…)
    And indeed,  the same files running in PS lens correction filter do have the correct result.
    You can't use raw or DNG directly in the Bridge script because the result can only be saved as jpg, png, PSD and Tiff.
    Meanwhile you could do the obvious and choose from two options:
    - follow the ACR / Raw -DNG route (preferred because at the start of the process) where  you can select the raw files in filmstrip mode and with select all choose lens correction in ACR then hit OK or save or open).
    - or in case of already converted or saved files create an action (which is nothing more then a recorded script but then very easy) yourself.
    Just open 1 file in PS, then create a new action in the action panel with a proper name. It starts recording and will follow your steps. Apply lens correction with the wanted settings, then hit OK, use flatten layer to return to Background instead of Layer 0, hit save as (choose a proper location because all files will be saved here when running the action) and be sure to not touch or change the file name otherwise each new file will overwrite the previous with the same recorded file name, if you leave it untouched it saves the existing file name in a new location. hit close file and then stop the recording of the action.
    Select a bunch of files in Bridge, choose menu tools / PS / Batch and select the action you want to apply and hit OK.  In case of 100 + files go for coffee, otherwise watch the magic happen…

  • LR4 Beta...another problem with using Lens Correction

    Not sure if it's me or the beta. I'm trying to do a lens correction on a file that was edited in CS5. The photos were taken in 2009/10. They are importing as Process 2012.
    I'm using the Lens Correction in manual. About 15 seconds after I start using the sliders, my LR stops working and I have to close the program (white outs the screen with the note saying the program has to be closed).
    I do know there can be problems with a beat so I wanted to post this problem in case it is a bug in the system.

    I have the same probem if I try to push the scale slider down below about 87%.  It is quite annoying when it keeps happening on the same photo. It's not something I use a lot but it can be necessary with tall buildings when the correction pushes the top out of the frame.
    JW

  • Why are no Pentax lenses in the Adobe Camera Raw lens profiles when processing JPG files?

    I normally shoot and process raw files and use the latest version of Adobe Camera Raw for processing. Some of these files are converted to jpg for use on the net or e-mailing etc. Sometimes I want to make minor changes to the now converted jpg file and often go to Adobe Camera Raw for ease and speed of use. Lately I have gone back to some files that were not thoroughly processed as raw files before conversion to jpg. When, in ACR, I go to Lens Corrections panel, Profile tab, I Enable Lens Profile Corrections and choose Setup: Auto (or Default) and get the message, "Unable to locate a matching lens profile automatically".
    I then go down to Lens Profile and click on Make with the intention of choosing the Pentax lens which I used for the photo. Here is the problem - there are only six choices under make, namely Apple, Canon, Nikon, Sigma, Sony and Tamron. I have no such issues when processing a raw file in Adobe Camera Raw. Pentax lenses are automatically detected and Pentax, along with Leica, Samsung, Zeiss, etc. are choices under Make of lens.
    Do other people have this problem? Is there some setting I have missed? Is Adobe just not permitting some makers' lenses, for which there are profiles, to be corrected if the files are jpgs?
    BTW, I have checked and the same issues exist for tiff files opened in ACR.

    Assuming I read your post correctly, and that you're trying to use Lens corrections on JPEGs and TIFFs...  I believe there's a completely different set of profiles for correcting already "developed" images (such as JPEGs and TIFFs).  If I recall correctly (and it's been a while since I read about this), it's the same set that's used inside Photoshop for the Filter - Lens Correction tool (I hope someone here will correct me if I'm wrong, but I'm sure I read this somewhere).
    If your lenses are known to Camera Raw when you develop raw files, I suggest you will need to go all the way back to your Raw file and reprocess it from that stage.  You'll get a better result anyway.
    -Noel

  • Using lens correction in CS5 changes default file settings

    When I use lens correction in CS5, it switches the default file format from jpg to pdf.
    Now, that is simple enough to change back for a file or two, but it really messes up any worf flow. Batch processing using an action cannot include a simple "save" because due to the change in format it goes to "save as" and then every file would get named as the first one. If I just choose save and close in the batch options, the dialog to change file types opens after every file and it becomes a hassle. Is there a way to deal with this in a better way? Or is this just a matter of the trial version of CS5?

    Hi Joel,
    Are you talking about the lens correction batch script as invoked from the File>Automate>Lens Correction...? Can you describe your steps to reproduce the bug?
    Thanks,
    -Simon

  • How to keep lens corrections when sending images to Photoshop?

    I have a group of architectural photos shot in RAW format with a 10-20mm lens that I have applied lens corrections to in Lightroom 3.  When I open them in Photoshop using Bridge, the lens corrections go away.  I have had the same problem in using Photomatix Pro's batch processing mode to create HDR images.  If I select the trio of images from the filmstrip in Lightroom, right-click on them and then export them to Photomatix, the lens corrections stay, but if I close Lightroom and use Photomatix Pro's batch processing mode to select and process the images, then the corrections go away.  Any ideas?

    Lens correction is a function of acr, and LR communicates such settings with PS CS5 and above.  If you are on CS4, in order to keep them, LR must render them before sending on.
    The same reason you can't do batch processing from Photomatix, they don't understand LR processing without the current ACR, which is only compatible with LR3 and PS5 (and, one assumes, higher).  So when you export from LR, LR does the processing for you before sending on.. so you keep your changes.
    Same if you have CS4 or lower, LR would do the rendering for you.
    Does that make sense to you?
    Cheers!
    Message was edited by: Jasonized :  Correction, I meant a function of ACR.

  • Where can I find lens correction profiles for EF 17-35 f/2.8L lens using ACR 6.2?

    Using Photoshop CS5 Extended on iMac 10.6.4.
    I'm  working with wedding photos shot by a friend but I cannot find lens  correction profiles for Canon EOS 20D or the EF 17-35 f/2.8L lens. When I  search online it simply says "No online profiles found". Is there a  download for older lens profiles? I checked & I'm using ACR 6.2. I don't have the camera so there's no  way to take test photos to create my own profile. But, shouldn't there  be a profile available; the camera isn't that old?

    Go to DXO Pro and download the 30 day trial. It works very well for lens/body correction, and unlike Adobe, DXO maintains data on the older cameras and lenses. Updates will always have those available. Adobe is a latecomer to this part of the correction process, so as Ian said, no call, no supplier? Out of luck.
    http://www.dxo.com/intl/photo
    It's fair to note that DXO does not necessarily have a complete line of everything, like my Tamron 28 to 75 isn't available as a module. They do pay attention to demands, or lack therof,  that are not mainstream as well. But their offerings are excellent, and the tests, professional.

  • Lens Correction and Cropped Pixels

    I'm starting out as an architectural photographer, and as I don't yet have a perspective correcting lens to adjust images in-camera, I need to use the Lens Correction tools in Photoshop and ACR.  I prefer to use them over the Free Transform tool for the sake of accuracy (and convenience), but I do have an issue with the tools.  When I correct the perspective of an image and then process, whatever extends beyond the boundary of the canvas winds up being automatically deleted, and it seems as if there's no setting to prevent this from happening.  As there is sometimes a piece of a photo that I would like to be able to retain (i.e. extra sky, the top of a building, etc.), I understand that I can scale down the image in the Lens Correction tool and then re-crop after processing.  Of course then this causes the image to still be smaller than I would like it to be (in certain cases where the distortion correction is more extreme, an original 21MP photo might become a 12 or 13MP photo after processing in the Lens Correction due to scale-down).
    Is there any way that the Lens Correction tool will allow for pixels extending beyond the boundaries of the canvas to remain uncropped, thus allowing me to expand the canvas in order to reclaim the extra information?

    Yammer P, yes the list is shorter because it's a jpeg rather than raw, and we have more profiles for raw than for jpeg.
    For the set of lenses supported in CS5's initial release, we created profiles for both raw and jpeg. Since then, we have been concentrating on raw-based lens profiles, for a number of reasons (one of which is that we feel we can consistently deliver the highest quality results this way). This is why you see some lenses supported with raw & jpeg profiles, but many more supported with raw only.
    CS5's Lens Correction plug-in does indeed let you choose raw-based lens profiles even though it is processing a rendered file (e.g., jpeg, tiff). This will work in many (but not all) cases for distortion correction, but will often work poorly for chromatic aberration and vignette correction. I don't recommend this workflow and it is a key reason we don't let users mix/match in ACR & LR.
    Eric

  • Manual Lens Correction in Lightroom 4

    The Manual Lens Correction sliders in Lightroom 4 seem completely useless. They aren't working the same as they do in Lightroom 3. Instead of being able to fix keystoning of images, now the horizontal and vertical sliders just stretch or distort photos. Is this a bug? If not, is it possible to go back to the functionality from LR3? If this isn't possible, I'm probably going to switch back to Lightroom 3, since this is one of the program's most useful features.

    Lee Jay wrote:
    ... This functionality hasn't changed at all for me - it works exactly as before.
    I think so, too.
    See my example in the feedback forum demonstrating the different effect of the manual transformation sliders depending on the angle of view: http://feedback.photoshop.com/photoshop_family/topics/i_would_love_automation_in_the_lens_ correction_manual_panel : There is an automatic aspect ratio correction, and for photos taken with a rather small angle of view, this is mostly a stretch/distort. Which is totally correct IMHO (and hasn't changed since LR3).
    P.S. I don't know which angle of view LR assumes for photos w/o information about focal length and sensor size (probably 50mm focal length and 35 mm film format ("full format") sensor.

  • Lens Corrections unavailable in Adobe Camera Raw 8.3

    hello,
    since i switched to photoshop CC (mac version), i am having constant problems with lens corrections in ACR 8.3. i am a professional photographer and i use various canon pro lenses that all exist as unique lens profiles already in photoshop and ACR's lens profile archives. when i open canon .CR2 files in adobe ACR 8.3, i encounter the message "unable to load lens profile" at the bottom right of dialog box and even though the correct lenses are identified, ACR cannot apply corrections (please see the attached visual). furthermore, this behavior happens to be sort of erratic, since it may sometimes decide to apply corrections without displaying the "unable to load lens profile" error message.
    when i open the files into photoshop CC without being able to apply corrections, i try the "lens correction" menu within photoshop and it works. it is very cumbersome not to be able to do this at the ACR stage.
    the ACR that came with photoshop CS 6 never had such problems and it corrected all the lenses that i had.
    can you please help me to fix this issue ASAP, since this error makes me lose a lot of time in my workflow.
    i also have photoshop CS6 installed in the same disk, could this have any effect?
    best regards,
    murat germen

    Presumably you're shooting raw for everything, right, otherwise the issue can be that most raw-capable-camera's JPGs don't have lens profiles whereas raw files do, so profiles are found for raw images but not JPGs.  The reverse is sometimes true, too, where a camera used to only have JPG output but now produces raw files.  I believe the DJI Phantom Vision FC200 quadcopter camera is an example of such.  The screenshot doesn't have enough of the ACR interface to see the name of the file.
    Are the profiles that aren't found consistently the same lens or are they from various lenses that also have photos that work in ACR 8.3 at other times?  And do the same photos that fail to have lens profiles load in ACR 8.3 at one point then work if you open them again, later?  In other words does the intermittency seem to be tied to either the specific photos or the specific lenses or not?  Specific photos could mean there is something corrupted in the photo.  Specific lenses could mean that the lens profiles are missing, somehow, or inaccessible due to permission problems.
    Is CS6 updated to the same ACR 8.3 version or is it older?  If it is older then install the ACR 8.3 update for CS6.  This will re-install the lens and camera profiles, again.
    If CS6 is already updated to ACR 8.3, too, then install the DNG Converter 8.3, which also will install the profiles, again.
    The DNG Converter can be found, here:
    http://www.adobe.com/downloads/updates
    If you can't figure it out, then uninstall PS-CC, log out of the CC Desktop app, log back in--so it sees that CC is missing, then re-download and install CC.  This should reset ACR back to 8.0 or 8.1 after which you can install the ACR 8.3 update, again.

  • ACR 8.7 release candidate, Nikon D750, Lens corrections tab

    I capture images using a Nikon D750 & AF-S NIKKOR 24-120mm f/4G ED VR lens with image quality set for NEF (RAW) + JPEG fine & image size set for Large. Slot 1 card saves the NEF files & slot 2 card saves the JPEG files. I download the images using Bridge CC Photo Downloader converting the NEF to a DNG while downloading. When editing the DNG image using the Lens Corrections tab in ACR it correctly recognizes the lens. When editing the JPEG image the same way it incorrectly identifies the lens as an AF-S NIKKOR 14-24mm f/2.8G ED and does not offer a choice for the correct lens. I hoping this can be fixed soon. A workaround that seems fairly accurate is to choose the AF-S NIKKOR 24-70 f2.8G ED instead for the JPEG images.
    I recently had to install Camera Raw 8.7 for CC Release Candidate Version: RC 1, Date: October 2, 2014 to recognize the D750 NEF files.

    What you’re seeing is normal.  Most lens profiles from Adobe are for RAW files only.  Many cameras do their own corrections, nowadays, so Adobe cannot assume the raw profile would work for JPGs from the camera as a general case.  For example with my new Canon 7D Mark II, which I'm awaiting raw support for at all, I can select vignetting, chromatic-aberration and geometric distortion correction as separate items on the menu to be used for producing camera JPGs.  Adobe doesn't attempt to interpret such proprietary information and apply the appropriate correction for corrections I haven't already asked the camera to do, they just don't supply a lens profile at all for JPGs.  The kit lenses for some cameras seem to be the exception to this, as well as a few other lenses, which I'm not sure why they've supplied profiles for.  You can also download profiles others have created, themselves, using the Adobe Lens Profile Downloader which you can find on the adobe.com site.
    If you are confident you won't ever have distortion or vignetting correction enabled on your camera for the JPGs it produces, then you can hack a copy of the Adobe-supplied raw profile for a particular lens to be for non-raws, by changing the whateverRAW tag from True to False, and put the modified profile in the user-created profiles area of your computer and it’ll be seen and used.

Maybe you are looking for