Using JavaScript, cannot export png24 with 300 ppi
I have a document that I can export manually with 300ppi resolution, just like it's set in Effect -> Document Raster Effects Settings...
But when I use script, it always seems to default to 72ppi. I tried every other file format and it always sets to 72. Tried using JPEG quality parameter = 100, still resolves to 72ppi.
my document size is 600x600 pt, one artboard, the artboard corners are set at integer values, either at 0 pt or 600 pt.
Any help would be appreciated!
Here's my code snippet below:
function exportFileToPNG(){
if (app. documents. length > 0) {
var exportOptions = new ExportOptionsPNG24() ;
exportOptions.artBoardClipping = true;
var type = ExportType. PNG24;
var file = new File(filePath);
app.activeDocument.exportFile(file, type, exportOptions);
}
}
