Photoshop: Crop leaves white line

  • 1
  • Question
  • Updated 9 months ago
  • (Edited)
I am currently working on thousands of old family history shots. After scanning, (usually 2 photos at a time). I am using a crop and straighten script to process a folder full of images (I get the same result if I process individually using "Crop & Straighten")

The results are pretty good, but most images have a tiny white border around some or all edges (not always totally straight white edge either).

Google search results seem to indicate that this is a fairly widespread problem, but I haven't found a solution.

My thoughts were that using a content-aware crop to solve the problem might be one option. I tried a few manually, and it does seem to work. However, as I have thousands of images, I need to automate this.

What I'd like is to add say 1 pixel to all edges, then content-aware crop to fill the white line that was left by the original crop and straighten, PLUS the 1 pixel I've added. This would hopefully correct the images where the original white line was not consistently level.

Is this a feasible solution?

Any help (or alternative suggestions) would be welcome.
Photo of Colin McDonald

Colin McDonald

  • 61 Posts
  • 13 Reply Likes

Posted 9 months ago

  • 1
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14149 Posts
  • 1765 Reply Likes
Hi Colin, I could take a look at the script and a file to see what could changed. Care to post the script/sample file on dropbox or Creative Cloud and share the URL?
Photo of Colin McDonald

Colin McDonald

  • 61 Posts
  • 13 Reply Likes
Hi Jeffrey

Thanks very much for having a look at this. I've posted your original script (as I downloaded it yesterday), together with one file and the resulting three "cropped" images.

Not sure how to put it on Creative Cloud. I had a quick look, but I've not really used it so its at

https://1drv.ms/f/s!Atl_57cPp72shLVD8At373150AJAfA

Ta

Colin