Skip to main content
Participating Frequently
June 10, 2010
Question

how to set dpi in png24 while exporting

  • June 10, 2010
  • 1 reply
  • 1565 views

how to set dpi in png24 while exporting  javascript

This topic has been closed for replies.

1 reply

Larry G. Schneider
Community Expert
Community Expert
June 10, 2010

It's not exposed to scripting. The best you can do is use the scale function and then resize with a batch function in Photoshop.

Muppet_Mark-QAl63s
Inspiring
June 11, 2010

As Larry and others have said before… You do NOT have option about resolution from Illustrator's export to bitmap format files with the exception of 'psd' the rest are all 72dpi so you need to use math with a scale factor. If your requirement is that they will need to be resized in Photoshop afterwards to a certain dpi then you could just rasterize the files in Photoshop with pdf open options…?

Participating Frequently
June 11, 2010

I m using this code ..

var exportOptions = new ExportOptionsPNG24();
   var type = ExportType.PNG24;
   sourceDoc = app.activeDocument;
   var fileSpec = new File(i+"_"+sourceDoc.name);
   exportOptions.antiAliasing = true;
   exportOptions.transparency = true;
   exportOptions.saveAsHTML = false;
   exportOptions.verticalScale =181;
   exportOptions.horizontalScale = 181;
   app.activeDocument.exportFile( fileSpec, type, exportOptions );

i want to also set dpi  when i use scale option  and my pixel size increase but my dpi size is not changing

and i want to change my dpi in adobe illustrator javascripting

please help me