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

Optimizing photographs

From: Illustrator for Web Design

Video: Optimizing photographs

In modern web design we try to stay away from images as much as possible to alleviate the load times on our web pages. We design things using CSS and HTML techniques to simulate what images would actually look like, but we can never get away from actually using photographs. And so we need to be able to optimize our photographs out of programs like Photoshop and Illustrator to effectively display these images on the web at the smallest file size possible while still maintaining a decent amount of quality. That being said, when you start to bring photos into Adobe Illustrator I recommend that you optimize them ahead of time in a program like Adobe Photoshop in order to minimize the size of your Illustrator files as well.

Optimizing photographs

In modern web design we try to stay away from images as much as possible to alleviate the load times on our web pages. We design things using CSS and HTML techniques to simulate what images would actually look like, but we can never get away from actually using photographs. And so we need to be able to optimize our photographs out of programs like Photoshop and Illustrator to effectively display these images on the web at the smallest file size possible while still maintaining a decent amount of quality. That being said, when you start to bring photos into Adobe Illustrator I recommend that you optimize them ahead of time in a program like Adobe Photoshop in order to minimize the size of your Illustrator files as well.

However, if you do want to place high-resolution graphics into your Illustrator files, that's okay, because you can use the Save for Web dialog box in order to optimize out your JPEG images or photographs as well. Let's go up the File menu here and let's go to Save for Web. And let's say that I was going to export out this picture of a robot out for the web. And the first thing I want to do is make sure that I am exporting this out as a JPEG, because remember, JPEGs are the best file format for photographs. And once I do that, I am going to select JPEG High, first off, and when I select JPEG High, you are going to see that the Quality setting is set to High, the Quality is 60%, and you'll notice down here at the bottom that the Size is roughly 13.2K versus 146K of the original file, and that's okay.

What I am going to do now is change the setting, and I want you to watch closely right here on the robot to see if you can see any differences. Let's go from High to Medium, and when I go from High to Medium you shouldn't see too much of a difference, but there is somewhat of a degradation going on in here and some more artifacts showing up. If I zoom in a little bit and switch from High to Medium, you see that extra little bit of artifacting that goes on inside of that? That's because you are compressing it a little bit more and making the file size go down roughly 6.97K, but you are also losing a little bit of the quality of the file.

Since this is a smaller graphic--right now it is only 150 pixels by 250 pixels--the Quality setting doesn't matter all that much. But this was a big photograph that we are viewing in something like a lightbox or it was a product shot or something like that, we would probably want to crank the Quality setting up a little bit. If you take this down to Low, you'll really start to see the chunkiness appear in your graphic. That takes it down to 4K, but you are loosing quality and getting some really blotchy spots all over the whitespace as well.

So I think really you can get away with using JPEG Medium or JPEG High depending on how big you want your file to be. 13K is almost negligible. I don't think that's a big deal. But High is probably as high as I would go for a web graphic and Medium is probably as low as I would go, depending on the overall quality of the file that you are getting. Once you have your file set at the JPEG level that you want, Quality setting that you need, and everything else good to go, all you have to do is click Save, and then I'll just save this out to my Desktop and I'll call this red_robot, and I'll hit Save.

And now that has been saved out to my desktop as a JPEG and if I jump over into Adobe Photoshop, I can hit Command+O or Ctrl+O to Open. And I'll go to my Desktop and select red_robot, open it up, and there it is. And I can actually see here, if I open up the Image Size dialog box, that it's 150 pixels wide, 250 tall, and if I zoom in on it, I can see the quality is not that bad. So it was a pretty decent rendering. And if you want to get really specific, you can launch this up in a web browser. So if I go into my web browser here, go to File > Open File, navigate to my Desktop, and select red_robot, I can actually see what this is going to look like on the web.

And so judging from this distance and everything, it looks pretty good. It loaded relatively quickly. And if I upload that to a server, I could really get an idea of how fast it's going to load. But this looks good. I am satisfied with it, so I'll take it from there. So let's jump back into Illustrator. And so like I said, Illustrator is probably not the best place to optimize photographs; it's better served in other programs like Photoshop and Photoshop Lightroom. But if you want to optimize photos in Illustrator, you certainly can. Just make sure that you follow the guidelines of saving it out as a JPEG, and make sure you zoom in to check the quality so that you are not getting artifacts and pixelation.

Show transcript

This video is part of

Image for Illustrator for Web Design
Illustrator for Web Design

67 video lessons · 26074 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 preferences from 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.