Skip to main content
Chris@LC
Participant
August 25, 2020
質問

Is there a way to add padding to the automated crop and straighten photos?

  • August 25, 2020
  • 返信数 2.
  • 9615 ビュー

I have scans of hundreds of photos, with nice white borders on a black background, that need to be cropped and straightened and would like to use the automated crop and straighten photos tool. BUT I need to leave a border around the photo's edge (10-20 pixels). Is there a way to have that action leave space in its auto crop? I don't want to crop the image and then copy it into a new image to create an artificial border, I need to retain the original background. I'm currently using CS6, but can get access to the newest version of Photoshop if needed. I have attached an example of the original (69348.jpg), the auto crop and straighten (69348auto.jpg), and the way I want it to look (69348proper.jpg).

 

Any help would be greatly appreciated as I will have a lot more like this in the future.

このトピックへの返信は締め切られました。

返信数 2

JJMack
Community Expert
Community Expert
August 25, 2020

You example and your process description do not belong to together.

You first image look like you used a flat bed  scanner with a gray background to scan a print at 300 DPI print resolution. images 69348

You Auto process removed gray background straightened the Image a trimmed the Transparency image 69348auto

Your third image is  the auto image with a resized canvas  to make the image the desired 10" x 8" 300 Print size. 69348propper

The canvas Color can be any you want.

 

The was no cropping done there would be no borders added if the scan print was  10" x 8" paper  size can camg ams net bi be a perfect 10" by 8" in this case the canvas was sized up 101.46% of the scan sizeled the 1.5%. 

 

Action can not use logic to deal with image size.  Actions are recorded Photoshop steps the step are record on a single size document and the steps are record for that size image.  If all you scans are not of 10" x 8"  prints.  You will either need to use Photoshop scripting to deal with Image size, or record an action for each scan print size and batch process one print size size scan at a time. 

JJMack
Chris@LC
Chris@LC作成者
Participant
August 25, 2020

Thanks for the comments, but I wanted to clarify a some things. Yes, I used a flat bed scanner with a gray background to scan a print at 300 DPI. The "auto" image was made by simply running the Crop and Straighten Photos tool under Automate and saved. The "proper" image was just manually straightened and cropped. The canvas was not resized and no border was added. As for the size, most of the scans are of 8x10 photos, but the end product does not need to be any specific size. 

 

Basically I'd like the Crop and Straighten Photos tool to 1) Straighten the image, 2) Find the spot it would normally crop, 3) Push those crop lines back 10-20 pixels in all four directions, and then 4) Crop. I figure scripting may be necessary. 

JJMack
Community Expert
Community Expert
August 25, 2020

Again what you write is wrong.  You can not add boarders if there is no canvas to add them onto.  Canvas was added.  All you need do is look at the documents you posted Image size. clearly proper image canvas is larger than auto image.

 

Yes that is the name of the tool/feature. What is cropped is not the scanned images its the scanners gray background. The image is not cropped.

JJMack
melissapiccone
Community Expert
Community Expert
August 25, 2020

It is leaving the white border - you mean you want the extra black background in the images?? There is no way to do this with the automated crop and straighten. You could create an action to enlarge the canvas after the fact but you can't do what you are looking for in your propper image except by hand that I'm aware of. 

Melissa Piccone | Adobe Trainer | Online Courses Author | Fine Artist
Chris@LC
Chris@LC作成者
Participant
August 25, 2020

Yeah, the extra black background. I kind of figured that was the case. Hoping maybe someone with scripting knowledge might have developed something.

TheDigitalDog
Inspiring
August 25, 2020

I'm with Melissa, do the crop as desired, then just make an Action to extend the canvas by X number of pixels or percentages etc. Be sure to set the bkgnd color as desired.

Once you have the action, you can then run a batch on a folder of cropped images. 

Author “Color Management for Photographers" & "Photoshop CC Color Management/pluralsight"