Skip to content

Instantly share code, notes, and snippets.

View PierBover's full-sized avatar

Pier Bover PierBover

View GitHub Profile
@PierBover
PierBover / imageResizeSave.jsx
Last active August 29, 2015 14:25
Conditional resize image script for Photoshop. Creates thumbnail and large version and saves in JPEG.
var image = app.activeDocument;
var imageRatio = image.width / image.height;
// if your path has spaces you have to escape them, or use a path with no spaces
var folderThumbs = "/path/to/folder/thumbs";
var folderLarge = "/path/to/folder/large";
var thumbArea = {
width: 700,
height: 500