What this is for is that, i have a lot of scanned documents with passport size photos in each of them. The photos are aligned randomly. I need to separate them out.
What i currently do is make selection using
polygonal marqueetool, then use
Free Transformto straighten it out and later crop, resize and save the pp photo.
I want to define an action that would automatically turn my selection into a properly aligned rectangle and crop the selection.
Is there a way to achieve this in a way better than my current way?
If you have Photoshop CS6 or newer, the Perspective Crop tool might be just what you’re looking for. Hit C to select the Crop tool, then Shift-C for Perspective Crop.
There’s two ways you can use this: Click the four corners of the item as you’ve been doing with Polygonal Marquee, or drag a rough rectangle around the item and then adjust the corners individually into the quadrilateral shape you desire. Then just hit Enter and Photoshop will re-perspectivize the quadrilateral into a perfect rectangle.
Source : Link , Question Author : Shashwat Black , Answer Author : DawnPaladin