Answered
Set width size of exportPNG24 with scripting
I'm exporting a png 24 image but I'd like to set hte width size. In the documentation it only specifies scale but not an actual size in example 1400.
fileTypeSmart = ExportType.PNG24;
exportOptionsSmart = new ExportOptionsPNG24();
exportOptionsSmart.transparency = isTrue(settings.png_transparent);
app.activeDocument.exportFile(new File(imgPath.replace('.jpg', '-smartObj.png')), fileTypeSmart, exportOptionsSmart);
Is there away for me to add a width?
I attempting this:
exportOptionsSmart.width = 1800;
But it does not function.
