I'm working on a map series in Illustrator that involves using a client's camera icon. The icon is a very small GIF file, and finished maps will be output for on-screen only viewing. The problem that I'm having is that Illustrator anti-aliases the image when exporting the final PNG files, which makes the line work look good, but it often messes up the clarity of the raster camera icon. I can turn anti-alias off, which helps the icon, but then the line work looks bad. However, I've noticed that occasionally the icon is placed in such a location that illustrator doesn't anti-alias it on output... my question is: Is there any way to make the icon snap to a pixel grid, such that its in the exact position needed to prevent anti-aliasing? Any ideas on how this might be done? Can I selectively tell Illustrator to "anti-alias this object, but not that one"?
The sample below is a zoomed in area of the exported PNG showing a bunch of the camera icons. Most get some sort of anti-aliasing, causing them to look blurry. Two of them (upper left and upper right), however, didn't, and they look great. The icon is being placed at a 1:1 ratio, so that 1 pixel in the icon should theoretically be able to be mapped to 1 pixel in the final image. I just need to figure out how to place the icon so that Illustrator doesn't try to split it between pixels. How do I make this something I intended to do, rather than just a happy accident?
camera.png 32.94K
88 downloadszoomed in view of my problem icons
1to1.png 19.8K
50 downloads100% view of the same area, as the icons will appear on screen
Interestingly enough, I've tried turning on Illustrator's "pixel preview" mode, and this anti-aliasing doesn't show up. In fact, the icons actually do shift position just a hair so that they correctly align to the pixel grid. Unfortunately, this behavior doesn't actually follow when exporting the PNG
Thanks in advance for considering my dilemma!


Sign In
Create Account

United States
Back to top
Sweden
Netherlands
New Zealand
No Country Selected
Spain








