Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Working with Pixel Preview and anti-aliasing

From: Illustrator for Web Design

Video: Working with Pixel Preview and anti-aliasing

One of the things that makes it so great about working inside of Adobe Illustrator is the fact that it's a vector drawing program and all of the artwork that we create inside of Illustrator always looks crisp, clean, and sharp. However, when we are delivering graphics to the web or to different screens, our artwork is not always going to look crisp, clean, and sharp, especially when they zoom in and zoom out on it using a tablet or a mobile phone device. So we have to sort of get around that and find a way for Illustrator to give us accurate previews of everything that's happening inside of our document.

Working with Pixel Preview and anti-aliasing

One of the things that makes it so great about working inside of Adobe Illustrator is the fact that it's a vector drawing program and all of the artwork that we create inside of Illustrator always looks crisp, clean, and sharp. However, when we are delivering graphics to the web or to different screens, our artwork is not always going to look crisp, clean, and sharp, especially when they zoom in and zoom out on it using a tablet or a mobile phone device. So we have to sort of get around that and find a way for Illustrator to give us accurate previews of everything that's happening inside of our document.

So in order to do that, we have to work with something called anti-aliasing, and we also have to work with something called Pixel Preview. The first thing I'm going to talk about here is anti-aliasing. Anti-aliasing refers to something that happens on computer screens where two areas of color are blurred together in order to simulate smooth edges. If we didn't have anti-aliasing, everything on your computer screen would look really jagged and just not good. So in Illustrator this is automatically applied to artwork that you have on your artboard. If I zoom in on this particular piece of artwork, you'll see that no matter how far I zoom in, every line and every curve looks really clean and sharp.

However, if I zoom in quite a bit on this and especially if I kind of hover over it, you can start to see this little jagged outlines that go around the outside of it. That's because I'm actually seeing the physical pixels that are on my monitor. But Illustrator does a great job of hiding those from me so that it appears that my artwork is always clean and crisp. So if I zoom back out, to like 200%, you can see here that everything looks fine. However, what happens when we turn anti-aliasing off? Let's take a look at that. I'll press Command+K or Ctrl+K on my keyboard to bring up the preferences dialog box.

And I'm simply going to uncheck Anti-aliased Artwork. And when I do that, you are going to notice that my artwork looks really chunky, and nothing looks smooth. You can barely read the text. The logo looks awful inside the robot. His eyes look like they were kind of gouged out, as opposed to being seamlessly cut. So anti-aliasing really does wonders for our artwork, in terms of how it appears on the computer screen. But it doesn't do wonders for us in terms of what it's going to look like when it goes to the web, because even though anti-aliasing does happen on the web, we don't necessarily need to see it at all times inside of Illustrator.

So let's turn this back on, and let's see how we can work with our artwork in a more realistic fashion. I'm going to zoom out to 100% by hitting Command+1 or Ctrl+1 on my keyboard. So I've got this logo here, and I want to see what this would look like if it was actually on the web. In order to do that, I'm going to utilize something called Pixel Preview. I'm going to go up to the View menu and choose Pixel Preview. And when I do that, you're not going to see a big change right off the bat, because of the fact that I'm zoomed to 100% and at 100% my artwork looks just as it should.

But what happens if I start to zoom in on my artwork? Check this out. I'll do Command+Plus or Ctrl+Plus. You can see it gets a little bit jagged. Command+Plus or Ctrl+Plus, a little bit worse; Command+Plus or Ctrl+Plus, a little bit worse; and that's because I have it actually representing what this would look like in pixels on a screen. So if I were zoomed in to 400% on this graphic online or using a tablet or mobile device, this is what it would like, because of the fact that it's made up of pixels. So any time you want to get an accurate preview of what your graphics are going to look like on the web, simply go up and turn on Pixel Preview.

Now one thing that you're going to notice about your graphics, especially when you're working with anti-aliasing, are these little things that I call ghosts. And if I zoom in a little bit more on this document, you'll see exactly what I'm talking about. Now in traditional design, when we're working inside of Illustrator, anytime I create a square, like this, I would see a nice sharp, crisp line. And I do see that right here on the edge of his face and up here at the top of his head, but I do not see that over here or over here or on the ear on the left. I see these little ghosted areas of gray. Now why is that? That is because my artwork is actually misaligned from this Pixel Grid, and so the anti-aliasing is kicking in to sort of make it blend in with the other objects around it to sort of smooth it out because it doesn't know what to do since it's not aligned to that grid.

So if I zoom out a little bit, you can actually see more of the ghosts around it. So how do I get rid of that? Well, I have to make sure that my artwork is aligned to this Pixel Grid in order to snap it back into place. And that's why when you're creating a new document in the New Document dialog box, File > New, you always want to make sure that Align to Pixel Grid is set to Yes. If this is set to No, you want to go to the Advanced setting and you want to go ahead and check this box right there. So if this is not checked, you're kind of in trouble. So I'll hit Cancel, and now how do I fix artwork that's already inside of Illustrator like this? Someone sends me this, and they open it up, and it looks like this when zoom in. How do I fix it? Pretty simple actually.

