Skip to main content
Participating Frequently
October 6, 2012
Question

Anti-aliasing Type Optimized/Art Optimized on PNG export

  • October 6, 2012
  • 1 reply
  • 30396 views

Hello there,

I'm modifying a javascript that makes an export of each layer contained in an Illustrator document and I want to specify the method used for anti-aliasing (either Type Optimized or Art Optimized). Similarly to the option under the "Image size" tab in the "Save for the Web" panel.

I didn't find any antiAliasingMethod property in the ExportOptionsPNG24 properties (only an antiAliasing property that accepts boolean). So I wonder if it is actually possible to do it through scripting?

Many thanks,

D

This topic has been closed for replies.

1 reply

CarlosCanto
Community Expert
Community Expert
October 6, 2012

I don't see anything in the guide, does it create a big difference visually if you choose either option? I made a couple of test with simple images and text and saw a small variance. If you can tell them apart visually you can try to set either Art or Type manually before you run your script, since it remembers the last value you used, it may get picked up by the script too.

- change to Art manually

- run your script

- change to Type manually

- run your script

- compare results

DlmthAuthor
Participating Frequently
October 13, 2012

Thanks for your reply CarlosCanto. Your idea was interesting but it didn't work, the anti-aliasing method value hasn't been remembered when I run the script. Also, even if it worked the process would not be ideal.

 

The difference between the two anti-aliasing method is especially visible and important on type. Art optimized will render a blurry text and Type optimized a sharp one. Here's a comparison I just posted: http://i.eho.st/pp1jbclb.png

   

So I guess it is not possible to specify this value for the export but your idea made me think of an other possibility.

I always apply those filters on each text object (type and area type), so they all have a "Rasterize" effect that I can turn on and off in the Appearance panel. So before export all my text is optimized to render at 72ppi (with this Rasterize filter), the purpose of the script is to export that same design for retina displays (scale the design by 200%) so I'll need to turn the Rasterize filter off during this process–or my text will be all pixelated.

Would it be possible to:

    – Select all type and area type objects – visible and unlocked would be sufficient (I guess I've seen something about this in the scripting reference doc)

    – Turn off "Rasterize" effect – I read in a thread here that it was possible to manipulate any menu command of most Adobe CS applications but no reference was linked and I haven't been able to find one.

Thanks again for your help,

D

Inspiring
October 13, 2012

Untried but does does text antialias have any affect on output or is this only for screen render?