Skip to main content
MacRaz65
Participant
September 9, 2011
Answered

Creating PNG with ExportOptionsPNG8

  • September 9, 2011
  • 1 reply
  • 740 views

Hello,

I've created a script that draws me some artwork and then exports to JPG or PNG according to user choice. However, the PNG file that I can create using ExportOptionsPNG8 (or PNG24) is very poor quality. If I do a manual export and create a PNG I can select the highest res in the options dialog and get a good result. Is there any way to set the high quality setting through the script using the ExportOptionsPNG8?

Hope someone can help.

Thanks

This topic has been closed for replies.
Correct answer Muppet Mark

Most of the exports are based on 72dpi and don't have a resolution option available like the GUI does… This has been much talked/complained about over the years… You use the scale and calculate your way out… For PNG you do have the option of using 'image capture' instead that way you can set the res… It comes in handy for creation of scriptUI graphics too…

1 reply

Muppet MarkCorrect answer
Inspiring
September 9, 2011

Most of the exports are based on 72dpi and don't have a resolution option available like the GUI does… This has been much talked/complained about over the years… You use the scale and calculate your way out… For PNG you do have the option of using 'image capture' instead that way you can set the res… It comes in handy for creation of scriptUI graphics too…

MacRaz65
MacRaz65Author
Participant
September 12, 2011

Fantastic, just what I needed. I used the ImageCapture method you suggest and learnt about setting artboard size to visible bounds in the meantime so I get the file clipped exactly to the artwork.

Thanks