Question
How to "save as" a smaller size via .jsx scripting code in Photoshop?
When you bring up the "Save As" dialog box in Photoshop, it gives you the option to save the Photoshop document as a smaller file size. So let's say my original Photoshop file is 4000 x 4000 px. I can decide to save it as 25% the size, or as a 1000 x 1000 px JPEG.
Is there a way to get the same functional equivalent via the jpgSaveOptions in .jsx scripting code?
Presently here is my code for this section:
var jpgSaveOptions = new JPEGSaveOptions();
jpgSaveOptions.embedColorProfile = true;
jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
jpgSaveOptions.matte = MatteType.NONE;
jpgSaveOptions.quality = 5;
Is there some additional option that can give you the same functional equivalent of reducing the final image size?
Also note that I could just resize the original Photoshop document itself. Since it contains a Smart Object, for whatever reason, I've found that when I batch-replace the Smart Objects with JPEGs at this smaller document size? It creates all kinds of weird image artifacts and distortions that you for some reason don't see when you FIRST save it at the full original size, then resize AFTER the fact by reducing the JPEG image. That's why I'm trying to get that same functional equivalent, but by condensing it into this one step vs. needing to do this in 2 steps via a second batch.
Thanks!
