

With the 3 scripts above, I can make my own script now.
Making a photoshop image resize script how to#
One reply in this page talked about how to merge all visible layers, since I will not use any invisible layers, this will do though. There is one thing not mentioned in previous scripts-how to merge all layers. I don't need adjusting since my watermark is exactly the same size as canvas size, so I can use this script after deleting some steps. This script can add watermark to images and adjust watermark position. This script can bulk adjust image size and canvas size and do something more and save them in new folder, I can modify it for my use. Batch resizing image size and image canvas I found 3 JavaScript scripts for Photoshop that might be useful on Google. JavaScript scripts for Photoshop that I found online

Let's start copying, no, start learning some tricks then. How convenient that I happen to know one of these languages! Among scripts used by everyone, JavaScript is always number one! (Said by myself) Then I saw this post that said you can use Photoshop Scripts to do this, so I did some research on this and found that Photoshop accepts 3 scripting languages: AppleScript, JavaScript and VBScript. The result comes back positive, but there are only a few conditions to use, and they still cannot solve my problem. So I Googled relevant information to see if it is possible to customize Actions to meet my requirements. If Actions fails at the first step, then there is no need to do the rest of the steps. This function cannot adjust image size and canvas size according to image shape, and the images that I have to process don't share the same shape, some of them need resizing based on their width, some on their height. Actions can record and play repeating steps, I can use it to adjust image size and canvas size, or even add watermark image, merge layers and save in new folder.īut Actions has its limitations. I have used Actions when I had to shoot photos and edit them all by myself. Recently I need to add watermarks for a batch of images, I started to wonder if there are some technical methods to speed up this process after manually finished 3 images with Photoshop. This is a translation of my original article 用JavaScript写一个Photoshop批处理脚本.
