Hi everyone
Is there a way to export a file in Illustrator as PNG with 150dpi?
Thank you very much in advance
Manuel
Hi everyone
Is there a way to export a file in Illustrator as PNG with 150dpi?
Thank you very much in advance
Manuel
Hi. Illustrator CS3 can export to PNG but not at user-specified resolutions by direct AppleScript commands; it can export to Photoshop format with a set resolution or it can be made to call an Action that saves a PNG with a set resolution, which requires a little extra setup. I don’t know if the direct route to accomplish your request was later made possible under one of the subscription scheme versions.
I think, no extra setups will be needed, and AppleScript can do just fine with this task:
Export the image as PNG24, using Illustrator command Export and save it in the Temporary Items of the user domain.
Convert PNG24 to a resolution of 150 dpi using the Sips utility, and save it at the final location.
I removed the Illustrator from my Mac, so I can’t provide and test 1st step.
The 2nd step is something like this:
set pngFilePath to "'/Users/123/Desktop/Png-24-bit-image-generated-from-mapserver-at-400x300-size.png'" -- is quoted form of the path
do shell script "/usr/bin/sips -s dpiHeight 150.0 -s dpiWidth 150.0 " & pngFilePath
Thank you very much guys!!!