Tuesday, June 2, 2020

#1 2020-03-26 10:15:00 am

Marth
Member
Registered: 2009-06-19
Posts: 61

Export Illustrator File as PNG with 150dpi

Hi everyone

Is there a way to export a file in Illustrator as PNG with 150dpi?

Thank you very much in advance

Manuel

Offline

 

#2 2020-03-26 07:12:32 pm

Marc Anthony
Member
From:: Dallas, TX
Registered: 2006-04-27
Posts: 944

Re: Export Illustrator File as PNG with 150dpi

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.

Last edited by Marc Anthony (2020-03-26 07:13:54 pm)

Offline

 

#3 2020-03-27 12:03:17 am

KniazidisR
Member
Registered: 2019-03-03
Posts: 1259

Re: Export Illustrator File as PNG with 150dpi

I think, no extra setups will be needed, and AppleScript can do just fine with this task:

1) Export the image as PNG24, using Illustrator command Export and save it in the Temporary Items of the user domain.

2) 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:

Applescript:


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

Last edited by KniazidisR (2020-03-27 02:47:31 am)


Model: MacBook Pro
OS X: Catalina 10.15.4
Web Browser: Safari 13.1
Ram: 4 GB

Offline

 

#4 2020-03-27 08:04:25 am

Marth
Member
Registered: 2009-06-19
Posts: 61

Re: Export Illustrator File as PNG with 150dpi

Thank you very much guys!!!!

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)