Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Specify Size of Image via ExportOptionsPNG24 ?

$
0
0
Hi!
In documentation (ADOBE ILLUSTRATOR CS4 SCRIPTING REFERENCE: JAVASCRIPT)
the ExportOptionsPNG24 does not have any property for
width/size/dpi/pixel (just scale).

Is there a way (like in the "Save For Web" dialog) to specify the size of the exported PNG in pixel or filesize?

var options = new ExportOptionsPNG24();
options.antiAliasing = true;
options.transparency = false;
options.artBoardClipping = false;
var file = new File(folder+"/"+layer.name+".png");
document.exportFile(file,ExportType.PNG24,options);

Or does the script take the values from last manual PNG export?

Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>