

$$$/JavaScripts/ToSquareCompress/Menu=Resize images to Square and Compress.Registry registration path to modify the registry path when you install PS cc for yourselfĪpplicationpath, Pluginpath, such as the path must be changed to install the PS cc path, note the double quotation mark ("") in the number of slashes (,) to 2 oh.Īt the same time some people say to open PS to install, my installation success is open, not sure whether it must. Get images from a folder recursively resize to square and compress with tinyPNG TinyPNG really does a good job at compressing images. Now let it run (can take pretty long with a lot of images) To batch resize and compress all pictures in a folder (even subfolders) you first need to open a picture of the root folder in photoshop, then press the "Resize images to Square and Compress." button, a dialog will appear which prompts you to choose the folder. Now you should see a new option in the File -> Automate section (if not restart PS). jsx file and put it in your Photoshop -> Presets -> Scripts folder. How to use: First of all you need to buy the tinyPNG Plugin or use your own export logic (say Standard Photoshop Web Export), then save the code as a. On the left side you can see the original one and on the right the resized and compressed one: With the script it's possible to transform a portrait mode or landscape mode image to a square (works by resizing the pic and extending the canvas) with the dimensions of your choosing (in this case 2000x2000), so every image looks equal in a shop system. I actually went with something different: The script now opens a folder, gets all the jpeg, png and tif images in there, resizes them to squares with a white canvas (nice for woocommerce and other ecommerce systems), compresses them with the tinyPNG plugin and subsequently overwrites the existing files, this way folders don't have to be created on the fly and the pictures stay in the same folder, you just need to copy all your original images and let them be overriden.
