: Automation: how to scale and place a images in the given area? I have two thousand PNG images. I need to scale up the images to place it inside the whitebox; also the edges of the images
I have two thousand PNG images. I need to scale up the images to place it inside the whitebox; also the edges of the images should touch the red color in any two sides (shown arrow below)
how to automate this in Photoshop? Or is there any other software?
Sample images are given below:
The output should look like this:
More posts by @Harper654
1 Comments
Sorted by latest first Latest Oldest Best
If your template has a fixed size for all of them. you could use absolute coordinates on actions to achieve this.
Record an action with the following steps (assuming all of your images are horizontal rectangles)
Open the image
Steps to generate or paste this red template
Rescale the image to fit the desired borders, set up only horizontal size so the aspect ratio is kept intact.
Set the anchor point to the leftmost point of the rectangle
Type in absolute pixel/cm/in coordinates for the horizontal position
Create a selection with absolute coordinates regarding the white area
Align to center
In case of vertically oriented images, i'd create two separate action sets for horizontal and vertical images. Although i don't think this is an elegant approach, but it would work pretty well.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.