Hello everyone.
Please help me write a script for Photoshop.
It has a built-in script for straightening and cropping, but it crops the object tightly and opens it in a new file.
Help me write a script that makes from picture 1 to picture 2. The background is always black. There should be fields around the picture from the background in the size of 8px. So that I can run the script and it will do it with the current picture and save everything.
The result below comes from the provided script using your example jpg as the source.
The result may vary depending on your setup (it was tested on an older version of PS) and any actual content on the white papers.
There where some white parts in the upper left corner edge of the image that had to be compensated for. The script should ignore smaller white areas, but try to keep the entire background mostly black for consistency.
scriptTest copy.jpg (24.96 KiB) Viewed 14468 times
dpaintArexx wrote: ↑Tue Dec 17, 2024 10:25 pm
The result below comes from the provided script using your example jpg as the source.
The result may vary depending on your setup (it was tested on an older version of PS) and any actual content on the white papers.
There where some white parts in the upper left corner edge of the image that had to be compensated for. The script should ignore smaller white areas, but try to keep the entire background mostly black for consistency.
scriptTest copy.jpg
cropBlack8px.zip
Hello. Thank you very much. Please tell me on which version of PS this script works? I couldn't run it on 2022 and 2019.