Photoshop-Export-Layers-to-Files-Fast icon indicating copy to clipboard operation
Photoshop-Export-Layers-to-Files-Fast copied to clipboard

Change to dpi?

Open melriksdesign opened this issue 3 years ago • 3 comments

Wonderful script. I see controls for Scale (width and height) and Quality (compression). Is there a way to change the dpi before saving?

We double purpose the psd files so the original psd is set to 160 dpi. I'd like to safe-to-file at 72 dpi.

melriksdesign avatar Nov 09 '21 17:11 melriksdesign

I found a hacky way to adjust it. Line 742. The second null needs to be changed from 'null' to '72'. app.activeDocument.resizeImage(UnitValue(width, "px"), null, 72, ResampleMethod.BICUBICSHARPER);

melriksdesign avatar Nov 09 '21 18:11 melriksdesign

Thanks for this, maybe we can add an option in the future to customize this through the dialog. Glad you found a workaround.

antipalindrome avatar Nov 09 '21 18:11 antipalindrome

Hello! I'm wondering if there's a way to save out pngs with the native resolution of the source file. My source file is 300ppi and similar to the above I'd like the resulting output to have the same (300ppi) resolution. I tried the above tweak editing the code to '300' instead of '72' but it's still resulting in a 72ppi export. thank you

Stellablue15 avatar Sep 21 '22 19:09 Stellablue15

Unfortunately we cannot save PNGs at any other ppi. This is a photoshop limitation if I recall correctly.

antipalindrome avatar Sep 25 '22 01:09 antipalindrome

Bummer! Thanks so much for following up with me.-joeSent from my iPhoneOn Sep 24, 2022, at 9:46 PM, Hanna @.***> wrote: Closed #177 as completed.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

Stellablue15 avatar Sep 25 '22 02:09 Stellablue15