I'm going to hit Command+A or Ctrl+A on my keyboard to select it all, and you can actually see when I select it that the path sort of goes in between this little pixel. The grid that you're seeing is the individual pixels, and so this one falls right in between these pixels, this one is misaligned in this pixel, and so forth. And so what I need to do is snap that into the grid so that this creates a nice crisp, clean graphic to then go on the web. So what I'm going to do is I'm going to bring up the Transform panel. And if you don't have the Transform panel out in your workspace, you can go to the Window menu and find Transform in the list, and it should look something like this.

I'll drag this out so you can actually see what I'm doing. With the Transform panel open, you simply want to have the artwork selected--and in this case I have everything selected-- and I'm going to just click this box. And watch what happens right here on the edge of the robot's face. It snaps automatically to be nice, clean, and crisp, with no ghosting whatsoever. And so if I undo that, there is the ghost, and if I redo it, the ghosts go away. So now my artwork is completely aligned to the Pixel Grid.

It's going to be "pixel perfect," once I'm ready to send it out. And anytime I need an accurate preview of what that's going to look like, I turn on Pixel Preview. So hopefully by now you have a better understanding of what anti-aliasing is, what it does, and how it helps you, but also how to turn it off and work with your graphics in their true form by checking out Pixel Preview. Just remember to always go back and turn it off so that when you're zooming in and out of your artwork, you don't create those nasty headaches from trying to see those blurry graphics.

Show transcript

This video is part of

Image for Illustrator for Web Design
Illustrator for Web Design

67 video lessons · 25370 viewers

Justin Seeley
Author

 
Expand all | Collapse all
  1. 1m 13s
    1. Welcome
      50s
    2. Using the exercise files
      23s
  2. 43m 51s
    1. Designing for screens
      1m 57s
    2. Decoding screen size and resolution
      2m 40s
    3. Exploring the Illustrator to HTML workflow
      3m 42s
    4. Setting up Illustrator for web work
      6m 55s
    5. Creating a new document for web
      6m 25s
    6. Creating a new document for mobile
      3m 31s
    7. Using artboards for responsive layouts
      7m 42s
    8. Creating email newsletter documents
      4m 31s
    9. Working with Pixel Preview and anti-aliasing
      6m 28s
  3. 25m 28s
    1. Adjusting color settings
      6m 47s
    2. Understanding web color
      3m 47s
    3. Creating a color palette
      5m 4s
    4. Creating custom swatches
      4m 50s
    5. Working with fills and strokes
      5m 0s
  4. 13m 15s
    1. Exploring the Layers panel
      5m 21s
    2. Renaming and grouping layers
      7m 54s
  5. 24m 5s
    1. Drawing simple shapes
      4m 16s
    2. Working with Pathfinder
      5m 4s
    3. Using the Shape Builder tool
      4m 33s
    4. Creating symbols
      6m 24s
    5. Editing and replacing symbols
      3m 48s
  6. 20m 22s
    1. Planning your project
      2m 56s
    2. Using guides and rulers
      5m 56s
    3. Developing a layout with shapes
      6m 21s
    4. Using a grid system
      5m 9s
  7. 25m 53s
    1. Exploring the rules of typography
      4m 1s
    2. Using text as text vs. using text as an image
      3m 37s
    3. Understanding web-safe fonts
      1m 46s
    4. Creating and using paragraph styles
      5m 16s
    5. Creating and using character styles
      3m 2s
    6. Simulating the CSS box model
      8m 11s
  8. 21m 17s
    1. Understanding object appearance
      4m 43s
    2. Applying and editing live effects
      3m 34s
    3. Creating and using drop shadows
      3m 13s
    4. Creating more flexible rounded rectangles
      3m 17s
    5. Saving appearance as graphic styles
      6m 30s
  9. 35m 57s
    1. Starting with a wireframe
      5m 23s
    2. Adding master elements
      6m 45s
    3. Creating navigation buttons
      13m 34s
    4. Working with photographs
      5m 50s
    5. Simulating pages with artboards
      4m 25s
  10. 54m 45s
    1. Creating video placeholders
      10m 33s
    2. Creating buttons
      13m 1s
    3. Creating form fields
      8m 15s
    4. Creating radio boxes and checkboxes
      5m 11s
    5. Creating progress bars
      10m 12s
    6. Creating tabbed interfaces
      7m 33s
  11. 35m 28s
    1. Understanding slicing
      3m 26s
    2. Slicing up a mockup
      3m 6s
    3. Understanding web file formats
      5m 33s
    4. Exploring the Save for Web dialog
      3m 50s
    5. Optimizing photographs
      4m 29s
    6. Optimizing transparent graphics
      4m 43s
    7. Saving Retina display graphics
      3m 46s
    8. Exporting SVG graphics
      6m 35s
  12. 9m 29s
    1. Understanding image sprites
      3m 4s
    2. Creating a sprite grid
      4m 36s
    3. Optimizing sprites for the web
      1m 49s
  13. 15m 29s
    1. Placing Illustrator Smart Objects
      3m 22s
    2. Sharing color swatches between apps
      2m 9s
    3. Exporting Illustrator artwork as a PSD
      3m 49s
    4. Importing artwork into Fireworks
      2m 41s
    5. Exporting HTML from Illustrator
      3m 28s
  14. 1m 19s
    1. Taking the next step
      1m 1s
    2. Goodbye
      18s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Illustrator for Web Design.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.