Equal borders for non square images of different sizes.
Copy link to clipboard
Copied
Hello, I need to create a border on many (over a thousand) images of different pixel sizes. Most of the images are not square. The borders need to appear relatively proportional regardless of how big or small the image size is. Using an action that increases (relative) canvas size by percentage creates borders of the same proportion, but on images that are not square, the x and y borders are different sizes. (insert sad face here). Is there a way to do this in photoshop I am not aware of that works on non square images? There is an old post on this forum that asks this question, (https://community.adobe.com/t5/photoshop-ecosystem-discussions/need-action-that-makes-an-equal-sized...) and (https://community.adobe.com/t5/photoshop-ecosystem-discussions/action-that-uses-a-percentage-of-imag...) but the answers involve scripting and honestly I did not understand... Thank you in advance.
Explore related tutorials & articles
Copy link to clipboard
Copied
If I understand your question correctly, the answer involves scripts, as actions have limitations. From what I gather, you want equal-sized borders based on a certain percentage of (here's the question: what? Width or height?) for any image dimension. It might be possible to achieve this using actions, but I'm not aware of that possibility. My recommendation is to wait for scripters to respond to this thread.
@c.pfaffenbichler @Stephen Marsh @r-bin
Copy link to clipboard
Copied
Please provide a couple of meaningful examples (source-image and resulting-image).
Copy link to clipboard
Copied
...but the answers involve scripting and honestly I did not understand... Thank you in advance.
By ipanema451
Full instructions for saving and running scripts were provided in links to my blog.
- Copy the code text to the clipboard
- Open a new blank file in a plain-text editor (not in a word processor)
- Paste the code in
- Save as a plain text format file – .txt
- Rename the saved file extension from .txt to .jsx
- Install or browse to the .jsx file to run (see below)
https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html
Or If you prefer videos over text:
https://www.marspremedia.com/software/how-to-adobe-cc

