Solved

Illustrator CS4 and no Sharp Lines

Posted on 2010-08-24
5
744 Views
Last Modified: 2013-12-02
I was using a banner template in Illustrator CS4. Please keep in mind there really is no purpose for mentioning that only to say that I am building a banner. I don't think it is causing my problem, but you never know. The problem exists regardless of using a template or not.

The problem I am noticing is that when I go to save to web my 1 pixel border in squares with a stroke of 1 pixel seem to have almost like a shadow. You can especially see it when you zoom when you are on the save screen.

Photoshop does not have this issue and I get really clean lines. I normally make my banners in Photoshop, but being forced to use Illustrator because that is what someone else is comfortable using. Anybody encountered this problem where lines are clean when saving a graphic for web use. Here is an example. It should just be solid black.  Example Image
0
Comment
Question by:tarrigo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 26

Accepted Solution

by:
David Brugge earned 250 total points
ID: 33516912
Hi Terrigo.
 
 Here is what is going on. No doubt you are used to Photoshop and  understand how you start with a canvas full of white pixels. As you  build your image, you change those pixels to whatever color your image  needs them to be.
 
 Illustrator works a little different. It creates a mathematical model of  your image, there are no pixels. Illustrator was originally designed  for artwork intended for printing presses. When you send your file to an  imagesetter that creates artwork at 3200 dots per inch, the Illustrator  turns your artwork into THAT resolution.
 
 When you take that same artwork and turn it into a jpeg for the web, it  tries its best to give you the size lines that you defined in your  artwork. For instance, if your line is one and a quarter pixels wide, it  will give you a line of dark pixels and next to it, a line of pixels  roughly one fourth as dark.
 
 If your line is not exactly on top of where the pixels on the screen  are, then you will get the results that you have in your example.  Illustrator is just trying to follow your instructions as best it can.
 
 BTW, even though Illustrator lets you define measurements in pixel  widths, these are approximations. By definition (depending on what you  have set in your preferences) a pixel is 1/72 of an inch, however this  is one of those fractions that does not convert cleanly into decimal  notation and there is always a bit of an error which can show up in your  files.
 
 I have a work around in mind, but let me try it out before I post it.
 
 - David
0
 
LVL 22

Assisted Solution

by:Sigurdur Armannsson
Sigurdur Armannsson earned 250 total points
ID: 33516920
When Illustrator came out in 1986 there was no talk about any internet or web. This is a problem which results from how Illustrator draws by vector paths.

The thickness of the line is divided on both sides of the path and therefor does not fit into the pixel size and makes anti-alias.

You could prevent this by drawing only by fills. That is, when making a frame you make a box of correct size and filled with black and inside you draw another one -x pixels. Then you can use the Pathfinder to use the white box to cut a hole into the black box.

You could also try make the path be drawn inside the path. Look at the Stroke panel for that.

This is however cured in Illustrator CS5 (align path to pixels)

Excellent article by Mordy Golding about this: http://rwillustrator.blogspot.com/2010/08/when-pixels-snap-antialiasing-in.html
0
 

Author Comment

by:tarrigo
ID: 33517542
I had a feeling this was the case. I tried to explain this to those who want to use illustrator solely to create banners and well, you know how it goes.

This is good info though. Might have them purchase CS5 and let them know if they want this problem solved or to have as good a lines as I have been producing in photoshop, we need to upgrade. I create all my banners in photoshop and do illustration in illustrator normally. Go figure.

0
 

Author Closing Comment

by:tarrigo
ID: 33517548
Thanks for the help. I have what I need to learn and investigate more on a much more sensible path.
0
 
LVL 23

Expert Comment

by:jeremyjared74
ID: 33517581
If you are going to try using the fill method mentioned above, there is a much more simple way to achieve this. You will make your box the size you want, with a stroke just like you wish. Then select the box and go to object in the top menu and select path/offset path. That is an easier way to achieve the "fill method" mentioned above. Either way you will have the same outcome. I think Illustrator is great if it is used for what it is good at. Illustrator is more of a Logo, or decal, or any type of artwork that needs to be printed with crisp lines. Many printers require artwork to be Vector. Illustrator remains vector when saved as an eps, pdf, .ai,. When you try to save it as a jpeg, png, gif, it is possible, but the results aren't as good as if you saved it through Photoshop, or another "Raster" program.

My suggestion is to do the artwork in Illustrator, save your work as a .ai, or eps. Then open the .ai, or eps in Photoshop to save for the web. I haven't attempted to make Illustrator work for the web, because it is so simple to just open it in Photoshop and handle it that way. Someone might know a trick but for me design in Illustrator, open and save for web in Photoshop.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

HOW TO CREATE A WEB 2.0 IMAGE WITH A REFLECTION I would like to start by saying I know Web 2.0 isn't a style. It is actually the practice of information sharing or  collaboration on the Web. It is also associated with the technology that is used …
Because of still there more are people in the world using Adobe Illustrator older versions like CS & CS2 I wish to forward this article.. Since a long time Adobe Illustrator CS, CS2 has released, sometimes that there was a problem when someone tr…
In this tutorial viewers will learn how to create layer styles in Photoshop to easily apply effects to multiple items. Open a document in Photoshop: Apply layer styles to a layer by right clicking the layer in the Layers window and selecting "Blendi…
In this tutorial viewers will learn how to type text that isn't in a straight line by using the Type on a Path tool in Illustrator Open a document in Illustrator: Draw a path for the text to be typed upon. Don't worry about the fill or stroke as the…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question