Photoshop CS4 for the Web

Photoshop CS4 for the Web

with Jan Kabili

 


Photoshop CS4 offers designers a rich assortment of editing tools with which to create compelling imagery for the web. Photoshop CS4 for the Web covers a wide range of uses for Photoshop in the web graphics workflow. Instructor Jan Kabili explains how to optimize graphics and photographs so they download quickly in a web browser. She covers the why and how of image slicing, and demonstrates practical techniques for designing layouts, backgrounds, navigation bars, and buttons in Photoshop.

Download the free Layer Comps to Slices script from the Exercise Files tab.
Topics include:
  • Working with color for the web
  • Optimizing images in Photoshop’s Save for Web & Devices window
  • Making web page backgrounds
  • Creating transparent graphics for the web
  • Making navigation graphics
  • Preparing photographs for the web
  • Laying out a web page comp
  • Slicing
  • Making graphics for rollovers
  • Animating
  • Creating a web gallery
  • Displaying high-resolution graphics with Zoomify
  • Making graphic variations with variables
  • Integrating with Dreamweaver, Fireworks, Flash, and Illustrator

show more

author
Jan Kabili
subject
Web, Web Graphics, Prototyping, Web Design
software
Photoshop CS4
level
Intermediate
duration
6h 53m
released
Feb 20, 2009

Share this course

Ready to join? subscribe


Keep up with news, tips, and latest courses.

submit Course details submit clicked more info

Please wait...

Search the closed captioning text for this course by entering the keyword you’d like to search, or browse the closed captioning text by selecting the chapter name below and choosing the video title you’d like to review.



Introduction
Welcome
00:00If you are a web designer, a blogger, an illustrator, a photographer, or anyone
00:05who wants to share images online, you will find Photoshop to be a flexible and
00:09creative resource for preparing your images for the web.
00:13(Music playing)
00:19I am Jan Kabili, Senior Trainer at lynda.com and this is Photoshop CS4 for the Web.
00:25For you Photoshop users out there, I have designed this course so that
00:30you can take the next step in putting your content on the web or designing
00:33effective web interfaces.
00:35We will cover the principles of optimizing your images for the web with the
00:39Save for Web and Devices feature. We will also look at how to create
00:42animations. I'll show you how to design a comp for your web pages, including
00:47how to design graphics for rollovers and navigation. I'll spend some time going
00:51over how and why to slice images, plus I'll show you a great feature that can
00:56automatically make a website from your images.
00:59Photoshop integrates with Dreamweaver, Fireworks, Flash and Illustrator.
01:03I'll show you how so you can use Photoshop in combination with other programs in
01:08the Adobe CS4 Suite to get the results you have envisioned onto the screen.
01:13If you are ready, I'm ready. Let's get started with Photoshop CS4 for the Web.
Collapse this transcript
What you'll learn in this course
00:00This course in Photoshop CS4 for the Web will teach you what you need to know
00:05to create exciting visual assets that will make your websites, blogs, web ads,
00:10and other online projects really standout.
00:13In this movie, I would like to show you some of the things that you can make in
00:16Photoshop for the Web and some of the things that I'll be teaching you how to
00:20make in this course.
00:21One of the subjects is optimizing graphics and photographs for the web. I'll be
00:25showing you how to work in the Save for Web and Devices window in Photoshop,
00:29which you see here. Optimizing your artwork as JPEGs, GIFs, and PNGs ready to
00:34be put on a website.
00:35I will also teach you all about slicing. You'll learn how to take a small
00:40graphic in Photoshop, and turn it into a repeating web-page background with
00:44various patterns like this. I'll also show you how to make a full-screen
00:48graphic background and how to size it depending on the monitor resolution at
00:53which your audience is likely to view your site.
00:55I will show you how to prepare transparent graphics for the web. Graphics that
00:59are surrounded by transparent pixels, so that those transparent graphics blend
01:04in smoothly with web page backgrounds and even if the graphic has a drop-shadow
01:09or other effect on it.
01:10In Photoshop CS4, you will learn that you can't actually make rollover buttons work,
01:15but you can create the graphics for rollovers in Photoshop. I'll show you
01:19how to make an entire navigation bar of rollovers using Photoshop's Layer Comps
01:23feature, and I'll teach you how to use a special Photoshop script for exporting
01:28multiple rollover graphics from Layer Comps. That's a script that lynda.com has
01:32commissioned and is making available to you for free.
01:35I will teach you how to make vector based navigation icons from photographs
01:40making use of Photoshop's Custom Shape tool, and I'll walk you through a
01:44workflow for preparing photographs for the web. Including starting with raw
01:48photographs, resizing photographs, and sharpening photographs for the web.
01:53I will show you how to make GIF animations using frame-by-frame animation as
01:57well as automatic tweening, and I'll walk you through some exciting automatic
02:02features including the Web Gallery feature that automatically makes an entire
02:06website from your images. And including the Zoomify feature, which allows you
02:10to export large photographs like panoramas and display them in high resolution online.
02:16I will also show you how to use variables and datasets in Photoshop for making
02:21multiple variations on a web banner automatically. I'll show you how to
02:25integrate your Photoshop web work with other CS4 web programs like Dreamweaver CS4,
02:30Fireworks CS4, Illustrator CS4, and Flash CS4. That should give you a
02:37taste of the kinds of things that you can do in Photoshop for the web and
02:41the kinds of things that you will be learning in this course.
02:44I think you will find that this is a really comprehensive course. It offers
02:47lots of information that's hard to find elsewhere. So please do jump right in,
02:52and get your feet wet learning all this and more in Photoshop CS4 for the Web.
Collapse this transcript
Using the exercise files
00:00 I have prepared some Exercise Files that I'll use to demonstrate techniques
00:04 throughout this course. If you are a Premium member of the lynda.com Online
00:09 Training Library or if you are viewing the course on a DVD, you have access to
00:13 those Exercise Files.
00:15 I have organized the Exercise Files by chapter. The same chapters that you will
00:19 see in the table of contents for this course.
00:22 Here on my Mac, I have put my Exercise Files out here on my Desktop. This is
00:26 the Mac Finder where you can see the path to those Exercise Files.
00:30 Inside the Exercise Files folder are chapter folders and then inside the
00:35 sub-folders are the files for that particular movie. In most of the movies,
00:39 I'll just start with one or more files open, and you can open the same files to
00:43 follow along. I hope that you enjoy and are inspired by these examples.
00:48
Collapse this transcript
1. The Interface
Looking over the interface
00:00Understanding the Photoshop CS4 interface is important for web designers and
00:04developers who want to work faster and smarter in Photoshop.
00:08If you are new to Photoshop, learning the interface is essential. If you're a more
00:12seasoned Photoshop user, you will need to know about some changes to the
00:15interface in this version of the program.
00:17So in this chapter, I'll review interface fundamentals and new features that
00:22I've covered in more depth in another course in the lynda.com library that's
00:25called Photoshop CS4 Essential Training which is also a good place to go for
00:30background on other Photoshop fundamentals like layers and selections.
00:34I am going to start by taking you on an overview of the Photoshop CS4
00:39interface. On the right side of the screen are panels that contain controls
00:43and information that you will use as you work on your web images.
00:47Here, you will find panels for working with color, with photo adjustments,
00:52with layers and lots more, and I'll be returning to the panels to look at them in more
00:56detail in another movie.
00:58Over on the left side of the screen is the toolbox that you will use to create
01:01and edit your web images in Photoshop. To select a tool, you just click on it
01:06like the Move tool here, the very first tool. And when you do, the options for
01:10that tool change up here in the Tool Options bar.
01:14You will notice that some of the tools have a black triangle in the
01:17bottom-right corner like this tool, the Crop tool. That means that there are
01:20other tools hidden behind. In this case, if I click and hold on the Crop tool,
01:25I see that there is a Slice tool, and a Slice Select tool behind the Crop tool.
01:29These are important tools for web work, and they have actually moved in this
01:33version of Photoshop CS4 behind the Crop tool. To select one of them, you just
01:37release your mouse on top of the tool in the fly-out menu and that tool is now
01:41the active one and its options are displayed in the Tool Options bar.
01:46Photoshop CS4 offers something new in tools and that is the ability to
01:50temporarily move between tools. This is called the spring-loaded tools feature,
01:55and it works like this. Each tool has a shortcut. The shortcut for the Move tool
01:59for example is V.
02:01If I hold down the V key on my keyboard and keep it pressed down, I'll be
02:04temporarily switched to the Move tool with which I could click and drag to move
02:08the content of a selected layer in a document.
02:12Then when I release my finger from the V key, I automatically go back to
02:16whatever tool was selected before that. In this case, the Slice Select tool.
02:21At the top of the screen is the menu bar where there are drop-down menus.
02:25You may see some items up here that you don't see in your copy of Photoshop. That's
02:29because I happen to have Photoshop CS4 Extended installed on this machine,
02:34which contains some additional scientific analysis, 3D, and video features that
02:39are outside the scope of this course. You can feel comfortable using either
02:43Photoshop CS4 or Photoshop CS4 Extended for this course.
02:47If you are on a Mac, you will see a new bar right here that's called the
02:51application bar. If you are on a PC, all the icons that you see here on this
02:56application bar will be up in the menu bar on your screen.
02:59The application bar offers quick access to some features that you will use all
03:03the time. So for example, over here is a menu that contains quick access to
03:08Guides, Grids, and Rulers, features that help you to position and align items
03:13in your web layouts.
03:15Then there are some navigation features, a menu of commonly used zoom
03:20percentages, a Hand tool, and a Zoom tool. You can access the Hand tool or Zoom
03:25tool either from here in the application bar or from the toolbox. If I click
03:30on the Zoom tool, I can come down into my image and click to magnify my view of the image.
03:36If you have a powerful enough graphics card in your computer to support OpenGL
03:40technology, in Photoshop CS4 you can click and hold with the Zoom tool and
03:45you get continuous zoom like this. When you zoom in far enough, you will see this
03:50grid around individual pixels.
03:53To zoom out, I can go to the Tool Options bar, which now shows options for the
03:57Zoom tool, and select this minus symbol. Then I can come into the image and
04:02click, or click and hold for a continuous zoom out.
04:06When I'm zoomed-in so far that I can't see the entire image like this, I can
04:11access the Hand tool from the application bar or from the toolbox and then,
04:14I can come in and click and drag in the image to see another part of it. With
04:19OpenGL technology, I can click and flick, and the image moves itself across the document window.
04:26The Hand tool and the Zoom tool offer a couple of buttons in the Tool Options bar
04:30that I think are really useful. One is Fit Screen. If I click that, then
04:34the image is automatically taken back to whatever percentage will automatically
04:38fill the screen, and if I click Actual Pixels, I'm taken back to 100% view.
04:44The next icon in the application bar is a new tool called the Rotate View tool,
04:48which is accessible either from here or from the toolbox. With this tool
04:52selected, I can come into the image, click and drag, and I'll be changing the
04:56orientation of the image temporarily. So that it's more comfortable to work on,
04:59particularly if I have a pen tablet attached to my computer, which allows me to draw.
05:05By the way, when I use the Rotate View tool, I'm not changing the orientation
05:08of the actual document; I'm just changing the working image temporarily.
05:12The next menu is the Arrange Documents menu. If I had more than one document open,
05:17I could use this menu to select different layouts that would allow me
05:20to see more than one document at a time.
05:23Finally, the Screen Mode menu, which gives me options for three different
05:27screen modes in Photoshop CS4. One that I really like is the Full Screen Mode.
05:32If I click that and then click the Full Screen button, the image is displayed
05:36against this plain black background, which is a great way to show your designs
05:40to clients. Then when you want to go back to regular view, just press the F key
05:44on the keyboard.
05:46Another new interface feature in Photoshop is the Application Frame. If you are
05:50on a PC, you won't notice anything unusual, but if you are on a Mac, you may
05:54not be used to seeing this gray area behind your image that stretches all the
05:58way from the toolbox on the left to the panels on the right.
06:01In fact, this is not the default view on a Mac. On a Mac, the document window
06:05is free-floating by default. I'll show you what that looks like by going up to
06:09the Window menu and down to Application Frame to disable it. With the
06:14Application Frame disabled, you can see my desktop behind here and if I had
06:18icons on my desktop or I had another application opened, it would be showing
06:21down here as well, which can be distracting.
06:24With the Application Frame disabled, there is always the danger that you will
06:27accidentally click on the desktop which takes you out of Photoshop, and
06:31requires you to click back on the document window to go back into Photoshop.
06:35You may prefer to enable your Application Frame on a Mac, by going up to
06:39Window and down to Application Frame.
06:42The other thing the Application Frame allows you to do is to resize and move
06:46Photoshop as a whole. I can do the same here from the bottom or from the
06:50corner and now if I had another application, say Dreamweaver, I would be able
06:54to quickly go back and forth between the two applications.
06:57I also could come up to this top bar, and click and drag and move Photoshop as a whole.
07:03I can even drag it off onto a second monitor. I'll put it back where
07:07it was and I'll stretch it out for now.
07:12These new interface features in Photoshop are part of Adobe's effort to make
07:15the look and feel of the various Creative Suite programs more consistent.
07:19That's good news for you as web designers and developers, because you often
07:23find yourself working across programs and across platforms. The new consistent
07:28interfaces will make your work a lot easier.
Collapse this transcript
Working with tabbed documents
00:00There are times when you want to have more than one document open in
00:04Photoshop. For example, let's say that you want to add different images to a
00:08webpage design like this one or let's say that you want to compare a couple of
00:13photographs to find the best one to use in the design.
00:16Multiple documents behave a little bit differently in Photoshop CS4 than they
00:20did in previous versions of the program, as I'm going to show you in this
00:24movie. When you open multiple documents in Photoshop CS4, they open into docked
00:29tabs. So for example, I have a tab here for home2.PSD and then I have another
00:36document open here in the wetsuit_ graphic1 tab and another document open in the
00:41navbar1 tab and so on.
00:44Sometimes if so many documents opened at once that they won't all fit in this
00:48area. In that case you will see a double pointed arrow here and you can click
00:52that arrow and you can select from the menu of all the open documents the one
00:57that you want to see. Another way to move through open documents is to cycle
01:02through them using a keyboard shortcut. On either Mac or Windows, you can hold
01:06down the Ctrl key and then click on the Tab key to cycle through open documents
01:11in the order in which they were opened and if you hold down the Shift key as well,
01:15so that's Ctrl+Shift and then press the Tab key, you will cycle back the other way.
01:22And on the Mac there is yet another shortcut which is Command+~ or
01:27Shift+Command+~ to cycle in the other direction. You can change the order of
01:32the tabs up here. So if you want one particular image to be somewhere else in
01:37the order of open tabs, you can just click and drag that tab and when you are
01:41ready to close any of the documents, you click the X on its tab.
01:45Let's say that you want to see more than one image at a time. There is a new
01:49menu in Photoshop CS4 that will help you with that. It's called the Arrange
01:53Documents menu and its icon is located here in the application bar on a Mac
01:58and up in the menu bar on a PC. I'm going to click the Arrange Documents icon
02:02to open this menu of multiple document layouts. I could choose any one of
02:06these. For example, a 2-Up layout, a 3- Up layout. I'm going to go down to the
02:115-Up layout here and click on it and now I can see each one of my documents in
02:16a separate document window.
02:18Let's say my goal here is to compare these two surfer photos, the orange one
02:23and the blue one. Right now, the photos aren't showing me the surfer and they
02:28are too big to fit in their document windows. So I'm going to make the
02:32surfer_photo1 the active document by clicking on its tab and you can see that
02:37tab is now lighter than the other opened Document Window tabs.
02:40Then I'm going to select the Zoom tool in the Applications bar or from the
02:44toolbox. I'll come into the image and I'll hold down the Alt key on the PC, the
02:49Option key on the Mac to change the Zoom to a Zoom Out mode and I'll click in
02:54the image. In the tab for this image, I can now see that I have zoomed out to
02:5866.7% and you will notice in the tab for the blue surfer_photo that image is
03:05zoomed to 100%. I would like to see these photos at the same zoom level and I
03:10also want to see the surfer in both of the photos.
03:13So I'm going to get the Hand tool and I'm going to come in and drag in
03:18surfer_photo1, so that I can see the actual surfer on the wave. And then to
03:24bring surfer_photo2 to the same zoom level and the same location, I'm going to
03:29go back to the Arrange Documents menu, click on it and there at the bottom of
03:33this menu you see that I can choose to Match Zoom Levels, Location or both.
03:38I'm going to choose Match Zoom and Location. Now I can see the same part of both
03:43photos and in fact, all of the opened documents have been zoomed to the same
03:48zoom level 66.7%, and if they are too big to fit in the document window, they
03:54are moved to the same location.
03:55I am going to close both of these surfer photos now by clicking the X on each
04:00of these two surfer_photo tabs. And now I have just three opened documents. I
04:04want to be able to see all three of these opened documents, so I'm going to go
04:08back to the Arrange Documents menu, click there and I'm going to choose a
04:13different layout. This 3-Up vertical layout.
04:17These layouts are all customizable. I can adjust the layout by moving my mouse
04:22over the border between these open Document Windows and when it changes to a
04:26double pointed arrow, I can click and drag and change the arrangement. The
04:31reason that I want to see all three of these documents at once is so that I can
04:34drag this navigation bar up into this webpage design that I'm building and I
04:40also be able to drag this logo into the webpage design.
04:44To move an image from one open document to another, I have to get the Move
04:48tool. So I'll click on it here in the toolbox or I can just press the keyboard
04:52shortcut V to access the Move tool. And then I'll come into the navbar1.PSD
04:59document window, click on it to make that the active document and all I have to
05:04do is click and drag with the Move tool up into the homepage2.PSD document and
05:10release my mouse and the navigation bar is copied from one document to the other.
05:17Then with the Move tool I can drag to get the navigation bar just where I want
05:21it and I can also use the arrow keys on my keyboard to just nudge it into
05:25place. I'm going to close navigationbar1 .PSD and then I'm going to consolidate
05:32both of these opened documents into one window, because I want to show you
05:35another way that you can move documents from one window to another in Photoshop CS4.
05:41To consolidate the two document windows that are still open, I'm going to go
05:44back to the Arrange Documents menu, click on it and I'm going to choose the
05:49first icon here Consolidate All. So that's how you put multiple document
05:53windows back together once you have separated them out. I also want to go back
05:57to 100% here, so with home2.PSD as the active window, I'm going to click on the
06:04Zoom tool and I'll choose Actual Pixels to go back to 100%.
06:08And now I'm going to click on logo1.PSD, so that I can access this logo. I want
06:14to move this into the home2.PSD document. So again, I'll need the Move tool and
06:21this time rather than open two separate document windows, I'm just going to
06:24click on the logo and drag up and hover over the tab for home2.PSD and that
06:31switches me back to the home2.PSD document window, and with my mouse still hold
06:36down, I haven't let up on the mouse yet, I'm going to come down and just drop
06:40that logo into place on the navigation bar and then I can drag it down where I want it.
06:46The new tab documents in Photoshop CS4 make it easier than ever to keep track
06:50of all of your open images, rather than allowing them to float free in separate
06:54windows where one document window can get hidden behind another. If you do what
06:59to have your document windows floating free, you can always pull one of these
07:03tabs away from the others and it will float free like this.
07:07The danger though is that if you click back on another document, for example,
07:10if I click on this logo I can lose the free floating document and to get it
07:15back, I'll have to go up to the Window menu and choose from the bottom of
07:20Window menu the home2 document and that will come back to the foreground. I
07:25could also set all of the open document windows to float free by going to the
07:29Arrange Documents window and choosing Float All in Windows. And now they are
07:33arranged in this cascading pattern on my screen.
07:36So as you can see, using tab documents gives you more control of where your
07:41documents are on the screen. It's just one more interface improvement that will
07:45make your life easier when you are designing for the web in Photoshop CS4.
Collapse this transcript
Customizing panels
00:00Photoshop's panels contain lots of commands and features that you will use when
00:05you are designing for the web. It's rare that you will need access to all of
00:09the panels all of the time, so I suggest that you customize your panel
00:12arrangement, so that you have the controls you need most often at your finger
00:16tips without having extra panels taking up your valuable screen real estate.
00:21In this movie, I'll show you some ways that you can customize the arrangement
00:24of panels. Right now you are looking at the default panel arrangement. Panels
00:29are arranged in groups and if you click any one of the panel tabs in a group,
00:33like the Swatches panel tab here, it will bring the corresponding panel to the
00:37foreground of that group.
00:39These panel groups are docked into a column on the right side of the screen by
00:43default. The dock helps to organize them and keep them in place. It also gives
00:48you the ability to collapse all of the panels at once, so that you have more
00:52room for your document window. So if you are working with a really wide
00:55document here and you need more space, you can come to the top-right of the
01:00column of panels and click this double pointed arrow, and the entire column of
01:04panels reduces itself to icons with labels.
01:07Then if you need to use any one of the panels, you can just click its icon and
01:12it pops out. When you are done using it, you can click the icon again and it
01:16pops down again. If you need even more space to work, move your mouse over the
01:21left hand border of the column of panels, until you see the cursor change to a
01:25double pointed arrow. Then drag to the right and you can reduce the column to
01:30just icons, which also pop out for your use and then pop back when you click the icon.
01:36I am going to open this column again by clicking the double pointed arrow
01:39again. If you have a panel showing that you don't use, you can close it from
01:45this icon on the right side of the panel group. This is called the panel menu
01:50icon and it's an important icon to know about. If you click-and-hold on a panel
01:54menu icon, you will see lots of controls related to the selected panel.
02:00So in this case I have the Adjustments panel selected and down here I have all
02:04kinds of controls related to the Adjustments panel. I'm actually going to go to
02:08the bottom of this menu and choose Close in order to close the Adjustments
02:13panel. Now it's gone. If I want to open a panel, I can go up to the Window menu
02:19and choose the panel by name. So here I can reopen the Adjustments panel.
02:24I can also close an entire panel group. That's a good way to save space. So I'm
02:30going to close this group of the Masks in Adjustments panel by going to the
02:34panel menu on that group and all the way down to the bottom and choosing Close
02:39Tab Group. You can collapse and expand panel groups by clicking in the blank
02:45area right here on the right side of the group. So right now this panel group
02:50is collapsed, I see nothing underneath it. If I want to expand it, I click in
02:54this area and it expands. Now I can see the layers in the Layers panel. I can
02:59do the opposite, collapse the panel group which I'll do up here by clicking in
03:03this blank area. That collapses the Color, Swatches and Styles panel group. I
03:08click again to reopen that panel group.
03:12Another way to customize the column of panel groups is to reorder the groups in
03:17the column. So let's say I would like to have my Layers, Channels and Paths
03:21group at the top of the column. Again, I'll click in this blank area and I'll
03:25drag up to the top of the column, until I see this single light blue line. Then
03:30I release my mouse and now I have the Layers, Channels and Paths group above
03:35the Colors, Swatches and Styles group.
03:38You can move any panel out of the docked column by grabbing its tab, which I'll
03:43do here with the Layers panel, and dragging out of the column. Now you will
03:47have a free-floating panel. If you click on the title bar of the panel, you can
03:52move it wherever you want on your screen or even off to another monitor.
03:57You can further customize by creating your own panel groups or your own columns
04:01of docked panels. For example, let's say that I want to add the History panel
04:07to the Layers panel here. I'm going to go up to the Window menu and go down to
04:11History. That opens the History panel, which happens to be a pop-out panel from
04:17an inner column, which has started to form here. I'm going to take the History
04:22panel by its tab, drag it over and drag it into the group with the Layers panel.
04:29When I see this blue border around the Layers panel, I'll release my mouse. Now
04:33I have a group of these two panels, Layers and History. I'll go back to the
04:38Layers panel here and I'm going to bring out another new panel by going to the
04:42Window menu and going down to the Layer Comps panel.
04:45I have more to say about the Layer Comps panel in the chapter on rollover
04:50graphics. The Layer Comps panel is often used in conjunction with the Layers
04:54panel. So I'm going to take the Layer Comps panel by its tab, drag it over and
05:00rather than put it in a group with the Layers panel, I'm going to move it to
05:04the bottom of the Layers panel. When I see this light blue line, I'll release
05:07my mouse. Now the Layer Comps panel is docked to the Layers and History group.
05:14So basically, I have created my own column, which I can move freely around the
05:18screen by clicking on this title bar and moving it. I can icon-ize this new
05:22column by clicking this double pointed arrow and I could then take that entire
05:27column. I could move it over and I could dock it here to the right of the
05:33existing column, so that now I have three columns here. Let me close this Notes
05:38panel, so you can see the three columns that I now have. I could also take that
05:43newly minted column that I made and drag it off to a second monitor.
05:47If you have made a lot of changes to your panel arrangement and you want to get
05:50back to the way things were by default, you can always go to this menu at the
05:54top-right of the screen, click and choose Essentials. That reestablishes the
06:00default arrangement of panels. I don't think there is one single configuration
06:04that's always the best for web work because you find yourself doing so many
06:08different tasks as you prepare web graphics. One day you may be working on
06:12rollover graphics, another on type, another on slicing webpage layouts. The
06:18good news is that there is lots of flexibility to configure Photoshop's panels
06:22to suit whatever task you are doing at the moment using the flexible interface
06:26controls that I have shown you in this movie.
Collapse this transcript
Customizing web shortcuts
00:00Many of the tools and menu items in Photoshop can be activated by keyboard
00:05shortcuts. As you become more experienced in Photoshop, you'll find that using
00:09keyboard shortcuts for commonly used commands will make you more efficient.
00:14I would like to show you how you can customize shortcuts that you often use in
00:17your web work. All of the tools in the toolbox have shortcuts. So rather than
00:22clicking on a tool to activate it, you can just press its shortcut. To learn a
00:25tool shortcut all you have to do is hover over the tool. So if I hover over the
00:30Crop tool I can see that its shortcut is letter C on the keyboard. So if I want
00:34to activate that tool, I just press C. And if I want to activate the tools
00:39behind this one, the hidden tools which in this case are the important web
00:44tools, the Slice tool and the Slice Select tool, I'll hold down the Shift key
00:48and press C again. There is the Slice tool and press C again and there is the
00:53Slice Select tool. The panels over on the right have panel menus and many of
00:59the items in the panel menus also have shortcuts. So I'm going to go over here
01:03to the Layers panel menu and click on it and you can see that some of these
01:08items including the first one for making a New Layer have shortcuts written
01:12next to them. So in this case, the shortcut for New Layer is Shift+Command+N on
01:20a Mac, on a PC that would be Shift+ Ctrl+N. I am going to move off of that
01:25command and then I'm going to go down to my Layers panel where you can see I
01:28currently have two layers and I'll press that shortcut. Shift+Command+N or
01:33Shift+ Ctrl+N and you can see I get a New Layer dialog box. I'll click OK and
01:39I now have another layer in my Layers panel. At the top of the screen are menus,
01:44officially called the Application menus and if I click on the File menu there,
01:48for example, you will see that many of the commands in this menu have shortcuts
01:52as well. One of the commands in this menu that you use all the time in your web
01:56work is the Save for Web & Devices command which I'll talk about in another
02:00movie. You can see the shortcut for that command is pretty complicated. You
02:04have to press down four keys at once, which can be awkward and hard to remember.
02:08On a Mac those are the Option+ Shift+Command and S keys. On a PC that
02:14would be Alt+Shift+Ctrl and S. I'm going to show you how you can change this
02:18shortcut to make it simpler to use and remember. I am going to move off this
02:23command and then release my mouse to close that menu. And then I'm going to go
02:26up to the Layer menu at the top of the screen, another application menu and
02:31show you another command that you will use often in your web work and that's
02:35New Layer Based Slice, which I'll talk about in another movie. But for now what
02:40I would like you to see is that there is no shortcut listed to the right of
02:43this command and I'm going to show you how you can create a shortcut for
02:47command like this one that doesn't already have a shortcut. To do both those
02:51things I'm going to go to the Edit menu and go all the way down to the bottom
02:55of that menu to Keyboard Shortcuts. That opens the Keyboard Shortcuts and menus
03:01dialog box. Right now this dialog box displays the default set of Photoshop
03:06shortcuts called Photoshop Defaults and they are listed here. There are
03:10shortcuts for Application menus we currently see. There are shortcuts for panel menus,
03:15which are those menus that hang off the side of the panels, and there
03:19are shortcuts for tools. I want to preserve the Photoshop Default Shortcuts in
03:24case I want to go back to them. So before I make any changes I'm going to go
03:28over to the right of the Set menu and press this icon to create a new set of
03:33shortcuts to which I'll make changes. Here in the Save As field, I'm going to
03:37type a new name for these shortcuts. I'll call these web and then I'm going to
03:41type the extension for a keyboard shortcut file, which is KYS. I want to be
03:46sure to save this in the Keyboard Shortcuts folder and then I'll click Save.
03:51And you can see that I'm now creating a new set of shortcuts called web. Now
03:55I'm ready to simplify that complicated shortcut that I showed you for the Save
03:58for Web & Devices command. First I'll make sure that I'm looking at shortcuts
04:02for Application menus. I know that this command is in the File menu. So I'll go
04:07down to File and I click the arrow to the left of file to expand and see all of
04:11the items in that menu. Then I'm going to scroll down over here, until I see
04:17the Save for Web & Devices command and there is that complicated shortcut.
04:22I'm just going to click on that shortcut to open its editing window. Instead of
04:25this long shortcut I would like to use the shortcut Command+Comma on a Mac,
04:31on a PC that would be Ctrl+Comma. So I'll just press those commands on
04:35my keyboard. Command+Comma or Ctrl+Comma and that changes the shortcut in this
04:40list and I'll go up to the Accept button and click there. So that's how you can
04:45change a shortcut. Now I would like to show you how to add a shortcut to a
04:48command that doesn't have one. As I showed you the New Layer Based Slice
04:52command. So using this scroll bar I'm going to scroll back up. I'm going to
04:57collapse the File menu and I'm going to click on the arrow to the left of Layer
05:02to open the commands for the Layer menu. Now I have to scroll down until I see
05:07the command for New Layer Based Slice. I am going to click on the blank area to
05:11the right of the New Layer Based Slice command to open in Editing window and
05:17I'm going to add the command F5. That's using the Function keys on the
05:21keyboard. So I'll press F5 and I get this message with a sound telling me that
05:27F5 is already in use and will be removed from the places that it's currently
05:31being used which is the menu that opens the Brushes panel. That's fine with me
05:35because I'm not going to be opening the Brushes panel as much as I'm going to
05:38be using this New Layer Based Slice command. So I'm willing to make that
05:42switch. If I wanted to go to the Brushes command and change the shortcut for
05:47that command I could press Accept and Go To Conflict. Instead I'm just going to
05:51accept this change and then I'm going to go up to this icon, which is the Save
05:56Set icon, and I'm going to click there to save the web set with these changes.
06:02Now I'm going to go and click OK to close the Keyboards Shortcuts and menus
06:07dialog box with my customize keyboard shortcuts. I would like to show you these
06:11changes in the menus in Photoshop. So I'm going to go to the File menu and you
06:16can see my Custom command listed there, Command+Comma. If I wanted to go back
06:20to the regular default command for Save for Web & Devices then I could just go
06:25back into Keyboard Shortcuts and go back to my Default Photoshop Set. I'm going
06:30to move my mouse off of that menu and release and go up to the Layer menu to
06:34show you that the New Layer Based Slice command also has my Custom shortcut
06:38next to it F5 and I move my mouse off of that and release. I realize that not
06:43everyone likes to use keyboard shortcuts, particularly if you are just learning
06:46Photoshop. But when you are ready to use shortcuts for web work, make things
06:51easy on yourself by customizing the web related shortcuts that I have shown you
06:55here as well as any others that you find yourself using often.
Collapse this transcript
Saving a custom web workspace
00:01You can customize your Photoshop workspace by rearranging panels and by
00:05creating custom keyboard shortcuts, as I showed you how to do in an earlier movie.
00:09First, I'm going to set up my panels in a way that's efficient for web work.
00:14There is no single panel configuration that's best for all web tasks, but
00:18one approach is to start with the preset web workspace that's ships with
00:22Photoshop CS4 and tweak that to suit your needs.
00:27You'll find a menu of preset workspaces over here on the right under the
00:31workspace switcher, which is located on the application bar on a Mac and on the
00:36menu bar on a PC. The workspace switcher is currently set to its default, the
00:41Essentials workspace, which sets up the panel configuration that you see here.
00:45I'm going to click on the workspace switcher to see a list of the preset workspaces.
00:50Some of these presets control which panel is up here; others also affect
00:54keyboard shortcuts and menu items too. I'm going to choose the preset workspace
01:00labeled, Web. Keep your eye on the panels, so that you see that when I choose
01:03that workspace, a different subset of panels opens here on the right side of
01:07the screen. I think these panels are a reasonable starting point for web work.
01:11So I would like to add the Layer Comps panel to this configuration that I would
01:15be saving as a custom web workspace.
01:17To do that, I go to the Window menu and I choose Layer Comps. The Layer Comps
01:22panel opens with its panel group, the History panel and the Actions panel. It
01:27also created a second inner column of panels here. I really don't want to have
01:31two columns of panels. So I'm going to take this entire layer group and move it
01:35to the bottom of that outer column.
01:37To do that, I'll click on this blank area to the right of the Layer Comps tab
01:42and I'll drag all the way down to the bottom of the outer column. When I see
01:45that light blue bar, I'm going to release my mouse. It puts the Layer Comps
01:50panel group at the bottom of this single column of panels. I would like to save
01:55this configuration of panels as a custom workspace but I also want to include
01:59in that custom workspace, some keyboard shortcuts for the web that created in
02:04an earlier movie. Let me show you those.
02:06I am going to go to the File menu and I'm going down to Save for Web & Devices.
02:12This is a command that you will use often in your web work. I have customized
02:16the keyboard shortcuts for this command to simplify it, so that it's now just
02:20Command+Comma on a Mac. That would be Ctrl+Comma on a PC. I have also added a
02:25keyboard shortcut under the Layer menu, to the New Layer Based Slice command
02:30here, where I added the keyboard shortcut F5.
02:34Now I want to save those keyboard shortcuts and this panel configuration as a
02:39custom web workspace. To do that, I'll go back to the workspace switcher,
02:43I'll click and I'll choose Save Workspace. In the Save Workspace dialog box,
02:49I'll type the name of the workspace. I'll call it, my web, but you can call it
02:53whatever you want. I'll tell Photoshop what I want to include in this
02:57workspace. I want to include these panels and the Locations that you see them
03:01here, and I would like to include my Keyboard Shortcuts, as they are currently
03:05set. So I'll check that too. If I had made changes to menu items, I could also
03:09include those changes here but I haven't done so. So I'll leave this check box,
03:14menus, un-checked. I'm going to click Save. Now the workspace switcher displays
03:19the my web custom workspace.
03:21Now let's say that I have some other work to do and I want to go back to my
03:24Essentials workspace. I can do that any time by clicking the workspace switcher
03:29here and choosing the Essentials workspace. You may have noticed the panels
03:33change going back to the Essentials configuration. Then say that later, I want
03:38to go back to my web workspace. I'll do that the same way, going to the
03:42workspace switcher and choosing my web, which is my custom workspace which
03:47appears at the top of this menu. I get a warning here about my keyboard
03:51shortcuts. Yes, I want to apply this workspace, even though it's going to
03:55modify my keyboard shortcuts. I'll say Yes and I'm back to my custom workspace
04:01called my web.
04:02What if you want to edit a custom workspace? Let's say, for example, that I
04:07want to close this particular panel group Character and Paragraph, and not
04:11include that in this workspace. I'll click the panel menu on the right side of
04:16the Character panel and down at the bottom of that menu, I'll choose to close
04:20this entire panel group, Close Tab Group. Now I want to edit the my web custom
04:26workspace to incorporate that change.
04:28So I'm going to go up to the workspace switcher and I'm going to choose Save
04:33Workspace again. In the Save Workspace dialog box, I'm going to type the same
04:38workspace name that I had before, my web. Again, I'm going to include Panel
04:43Locations and Keyboard Shortcuts and click Save. I get this warning that I'm
04:48replacing the original my web workspace. Yes, that's what I want to do. Now I
04:53have successfully edited my custom workspace.
04:56What if you want to delete a custom workspace? To do that, you will go back to
05:01the workspace switcher. You have to switch to a different workspace. So I'll
05:05switch to Essentials this time, for example, and then you go back to the
05:08workspace again and you choose Delete Workspace. Then in the Delete Workspace
05:14window, you can click this Workspace menu and choose which custom workspace you
05:19want to delete. Then you click Delete, but I'm actually not going to do that
05:23because I would like to keep this workspace. So I'm going to cancel out of here for now.
05:27If you have been using Photoshop CS3, you may have noticed a couple of things
05:30that were different from that version of the program as you work through this
05:34lesson. For one, the workspace switcher is located in a slightly different
05:38place in Photoshop CS4. It's no longer in the Tool Options bar. Some of the
05:44preset workspace names have changed, but the principle is the same. The
05:47workspace switcher provides a way for you to save a custom configuration of
05:52panels, keyboard shortcuts and even menu changes, if you want, that suits your
05:57web work or any other task for that matter. So that you can go off and do
06:01something else and then restore that custom workspace the next time you are
06:06designing for the web.
Collapse this transcript
2. Preparation
Setting preferences for the web
00:00Photoshop's Preferences offer a way for you to customize the way that your copy
00:05of Photoshop behaves. In another course in the library, Photoshop CS4 Essential
00:10Training, I have mentioned some preferences that you may want to customize,
00:14no matter what you are doing in the program, but here I would like to emphasize
00:17one preference choice that I suggest you make whenever you are doing web work
00:21in Photoshop. That's to make sure that the rulers unit of measurement is set to pixels.
00:26Before I show you how to do that, I'm going to go ahead and make my rulers
00:30visible by going to the application bar here on a Mac or the menu bar on a PC
00:36and choosing from the View Extras menu, Show Rulers. You can see that my rulers
00:41are currently measuring in inches. If yours are too, you are going to want to
00:45change the default preference, so that the rulers display in pixels rather than inches.
00:50To do that, on a Mac I'll go to the Photoshop menu, on a PC to the Edit menu
00:56and from there choose Preferences and then I'll move over to the sub-category,
01:00Units & Rulers. I'll move that dialog box down, so you can see the rulers and
01:05I'm going to go to the Units field, the Rulers menu and from there choose
01:11pixels, it's as simple as that. As soon as I do, you can see that the rulers
01:15are now measuring in pixels. I'll now click OK to close this dialog box.
01:20If you ever need to switch back to inches for any reason, say, you are working
01:24on a print job, you can do that by going back to Preferences or just do it on
01:29the fly by moving into either the horizontal ruler here or the vertical ruler
01:34here and right-clicking on a PC or holding the Ctrl key as you click on a Mac
01:40and choosing inches from the Pop-up menu. Then you can go back the same way to
01:45pixels by right-clicking on a PC or Ctrl -clicking on a Mac in one of the rulers
01:50and choosing pixels.
01:52The rulers come in really handy for measuring and for positioning items in a
01:55Web Design. You can adjust the origin point to 0,0 point of the rulers by
02:00clicking in the top-left corner and dragging to wherever you want those points
02:05to be. So if I want to measure this Polaroid looking photograph here, I can
02:10drag down to its corner and release and then I have the 0 point here and the 0
02:15point here on the rulers. If I want to put the origin points back where they
02:18were, I'll just double- click in that top-left corner.
02:21By the way, when you do have the Rulers open, you also have access to Guides
02:27and Guides are also very useful for positioning and measuring as you are laying
02:31out a webpage. To create a guide, I can go to either the horizontal ruler or
02:35the vertical ruler and click and drag to bring out a guide and just drop it
02:39wherever I want. The guides are also useful for showing you where you are on
02:44the ruler. I can drag out more than one guide.
02:47I can make the guides temporarily invisible by going to the View Extras menu on
02:52the application bar on a Mac or on the menu bar on a PC and disabling Show
02:57Guides. I'll turn that back on by going back to that menu and choosing Show
03:01Guides again. If I want to delete one of the guides, I make sure I have the
03:06Move tool selected in the toolbox and then I come over the guide until I see
03:10this double pointed arrow and I just click, hold and drag off of the canvas. If
03:16I want to clear all the guides, I go to the View menu at the top of the screen
03:21and down to Clear Guides.
03:22Rulers and Guides can be very useful, when you are designing a webpage layout
03:27or working on another kind of web image, but just be sure that when you are
03:31designing for the web, you first set the rulers preference to pixels in
03:35Photoshop's Preferences.
Collapse this transcript
Choosing color settings for the web
00:01When you are making images for the web, of course you want the colors in the
00:04images to look the same to your audiences when they view the image in a Web
00:07browser as the colors do when you are working on the image in Photoshop.
00:12To achieve that kind of consistency, you will make use of some color management
00:16features in Photoshop. The color management approach that print designers use,
00:20which is to tag an image with the color profile, isn't the best way to go when
00:24you are designing for the web. That's because today, many Web browsers still
00:28are not color managed. In other words, many Web browsers can't read the color
00:32profile attached to an image.
00:35So a better approach to color management for the web is just to try to emulate
00:39in your copy of Photoshop, the way that colors will appear in a typical Web
00:43browser on a typical computer monitor, which today means a PC monitor. The
00:48first thing to do on your way to achieving that goal of color consistency is to
00:53configure Photoshop's color settings. I suggest that you do this before you
00:57create or adjust any image that you are working on for the web.
01:01To do that, I'm going to go up to the Edit menu and I'm going to choose Color
01:05Settings. That opens the Color Settings dialog box. Fortunately, I don't have
01:10to evade through all of the settings in this dialog box one by one. Instead,
01:15all I have to do is make one choice from one menu and that's the Settings menu
01:19here at the top of the dialog box. I'll click on that menu and I'm going to
01:24choose North America General Purpose 2. This is the choice that I recommend for
01:28web work, even over this other setting which is called North America
01:32Web/Internet.
01:34So I select North America General Purpose 2 and you notice that that has
01:38automatically set all of the other menus that you see here. One of the menus
01:43affected by these settings trace that I just made is the RGB Working Space menu
01:48here. The RGB Working Space determines the characteristics of the color space
01:54in which images will be displayed when you are working on them in Photoshop.
01:59As you can see, the RGB Working Space has been automatically set to sRGB. sRGB
02:06is the best choice for web work because it's the working space that most
02:11closely resembles the color characteristics of a typical PC monitor, which is
02:15what your viewers are probably going to be using when they view your images.
02:20So sRGB is the RGB color space that you want to be working in when you are
02:24making images that will be displayed on the web, even though sRGB contains a
02:29relatively narrow range of colors as compared to broader color spaces that are
02:34used for print work, like Adobe RGB or Prophoto.
02:38The only one of these working spaces that I'm interested in right now is the
02:42RGB working space. That's because when you create images for the web, you are
02:46always using RGB color mode. So I'm going to skip over the CMYK, Gray, and Spot
02:52Working Spaces. To take a look at the Color Management Policies, in particular
02:57the RGB color management policy down here. Choosing the umbrella setting, North
03:01America General Purpose 2, set the RGB color management policy to Preserve
03:08Embedded Profiles.
03:09Preserve Embedded Profiles means that if I happen to open an image into
03:13Photoshop that has been tagged with a color profile that's different than sRGB,
03:18say Adobe RGB, then Photoshop is going to respect that non-sRGB color profile
03:24and not try to change it. I'll skip right over the CMYK and Gray Color
03:28Management Policies because they are not relevant to the web and I'm going to
03:32take a look at these three checkboxes, which were automatically unchecked when
03:36I chose North America General Purpose 2 form the Settings menu.
03:40Because these three checkboxes are left unchecked, if I'm working with an image
03:44whose tag does not match the sRGB working space, Photoshop is not going to stop
03:49and ask me any questions about what to do at that point. So I'm going to accept
03:53all of these settings by clicking OK. Now I have set my RGB Working Space to
03:59sRGB. So that's the first step in a color management workflow for the web.
04:04Now let's say that I happen to open an image that I'm preparing for a website
04:08that doesn't match my sRGB working space. In other words, it's been tagged with
04:13a color profile other than sRGB. At that point, I would want to convert the
04:17image to sRGB, so that it does match the working space. The image that you see
04:22here is one that I opened that does have a color profile tag that differs from sRGB.
04:28To see that, I'm going to go down to the document information area at the
04:31bottom of the document window and I'm going to click the arrow to the right of
04:35that document information area. I'll choose Show and then I going to choose
04:39Document Profile. Now I can see in the document information area that this file
04:44has been tagged with the Adobe RGB (1998) color profile.
04:49What I want to do is to convert the image from Adobe RGB (1998) to sRGB. There
04:55are two ways to do it in Photoshop CS4. One way is to do it while you are
04:59editing the image in Photoshop proper. To do that, I'm going to go up to the
05:04Edit menu at the top of the screen and down to Convert to Profile.
05:09That opens the Convert to Profile dialog box. Here I'm going to go to this
05:13Destination Space area, to the Profile field and I'm going to change that to
05:17Working RGB - sRGB, so that I'm going to be converting from the Adobe RGB color
05:23space to the sRGB color space, which is the same as my RGB working space.
05:29Normally, at this point I would click OK but I'm actually going to cancel this
05:33so that I can show you another way to convert an image to the sRGB color profile.
05:38The way I just showed you is fine, if you can remember to do it, but since you
05:41may not be focusing on color management while you are editing an image, you
05:45might not remember to do this. That's no problem, because another way to
05:49convert to sRGB is when you are saving for the web in the Save for Web &
05:53Devices dialog box.
05:55The Save for Web & Devices dialog is the place you would normally go after you
06:00had edited or tweaked an image and gotten it just the way you have wanted it
06:03and we are ready to optimize it in a web format. To open the Save for Web &
06:07Devices window, I'm going to go up to the File menu and down to Save for Web &
06:12Devices. That opens this big Save for Web & Devices window where there are lots
06:18of settings that I'm going to address in detail in later chapters, but for now
06:22I want to concentrate on just one setting here and that is Convert to sRGB.
06:27I am going to make sure that Convert to sRGB is checked and assuming that I
06:31have set all the rest of the controls here the way I want them, I'm going to
06:35click Save. In the Save Optimized As dialog box that opens, I'm going to
06:41navigate to my Desktop and I'm then going to go up to the Save As field where I
06:45can see the name of this image which is going to be optimized as a GIF.
06:49I'm going to change the name from adobeRGB. gif to converted.gif, since this version
06:56of the file is the one that I converted to sRGB. Then I'll click Save. If I go
07:02out to my Desktop, I see that I now have that converted.gif out there waiting for me.
07:06For purposes of comparison, I'm going to save another copy of the original as a
07:10GIF, this time without converting to sRGB. So back in the original PSD file,
07:17I'm going to go again to File > Save for Web & Devices and this time I'm going
07:22to uncheck Convert to sRGB. Then I'm going to click Save. Again, I'll navigate
07:27to my Desktop and I'm going to rename this copy of the image, unconverted.gif,
07:34and I'll click Save.
07:35Now I'm going to open both versions, the converted and the non-converted
07:39version to compare their colors. I'll go up to the File menu and down to Open.
07:45I'll navigate to my Desktop and there I'm going to click on converted.gif. Then
07:50I'll hold down the Command key, that's the Ctrl key on a PC and I'll click
07:54unconverted.gif and then I'll click Open.
07:57There are now three tabs here in the Photoshop document window, the original
08:01PSD file, the web ready GIF that I converted to sRGB, and the web ready GIF
08:07that I didn't convert to sRGB.
08:09To see all three at once so I can compare their colors, I'm going to go up to
08:12the application bar and that's the menu bar on a PC and I'm going to click the
08:16Arrange Documents menu. Then I'm going to select this 3-Up view, which shows me
08:21all three of the images.
08:23Notice that the original PSD over here on the left has really bright colors,
08:27particularly as compared to this middle image, which is the GIF that I did not
08:32convert to sRGB. Notice that the colors here are much duller and less saturated
08:37than they are in the original. Now look at the converted.gif, the GIF that I
08:41did convert to sRGB. Like the original, this version of the file has bright,
08:46saturated colors.
08:48So the lesson is that when you are trying to manage color in your web images,
08:52first set Photoshop's Working RGB Color Space to sRGB in the Color Settings
08:58dialog box and you can do that with that one umbrella setting, North America
09:03General Purpose 2. Then if you do happen to open an image that's tagged with a
09:08profile other than sRGB, you want to convert that image to sRGB. That's done
09:13most easily in the Save for Web & Devices window using the checkbox that I just showed you.
09:18So that's the best way to match the colors that your viewers will see in your
09:22GIF or JPG or other web ready image in a Web browser to the colors that you see
09:28in the image when you are working on it in Photoshop.
Collapse this transcript
3. Working with Color
The decline of web-safe color
00:00I have some good new for those of you who design flat web graphics, like the
00:05ones that you see here. That good news is that you no longer have to limit
00:09yourself to using only web safe colors in your designs and that's been true for
00:13a while now. The concept of web safe colors was important in the 1990s when
00:19consumer level computers had 8-bit video display cards that could display only
00:24a limited number of colors.
00:25Computers like that did fine with images that contained only web safe colors,
00:30which were colors from a set palette of 216 particular colors. But if an image
00:37was designed with other non-web safe colors, like the image that you see here
00:41on the right. When it was viewed on a consumer's 8-bit computer, it would often
00:45look like this image over here on the left.
00:48Colors would have shifted, like this curved graphic right here and other colors
00:52would have dithered or broken up into little dots of color like this, as the
00:57computer used dots of web safe colors to simulate non-web safe colors that it
01:02couldn't display directly.
01:04Nowadays, most computers can display millions of colors. So viewers don't see
01:08shifting and dithering like this in graphics on the web. But if a client does
01:14ask you to design with web safe colors, you should know what they are. They are
01:18a specific palette of 216 colors that can be displayed without shifting or
01:23dithering on an 8-bit display.
01:24You should also know that if you do need to use web safe colors for any reason,
01:29say your boss just asks you to, or say you are designing for an audience that
01:33you know has really old computers, then you can easily setup Photoshop's color
01:38choosing features, like the Color Picker or the Swatches panel, to offer only
01:43web safe colors for you to choose from, as I'll show you how to do later in this chapter.
Collapse this transcript
Choosing color with the Color Picker
00:01Many of the tools and commands in Photoshop, ranging from the Brush tool to the
00:05Type tool to commands like Fill and Stroke, apply color. So it's important to
00:10know the various ways that you can choose the colors that you are going to be
00:13applying in Photoshop, including using the Color Picker which is the main
00:18subject of this movie.
00:19Take a look at the bottom of the toolbox here, where you will see two color
00:23boxes, the foreground color box and the background color box. You may have
00:27different colors in your boxes but whatever color is currently filling the
00:31foreground color box is the one that many of Photoshop's tools will use.
00:36The background color comes into play less often, perhaps, when you are making a
00:40gradient that includes the background color, but it's also a good place to
00:44store a second color that you may want quick access to as you are designing.
00:48You can switch back and forth between the foreground and background colors by
00:52clicking this double pointed arrow or by pressing the X key on your keyboard.
00:57The default foreground and background colors are black ad white. You can always
01:01restore black and white by clicking on this icon right here or by pressing the
01:05D key on your keyboard. One popular way to select a foreground color is to open
01:10the Color Picker. To do that, I'm going to click once on the foreground color box.
01:15In the Color Picker, I can choose a color by clicking anywhere on this large
01:19color field on the left. The color that I choose appears in the top half of
01:24this grayer over on the right. I can change the colors available by moving the
01:29sliders on the central bar and then I can pick a different color over here in
01:34the color field. There are three components to color in Photoshop and they are
01:38represented by these three buttons here. Hue means the actual color, S refers
01:45to the saturation of a color, which means its purity or intensity, and B is for
01:50the brightness of a color, its lightness or darkness.
01:53Because the H button is selected here, colors are arranged by hue in this
01:58vertical slider bar. Over in the color field, I see variations on the color hue
02:05arranged by saturation from right to left and by brightness from top to bottom.
02:11If I want a few colors organized in another way, I can click the S button here.
02:16That organizes the color in this slider by saturation, from highly saturated at
02:21the top to less saturated at the bottom, or I could click the B button here to
02:27organize the colors in the slider by brightness, from light to dark.
02:31Down here are three buttons labeled R, G, and B. These represent the R, G, and
02:37B values of the color. These fields come in handy if a client asks you to
02:41design with a specific color, perhaps, a corporate color. If he gives you the
02:45RGB values for a color, you can type them in here. So for example, I might come
02:50in and type 68 as the R value of a color, 148 as the green value and 72 as the
02:58blue value. There is nothing magic about those particular numbers. I just
03:02wanted to show you that they select a particular color, in this case, a green.
03:06If you happen to know the hexadecimal code value of a color, you can type it
03:10into this box down here. Hexadecimal code is a special numbering system that's
03:15used to describe web color. So let's say I know that I want a color that's
03:20ccff00, I can type that in and that automatically selects this color for me.
03:26Another thing that I can do in the Color Picker is to set it to display only
03:31web safe colors, a subject that I covered in detail in another movie.
03:35If you have to design with web safe colors, you can come down here where it
03:39says Only Web Colors, and check that box. Then everything that you see here in
03:44the Color Picker and in the Color slider is a web safe color. If I click on any
03:49of these colors, I have selected a web safe color, which appears here in the
03:53square. I'm going to uncheck Only Web Colors for just a moment and I'm going to
03:57select another color. Notice that when I did that, this little cube appeared on
04:03the right side of the large square.
04:05The cube means that the color I have selected is not web safe. Photoshop will
04:10automatically select the nearest web safe color for me, if I click on that
04:14cube. The cube disappeared because now I do have a web safe color selected.
04:19When I have got the color that I want, I click OK and that closes the Color
04:23Picker and fills the foreground color box here with the selected color which is
04:28ready for me to use in Photoshop.
04:30So I think you can see that the Color Picker is a useful way to choose color in
04:34Photoshop. It offers lots of features that give you flexibility and versatility
04:39when you are trying to choose a color for use in your own designs.
Collapse this transcript
Sampling color with the Eyedropper tool
00:01 The Eyedropper tool is the most straightforward way to sample color for use
00:05 with Photoshop's color related features. You can use it to select color from
00:10 anywhere on your screen, from inside a document that's open in Photoshop or
00:14 even from outside of Photoshop. That means that you can borrow some colors from
00:20 any document that's open in any program on your computer.
00:23 To see how the Eyedropper tool works, I have opened this image in Photoshop and
00:27 I'm going to go over to the toolbox and I'm going to click on the Eyedropper
00:30 tool to select it. I would like to catch here a couple of the colors in this
00:34 image, so that I can use them in another design. So all I have to do is come in
00:38 with the Eyedropper and click on one of the colors. I'll click on this orange
00:42 right here.
00:43 When I do that, you can see that color appeared down here in the foreground
00:47 color box in the toolbox, all ready to be used. If there is another color in
00:51 this image that I want to keep, I can switch the background and foreground
00:55 color boxes here by pressing this double pointed arrow or clicking X on my
00:59 keyboard. That puts the gold in the background color box and makes the
01:03 foreground color box available to me, so that I can come in and click on
01:07 another color. I'll click on this petal of the flower to capture that subtle blue.
01:13 So that's how you can sample color from an image that's open in Photoshop using
01:16 the Eyedropper tool, but that's not all this tool will do. It will also sample
01:21 colors from anywhere on your screen. So I'm going to move Photoshop over a
01:26 little bit, so that I can see my Desktop. To do that, I'll go to the right-hand
01:30 side of the application frame and I'm just going to drag to the left.
01:34 If you are on a Mac and you don't have your application frame enabled, then you
01:37 can skip that step. I just want you to be able to have access to your Desktop.
01:41 So you can see that I have this gray Desktop color and I have a light blue
01:45 folder on my Desktop. If I want to sample that light blue for use in Photoshop,
01:49 I have to have some kind of an image open in Photoshop to start with. It can
01:53 even be a blank white file, but I need something here because this is where I
01:57 start this technique.
01:59 What I do is I click-and-hold with my mouse inside of the open image in
02:03 Photoshop. I don't release the mouse, I move outside of Photoshop and here I'm
02:08 over with the gray Desktop. If you look at the foreground color box in the
02:12 toolbox in Photoshop, you will see the same gray reflected there. What really
02:17 I'm after is this light blue right here. I can move my cursor over that folder.
02:22 I haven't released it yet. You will see that the foreground color box is now
02:26 light blue. So now I'll release my mouse and that light blue from outside of
02:31 Photoshop is the color that I have captured.
02:34 In another movie in this chapter, I'll show you how you can use this technique
02:38 to borrow colors from a website that you like in an open Web browser on your
02:42 screen and even how to save the borrowed colors as a palette inside the
02:47 Swatches panel. But before that, I want to show you one more thing about the
02:51 Eyedropper tool. That is that there is a new feature up here in the Options bar
02:56 for the Eyedropper tool, the ability to sample color from the currently
03:00 selected layer in the Layers panel.
03:02 I am going to keep that at the default, which is All Layers for just a moment
03:06 and I'm going to go to the Layers panel to show you that right now I have the
03:10 Background layer selected. If you don't have that, you can just click on that
03:14 layer in the Layers panel to select the Background layer. Let me show you
03:18 what's on the Background layer. To do that, I'm going to hold down the Option
03:21 key on a Mac or the Alt key on a PC and click on this eye icon to the left of
03:26 the Background layer. That temporarily makes the content of all the layers
03:30 above that invisible, so that you can see what's on this layer. It's filled
03:34 completely with this brick red color.
03:36 If I make the next layer in the layers stack visible by clicking in its eye
03:41 icon spot, you can see what's on that layer, which is this yellow matte. Then
03:46 some transparent pixels around the matte, through which I can see down to the
03:50 background on the layer below. I'll turn on the tree and you can see what's
03:55 there, just the orange tree and then transparent pixels through which I can see
04:00 the content of the layers below. I'll turn on these other layers, the same way.
04:05 As you saw before, when Sample is set to All Layers, if I click, say on this
04:10 light blue petal, the foreground color box changes to light blue. But if I
04:16 change the Sample field to Current Layer that means that the Eyedropper tool
04:21 will select the color on the currently selected layer that's beneath my cursor.
04:26 So let's see how that works.
04:27 Now if I come back to this blue petal and I click, Photoshop sampled not the
04:34 blue that's on the topmost layer under my cursor, but rather the Eyedropper
04:38 bode down to the currently selected layer, which is that brick red Background
04:43 layer and that's the color that it sampled.
04:47 You can see that brick red here in the foreground color box. I think that can
04:51 be a useful feature but it also can be one of those features that surprises you
04:54 when it happens. So to avoid being surprised in the future, I'm going to go
04:58 back up to the Sample menu here and I'm going to change it back to its default
05:02 All Layers.
05:04 As you can see the Eyedropper tool is a useful tool for sampling colors from a
05:08 Photoshop document, like this one or from any place on your screen. You can use
05:13 it to borrow colors from a brochure that you have open in Adobe InDesign or as
05:18 I mentioned from a website that's opened as a Web browser, or for any document
05:21 that has a color scheme that you like.
05:24
Collapse this transcript
Choosing color with the Swatches panel
00:00The Swatches panel offers an alternative way to select color. It's particularly
00:05useful when you are designing for the web because the Swatches panel can house
00:09a specific palette of colors that you are using in a design and make those
00:13colors available directly on screen without you having to open a separate
00:17dialog box each time you want to switch colors as you would have to do if you
00:21were using the Color Picker which I described in another movie.
00:25This is my Swatches panel right over here. If yours isn't open, you can open it
00:28from the Window menu at the top of the screen, or as I did, go to the Workspace
00:33Switcher and choose the Preset Web Workspace from there, and that sets up all
00:38the panels as you see them here with the Swatches panel open at the top.
00:42If I want to use one of the colors from the Swatches panel, all I have to do is
00:46move my mouse over that color and the cursor changes to an Eyedropper
00:50indicating that color is going to be sampled. I'll then click on the color and
00:55notice that down here in the foreground toolbox that color appears.
00:59So that's how you select a color which you can then use for any purpose
01:03painting with a Brush tool or filling with the Fill command or stroking with
01:08the Stroke command and so on. If I choose other colors in the Swatches panel,
01:13keep your eye on the toolbox and you will see that foreground change.
01:17I think that the Swatches panel comes in particularly handy when you are trying
01:21to recolor text. I'm going to add a simple line of type here and then I'm going
01:26to show you how to work interactively with the Swatches panel to change its
01:30color on the fly.
01:31To add text, I'm going to go to this T tool in the toolbar and make sure that I
01:36have either the Horizontal or Vertical Type tool selected. I'll get the
01:40Horizontal Type tool and then I'll go to the Tool Options bar and I'll select a
01:44font from this first field by clicking the arrow on the field and just
01:49selecting a font that I like, I'm going to choose Mistral, you can choose any
01:53font that you have on your machine and that you like.
01:56In the next field, you can change the Style of some fonts. In this case, I only
02:01have one choice and that's Regular. That you may see Bold or Italic or
02:05Bold/Italic here and you can choose whatever you like.
02:08In the next field, I can set the Size of the type. I'm going to click the arrow
02:12to the right of this field and make a choice from this menu or I can just
02:16type-in a point size, and that's all I'm going to change there for now.
02:20To create type, I just click anywhere in the image and start typing. I'm going
02:26to type Ride the tide! Whenever you create or edit type in Photoshop, you have
02:33to commit that change. One way to do that is to go to the Tool Options bar at
02:38the far right and click this big checkmark.
02:41Now you will see in the Layers panel down here that there is a brand new layer
02:45that was created automatically and it's a special type layer, I can tell that
02:49because it has this T symbol here in the thumbnail.
02:52The content of type layers remains editable and that's what makes them
02:56different than regular pixel-based layers. One of the things you can edit about
03:00Type is its color, and this is where the Swatches panel comes in.
03:04First, I'm going to select the type that I want to change and I'll do that by
03:08making sure I have the Type tool still selected in the toolbox and then coming
03:12in and clicking just to the right of the Type and dragging, and I could select
03:16just a few letters or all of the letters.
03:19This adds a highlight around the selected letters. I would like to hide that
03:22highlight, so I can really see the color of the text. To hide the highlight,
03:26I'll press the Command key on a Mac, that's the Ctrl key on a PC and the letter
03:31H. And now I'm going to go to the Swatches panel and I'm going to start trying
03:36out some other colors.
03:37All I have to do is click on colors here and that text changes interactively.
03:42So I can do this until I find the color that I like. I think I'll choose that
03:47dark purple. And now I'll go up to the Tool Options bar and click the checkmark
03:52to commit those changes.
03:53I don't want to click that checkmark until I have made my color changes as I
03:57just showed you. The colors that you currently see here in the Swatches panel
04:02are the default set of swatches. But you are not limited to those colors. There
04:06are quite a few other sets of swatches that ship with Photoshop. Here's how you
04:10can load one of those into the Swatches panel. Go to the panel menu on the
04:14right side of the Swatches panel, click and from this line down, you will see a
04:19list of different swatch sets.
04:21I am going to go all the way to the bottom of that list. There are three or
04:25four different arrangements of web colors listed here. I'm going to choose the
04:29Web Hues swatch set, and in this dialog box, I'm going to click OK and that
04:35replaces the colors that were in the Swatches panel with these new colors, all
04:39of which happened to be web-safe. And then to select any one of those, I could
04:43just click on it here in the Swatches panel.
04:45You are not limited to loading just the swatch sets that ship with Photoshop.
04:50If you are working on a project with someone else, he or she could create a
04:53custom set of swatches, as I'm going to show you how to do in an upcoming
04:57movie. And then that person could save their custom set and send it to you.
05:02Here's how you would load a custom swatch set into your copy of Photoshop.
05:07Again, I'm going to go to the panel menu on the right side of the Swatches
05:10panel and I'm going to choose Replace Swatches, and then I'm going to navigate
05:15out to the Exercise Files to find a Custom Swatch Set.
05:19I am going to choose color.aco swatch set but you can use any swatch set that
05:25you happened to have. I'll select this one and I'll click Load. You can see
05:30that the swatches here have changed. Let me pull out the Swatches panel by
05:34clicking on its Tab and dragging over to the left, and then I'm going to make
05:37the panel longer by clicking on its bottom-right corner and dragging down, so
05:42that you can see what's in this swatch set that I just loaded.
05:45I will scroll down there also. You can see most of this set. It's actually
05:49quite a large swatch set and what it is are all web-safe colors divided into
05:54three areas that differ in how saturated they are. So in this area up here, we
06:00have lots of different highly- saturated web-safe colors, and here are some
06:04medium-saturated web-safe colors, and here are some unsaturated web-safe colors.
06:09It's sometimes hard to see these when you are looking at other arrangements of
06:12web-safe swatch sets. So this is a nice alternative.
06:16And finally, if you want to go back to your original default set of swatches,
06:20you can do that at anytime by going to the panel menu up here and choosing
06:25Reset Swatches, and clicking OK, and there are my original swatches. I can take
06:31my Swatches panel by its tab and drag it back over into the column on the right.
06:36As you can see the Swatches panel is a good way to access colors while you're
06:41designing and it has the bonus of allowing you to have a custom palette of
06:45colors always available right on your screen.
Collapse this transcript
Making a custom color swatch
00:01The Swatches panel is useful not only for selecting colors to use in Photoshop
00:05but also for storing custom sets of colors that you can use in your future web
00:10projects. One use for a custom swatch set is to store colors that you sample
00:15from an existing website, so that you can use the color scheme of that website
00:19as a starting place for your own web designs.
00:21To show you how to do that, I have opened a document here in Photoshop. This
00:25could be any document, even a blank file. I have also opened a Web browser down
00:30here, with a live web page that contains a color scheme that I happened to
00:34like. I'd like to capture some of this color scheme and save it as a custom
00:39swatch set here in my Photoshop Swatches panel.
00:42The first step is to clear out all the colors in the Swatches panel so that I
00:46have a blank slate that I can fill with my own colors. When there are lots of
00:50colors in the Swatches panel as they currently are, the quickest way to delete
00:54them all is by using the Preset Manager.
00:56I will open the Preset Manager by going to the panel menu and from there,
01:01choosing Preset Manager. The Preset Manager shows all of the colors that are
01:06currently displayed in the Swatches panel. I'm going to select them all by
01:10going to the first of those colors and clicking on it and then I'm going to
01:13hold down my Shift Key as I click on the last of the colors.
01:16With all of them selected in the Preset Manager, I'm going to click the Delete
01:20button over here on the right side of the Preset Manager and all of the colors
01:24are now deleted from the Preset Manager. I'll click Done and that deletes all
01:29of those colors from the Swatches panel.
01:31To sample a color from this website in Photoshop I'm going to select the
01:35Eyedropper tool from the toolbox. Then I'm going to move over the Open document
01:39window in Photoshop and I'm going to click-and-hold, and that's the key to keep
01:43the mouse held down as you move out of the Photoshop document window and over
01:48the Web browser.
01:48I will move the cursor over a color that I like in this website, this yellow
01:52for example, and only then will I release the mouse. That fills the foreground
01:56color box in my toolbox with that yellow color from the website. To save that
02:01yellow color as a swatch in my Swatches panel, I'll just move over the Swatches
02:05panel in Photoshop, the icon turns to a Paint Bucket and I'll click.
02:10I can give the new color swatch a name, I'll call this bright yellow, click OK,
02:16and that color now appears as a swatch in the Swatches panel. I'm going to
02:20repeat this a few more times to add to this set of custom colors.
02:25So again, I'll move my cursor over the open Photoshop document, press down on
02:29the mouse and hold and I'll select this orange color, which then appears in the
02:33foreground color box in Photoshop. To add it to the Swatches panel, I'll move
02:38over the Swatches panel and click, and I won't bother naming this swatch.
02:42I'll just click OK.
02:42So now I have four colors in my custom swatch set and I could add more, but
02:48I'll leave it at that for now. The next thing that I want to do is to save this
02:52custom swatch set so that I can bring it up again in the future and use it.
02:55To do that, I'll go the panel menu on the right side of the Swatches panel and
02:59I'm going to choose Save Swatches. It's important to navigate to the same place
03:03inside of Photoshop where all of the other swatches are located.
03:07On a Mac, that's in the Applications folder and then inside of the Adobe
03:12Photoshop CS4 folder, inside the Presets folder and inside the Color Swatches
03:17folder. Here you can see all of the files that represent the pre-built swatch
03:21sets that come with Photoshop. I'm going to give my swatch set a name.
03:25I'll call this jan custom and I'll click Save, and now I'm going to close my Web
03:30browser and let's say that it's another day and I want to use a different set
03:34of swatches. Let's say I want to use my default swatches.
03:36I will go back to the panel menu in Photoshop and I'll click Reset Swatches and
03:41I'll click OK. I must say that I changed my mind and I want to get my custom
03:45swatch set back, so that I can use those colors. If I go to the panel menu and
03:50I'll look for that custom swatch set that I called jan custom swatch set, it's
03:54not there. That's because you have to restart Photoshop in order to get a
03:58custom swatch set to appear here in this menu.
04:03Now, if I go to the panel menu in Photoshop, there is my jan custom swatch set.
04:08So I'll select that, I click OK and there is my custom swatch set all ready to
04:13use. There is another way to create a custom swatch set and that's by using the
04:17new Kuler panel in Photoshop CS4.
04:20Kuler is an extension that comes with Photoshop to give you interactive access
04:25to color combinations that other people create and post online. So to use
04:30Kuler, I first have to make sure that I'm online and I'm also going to clear
04:34out the Swatches panel here in Photoshop. So that will have a blank space in
04:38which to build another custom swatch set.
04:40Since, there are only a few colors here, I'll delete them one at a time by
04:44holding down the Option key on a Mac or the Alt key on a PC which changes the
04:49icon to a Scissors and then I'll just click on each one of these. Then I'm
04:53going to open Kuler by going to the Window menu, going to Extensions and
04:57choosing Kuler.
04:58Here, I can see color combinations called color themes that other people have
05:02created and then uploaded. There are different categories of color themes that
05:07I can browse, Most Popular, Highest Rated, Newest and so on. When I see a theme
05:13that I like, like the second one here Firenze, I'll click on it to select it,
05:17and then I can automatically add it to my Swatches panel by clicking this
05:22bottom-right icon right here Add selected theme to swatches.
05:26I can save this custom swatch set for future use in the same way that I showed
05:30you earlier in this movie. So the next time, you are trying to create a color
05:34scheme for your own web layout, rather than start from scratch, you might try
05:39making a custom swatch set by sampling the colors from an online website, from
05:44another document that's open on your screen or by using Kuler from inside
05:48Photoshop as I've shown you how to do here.
Collapse this transcript
Recoloring web graphics
00:00There are often times when you want to change the color of a web graphic, maybe
00:05you're refreshing colors in a site redesign, or maybe you want different color
00:09versions of the same graphic to put on different web pages. As long as you've
00:13had the foresight to place different pieces of artwork on different layers in
00:17the source file, re-coloring will be quick using the method that I'll show you here.
00:21Here I have a file with individual pieces of artwork on separate layers
00:25including the flowers that you see here. If this file had only one layer, it
00:30would be difficult to select the flowers to change their color only because
00:34they do have these soft edges. But fortunately, the flowers are on their own
00:39layer surrounded by transparent pixels.
00:41I am going to turn off the visibility of all the other layers temporarily to
00:46show you that by moving over to the Flowers layer holding down the Option key
00:50on a Mac or the Alt key on a PC and clicking the Eye icon to the left of the
00:55Flowers layer. You can see them there on their own layer and this gray and
00:59white pattern that represents transparent pixels on the layer.
01:02I will go back to the Layers panel and Option or Alt-click on that Eye icon
01:07again to bring all the other layers back. Now, I want to fill the flowers only.
01:12To do that, I'm going to click on the Flowers layer to select that layer and
01:16then I'm going to use the Transparent Lock, which is the first of these four
01:20lock icons at the top of the Layers panel.
01:23I will click on that lock to activate it and you can then see a lock icon on
01:27the Flowers layer. Now I'm going to choose a color for the flowers from the
01:30Swatches panel. I'll click on this purple. The purple appears as the foreground
01:35color in the toolbox and now I'm going to use the Edit command to fill the flowers.
01:40I will go to the Edit menu at the top of the screen and down to the Fill
01:45command here and I'll leave everything as is and in the Fill dialog box, I'll
01:50use the default setting which is to fill with the foreground color. I'll click
01:55OK and the only thing that fills with purple are the flowers on the Flowers
01:59layer. That's because the Transparent Lock has protected all of the transparent
02:03pixels on the layer from filling with color.
02:06Now, let me show you what happens if you don't use the Transparent Lock icon.
02:10I'm going to select a different layer, the Lines layer and I'm not going to
02:14click on the Transparent Lock icon this time. I'll go up to the Swatches panel
02:19and I'll select another color for the lines, this dark blue and then I'm going
02:23to use the Fill command.
02:25Now I could go up and choose Edit > Fill again, but I'd like to show you a
02:29shortcut for filling and this is one of the shortcuts that I suggest you
02:32remember because you will be using it so often. The shortcut to fill with the
02:36foreground color is Option+Delete on a Mac. That's Alt+Backspace on a PC.
02:42So I'll press that key command and the entire Lines layer has filled with the
02:48foreground color, and that's not what I wanted. I just wanted to show you what
02:52happens if you don't use the Transparent Lock. So I'm going to undo that by
02:56pressing Command+Z on a Mac, that's Ctrl +Z on a PC and I'll try again. With the
03:02Lines layer still selected, I'll click on the Transparent Lock icon and use the
03:07shortcut for filling again, Option+ Delete or Alt+Backspace. So that works great
03:13on a pixel-based layer.
03:15Now, what if you have a type layer? In Photoshop, type layers are made up of
03:19vector-based type rather than pixels. So when I select the type layer here, the
03:25one with the special T on it, notice that the Transparent Lock icon is grayed
03:29out. It's not available. But that's okay, because on a type layer I don't need
03:34it. All I have to do is select a color for the type. I'll leave it at this blue
03:39that's currently in the foreground color box and use the Fill command. I'll use
03:43the shortcut again Option+Delete or Alt+Backspace and only the text on this
03:47type layer filled with color.
03:48So the lesson is that you don't have to labor over making selections or trying
03:53to paint in color if you have taken advantage of layers while building your web
03:57graphics. As long as you have the source file with individual pieces of artwork
04:02on separate layers, it's a snap to recolor using the fill techniques that
04:06I have shown you here.
Collapse this transcript
Copying color as HTML
00:00One way to unify the design of a web page is to take colors from the graphics
00:05on a page and use them to color HTML elements like the page background or HTML
00:11text or links.
00:13If you're a web designer, you probably know that the colors of HTML elements
00:18like those are specified with a special numbering system called Hexadecimal
00:22Code. Photoshop has a feature built in that will copy the hexadecimal code of
00:28any color in an image that's open in Photoshop. So you can paste it into the
00:32code in your web building program. Here's how it works.
00:35I am going to select the Eyedropper here in the toolbox and then I'm going to
00:39come into this open image in Photoshop and then I'm going to hold the Ctrl key
00:43as I press down on the mouse and that's right-click on a PC and hold the mouse
00:48down and that brings up this contextual menu.
00:51I will move down to the bottom of the menu and select Copy Color as HTML and
00:56then I'll release the mouse. Now, I'm going to open a blank page in a Text
01:00Editor but you could do this in Dreamweaver or in any application in which you
01:04build your sites.
01:05I am going to go down to the dock on my Mac where I have already started a
01:09blank page in the Mac program called Text Edit. I'll go up to the Edit menu and
01:15I'm going to go down to Paste and that pastes into this document outside of
01:19Photoshop the hexadecimal value of the orange that I copied from my Photoshop graphic.
01:25So that I now have that hexadecimal value to use in any page that I'm building
01:29in this other application.
01:30So that's just one more small thing you can do in Photoshop to make your web
01:34design easier.
Collapse this transcript
4. Optimizing Images for the Web
Touring the Save for Web interface
00:01This movie introduces the Save for Web and Devices window where you will
00:04optimize images for the web. I'm starting here in Photoshop proper with a
00:09photograph on which I have finished working. I have tweaked the image, I have
00:12cropped it, I have added some adjustments, I have resized a copy for the web,
00:17and now I'm ready to optimize. You will notice that this is a .PSD file, a file
00:22in a native Photoshop format. That's a format that a Web browser won't display.
00:27So one thing I want to do when I optimize is to convert this photo to a format
00:31that can't be displayed on a Web browser like JPEG.
00:34And the other thing I want to do is to make the photo as small as I can, so
00:38that it will download relatively fast in a viewer's Web browser.
00:41To optimize, I'm going to go to the File menu at the top of the screen, and I'm
00:45going down to Save for Web & Devices, and that opens Save for Web and Devices
00:50window. I'm going to click on its title bar here and move it, so that you can
00:54see there really is a completely separate interface from Photoshop proper,
00:58where the original image is still open below.
01:01The first thing I'm going to do here is to click on this tab that says 2-Up. In
01:06the 2-Up view you see two views of the image. On the left is the original PSD
01:11format image, and I know that because it says so right down here at the bottom
01:15of the image, and it also tells me there the size of the original image, which
01:19is 437 kilobytes. In the view on the right, I see the image optimized with all
01:25of the controls that are currently set over here on the right side of the Save
01:29for Web & Devices window. So it just so happens that right now the image is set
01:33to optimize in the JPEG format, which is usually the best format for a
01:38photograph, and to optimize with high quality and some other settings as well.
01:43At the bottom of the Preview window you can see the file format and its size
01:48with the current settings. And you also can see a rough estimate of the amount
01:52of time it would take a viewer's browser to download this image with this
01:55particular speed Internet connection. If you click the menu to the right of
01:59that, you can set that estimate to show you estimated download times with other
02:04kinds of Internet connections. But please remember that these are just
02:07estimates, and should be taken with a grain of salt.
02:09I am going to go up to the top of the screen, and I'm going to choose the 4-Up
02:13Tab now to show you that view. Some people prefer to work this way, because
02:18here you can see not only the original image in one of the four previews, but
02:22you see three other previews, and you can click on a preview and set the
02:26controls, then click on another preview and set the controls in a different
02:29way. And do the same yet one more time, and then you can compare the appearance
02:36of each preview, as well as the file size of each preview. And those are the
02:40two properties that you want to keep your eye on always when you are optimizing
02:44an image. Because the challenge is that reducing file size, so that the file
02:48downloads fast on the viewer's end can cause the appearance of the image to
02:52degrade. So your goal when you are optimizing is to try to make the image small
02:57and fast size, but also retain relatively good image quality.
03:00Let's see what else is here in the Save for Web window. On the top left there
03:04is an abbreviated toolbox with some tools that you recognize from Photoshop
03:08Proper. Like a Zoom tool for zooming in and out on your image, a Hand tool for
03:13moving around an image that's too big to fit in one of the previews. An
03:17Eyedropper tool for sampling color and more.
03:20Notice this light-blue border around this preview. That's there because I just
03:24clicked on that preview, if I click on the next preview then that's the one
03:28that's selected. And any changes that I make to the controls on the right will
03:31affect only that preview. We'll be looking at the controls on the right in
03:35great detail in other movies, but I do want to point out a couple of new and
03:39changed items here.
03:41Here are the Color Management controls. In previous versions of Photoshop these
03:45were hidden behind some menus and hard to find, and they have been moved to the
03:48face of this window so they are easier to access. This is a new field in
03:52Photoshop CS4, the Metadata field, which allows you to add Copyright, Contact
03:58and other information to your optimized images.
04:00The Color Table here is used when you are optimizing GIFs or PNG-8s, which have
04:05limited numbers of colors. We will be looking at the Color Table in detail too
04:09in other movies. Beneath that you have the Image Size controls, which also have
04:14moved in this version of the program, and they are used to change the
04:17dimensions of the image from inside this window, so you don't have to cancel
04:21out resizing image and then come back in if you change your mind about its size.
04:25Beneath that are controls for previewing animated GIFs, which we will also be
04:29looking at. When you are all done with the Optimization controls, you'll click
04:34Save and that will save an optimized version of the file ready for the web.
04:38The Cancel button just closes the Save for Web & Devices window, if you change
04:42your mind about optimizing, and the Done button does the same thing, except
04:47that when it closes the window it remembers the current optimization settings,
04:51so that the next time you open the image in this window, you'll see those
04:55optimization settings to start with.
04:58The Preview button is also an important one, and it's become more prominent in
05:02this version of the program. If this is the first time that you are using Save
05:05for Web & Devices, you may see a question mark on top of this Preview and
05:09Browser icon right here, and that means that you need to set up the Preview
05:13function to recognize the Web browsers is on your computer.
05:16Here's how you do that. I'm going to click the arrows to the right of the
05:20Preview and Browser icon and choose Edit List. In the Browser's box that opens,
05:25I'm going to click Find All, and Photoshop goes out and finds the Web browsers
05:30that I have installed on my computer. I can set any one of these to be the
05:34Default Browser, I'm just going to leave things as they are and click OK, and
05:38now you can see that that icon has changed to the Safari Web browser icon,
05:43because that is the Browser that I chose as the Default. And what that means is
05:47that when I click the Preview button right here with one of the Preview windows
05:51selected, my Safari Web browser opens showing me a preview of the optimized
05:56image with the optimization settings that I have chosen for that particular
06:01preview. And you'll see there is also some information about the image down here.
06:05I am going to close that Safari Web browser window, and show you that I can
06:09then click on the Preview and Browser icon menu, and choose to see the image in
06:14one of my other browsers. It's a good idea to preview your images in more than
06:18one browser, because you audience is also likely to be using different browsers.
06:23If you are wondering what this Device Central button does, it will take you to
06:26Adobe Device Central, an application for developing and testing content for
06:30mobile devices like cell phones.
06:33So that's an overview of the Save for Web and Devices window. In the upcoming
06:37movies in this chapter I'll be showing you how to use the controls in this
06:41window to optimize photographs and graphics for the web.
Collapse this transcript
Optimizing photos as JPEGs
00:01JPEG is the best file format in which to optimize a photograph for the web.
00:05Your goal when optimizing a JPEG is to make it as small as possible, but still
00:09retain good photo quality. I'll show you how to go about that with this
00:13photograph which is a native Photoshop document, a .PSD, which is file format
00:18that is not web-ready.
00:20To convert this image for the web, I'll go to the File menu at the top of the
00:23screen and down to Save for Web & Devices. In the Save for Web & Devices window
00:28I'll use the 4-Up view, you could use the 2-Up or the Optimize view. I'm going
00:32to select the Hand tool here and click in one of these previews to move the
00:36image up so that you can see the whole surfer here.
00:39Here I see three previews of the image, and you'll notice that each one of
00:42those is currently set to GIF. Photographs usually don't look very good when
00:46they are optimized in the GIF format, as you can see here. That's because GIFs
00:50allow only a limited number of colors and photographs are made up of continuous
00:54tone and color. So when you have a photograph, the best thing to do is to go
00:58over to the Format menu on the right side of the screen and change the format
01:02to JPEG. That affects the selected preview, which is the one right here with a
01:06light-blue border. And you'll notice that as soon as I made that change, this
01:10preview looks a lot better, particularly as compared to GIFs, but I notice that
01:14the file size is a bit larger than I would like it to be. So my job is to try
01:18to get the file size down while retaining an image quality that's approximately this good.
01:23The main way to do that in the Save for Web & Devices window is to vary the
01:27quality. You can see here that this preview has a relatively high quality of
01:3160. I'd like to compare that to some previews of JPEGs with lower qualities.
01:35So I'm going to go over to this icon at the top right of the window, click, and
01:39that opens this menu where I'll choose Repopulate Views, and that sets the
01:44other two previews to JPEG as well, each with a different quality. The one on
01:48the bottom right is a low quality of 15. With that setting I see lots of JPEG
01:54artifacts here. Blocks of color, and some lines around the high contrast area.
01:59And those aren't acceptable. So I'll look at the 30 quality or medium quality
02:02image, and I see that there still are some JPEG artifacts, but not as many. So
02:07this comparison is telling me that I'd like to choose a quality somewhere
02:10between 30 and 60. I still have the top right preview selected, and to
02:15fine-tune its quality, I'm going to go over to the quality slider on the right
02:18side of the screen, click to the right of that field, drag the slider to the
02:22left slightly, and I'll try a quality of 50. I'll click there to close the
02:27slider, and I can see that the image still looks good, and that one change has
02:31reduced the file size by 10 kilobytes. What else can I do to make the file size
02:36a little smaller?
02:37Over on the right side I could try adding a little blur to the image, because a
02:41blurry image compresses better as a JPEG than a sharp image. I'll click the
02:45arrows to the right of the Blur field, and I'll drag over increasing blur
02:49slightly. I don't want to go too far with this setting, because I certainly
02:52don't want a blurry JPEG. I'll click to close that slider, and I see that I
02:57have saved a little bit more in file size, and I think my image still looks
03:00okay. Another thing that reduces file size is this Optimize checkbox. If I were
03:05to uncheck that, keep your eye on the file size, and you'll see that it
03:08increases slightly.
03:10So I'm going to leave Optimized checked to reduce the file size a bit, and I'm
03:14going to leave Embed Color Profile unchecked. If Embed Color Profile were
03:18checked, Photoshop would embed information in the optimized JPEG describing its
03:23color space. The purpose of color profiles is mainly to try to get the color in
03:28a print to match what you see on your screen when you are working on the image
03:31in Photoshop. Of course when you are designing for the web, your output device
03:34is not a printer, but a Web browser. And unfortunately most Web browsers can't
03:39recolor profiles, except for a few browsers like Safari and Firefox 3. Those
03:44facts leads many web designers to leave the Embed Color Profile box unchecked
03:49saving a little file size, and also to leave this preview setting at its
03:53default of Monitor Color.
03:55However, this approach to Color Management for the web could change, as more
03:59browsers become color managed in the future.
04:01Well, I'm on the subject of Color Management, to get the most consistency
04:04between the colors in the preview image here, and the colors that your viewers
04:08will see in this image on their screens. Leave Convert of sRGB checked here. If
04:13you have an image like this one, which has the Adobe RGB profile embedded in
04:17it, and you haven't already converted the image to the sRGB color space outside
04:22of Save for Web & Devices, then checking this box will convert the image to the
04:26sRGB color space, and that's a good choice, because sRGB is the color space
04:31that most resembles a PC monitor, which is what most people viewing the web are
04:36likely to be using when they see your image online.
04:39What else can I do in this window to reduce the file size? Well there really is
04:43only one more thing, and it's something I don't like to do here. And that is to
04:47reduce the physical dimensions of the image down here by changing the Width or
04:50the Height, or changing the Percent field here. If I do reduce the dimensions
04:55of the image, I make sure to set this Quality menu to Bicubic Sharper, because
04:59that's the best formula for reducing file size. However, if I'm going to resize
05:03an image, I'd like to do that before I come into the Save for Web & Devices
05:07window, because I think it's important to resize an image before you sharpen
05:11it. So I'll resize a copy of the source file, sharpen it, and then come in and
05:16optimize the copy for the web.
05:17If I do want to try to get this image smaller than 31 kilobytes, there is one
05:21more thing I could try, and that is to exit out of the Save for Web & Devices
05:25window, and try to tone down the saturation and the contrast of the image,
05:29because JPEG does a better job optimizing lower contrast and lower saturation images.
05:35So I'm going to click the Done button here, and back in Photoshop proper I'll
05:40go to the Adjustments panel. If yours isn't open, you can open it from the
05:43Window menu at the top of the screen.
05:45Here I'm going to click on this first icon, the Brightness/Contrast Adjustment,
05:49and that adds an adjustment layer to my Layers panel. The beauty of using an
05:53adjustment layer to adjust a photo is that it doesn't directly change the
05:57pixels in the photographic layer, and the adjustment layer always remains editable.
06:01I am going to come up to the Adjustments panel, which is now showing controls
06:05for the Brightness/Contrast Adjustment, and I'm going to reduce the Contrast.
06:08I' won't go too far, maybe around 30, and I think the image still looks good.
06:13If I want to see the difference between how the image looks with this change
06:17and without it, I'll turn the Preview icon off. That's how the image was, and
06:22on, that's how the image is. I think it looks fine like that.
06:25I am going to add one more adjustment layer to change the saturation of this
06:29image. I'll go to this big green arrow on the bottom left of the Adjustments
06:33panel and click it, to take the Adjustments panel backs to its default view,
06:37and in the Adjustments panel I'll click on this Vibrance Adjustment icon. That
06:41adds another adjustment layer in the Layers panel, and the settings have now
06:45changed to Vibrance and Saturation.
06:47I am going to take the Vibrance slider and more it down to the left slightly,
06:51Vibrance is very similar to Saturation, except where it does a better job with
06:55skin tones and some other colors.
06:57I am going to save this source file with the changes I just made to it. That
07:01way if I ever need to make a change to the web version of the image later, I'll
07:05have the matching layered source file to come back to. To do that I'll go to
07:09the File menu and down to Save, or I could use the shortcut Command+S on a Mac,
07:13or Ctrl+S on a PC, and that saves the altered source file over its original version.
07:19Now I'll go back to the Save for Web & Devices window by going up to the File
07:23menu and choosing Save for Web & Devices.
07:26If you remember before I went out to Photoshop proper to make those changes,
07:30the file size of this preview was about 31k, so I have realized a slight file
07:35savings by toning down the saturation and contrast of the original image.
07:40When I'm all done choosing my Optimization settings, with this preview
07:43selected, I'm going to go down to the Save button and click. And that opens the
07:47Save Optimized As window. Here I'm going to navigate to my desktop where I'll
07:51save a JPEG copy of the original file. I'll make sure that format is set to
07:57Images Only, and I'll click Save.
07:58Now I'm going to go out to my Desktop and there I'll find my JPEG, I'll open
08:03that JPEG in Photoshop by double- clicking it, I'm going to go to the Arrange
08:07Documents menu in Photoshop and choose the 2-Up view, so that I can see both
08:12the original PSD photo on the left, and the optimized JPEG on the right.
08:17I think the quality of this JPEG is acceptable. It's not as good as the
08:21original. But if you remember, we've realized a really tremendous file saving
08:25by compressing this photo to a JPEG and it now can be put on the web.
08:29So those are some techniques that you can use when you are optimizing a
08:32photograph as a JPEG in the Save for Web & Devices window. First of all, please
08:37be sure to use Save for Web & Devices, rather than just going to the File >
08:40Save As command, because File > Save As usually results in much larger files,
08:45and doesn't offer the comparative views that you get in the Save for Web window.
08:49By the way, photographs aren't the only kind of image to optimize as JPEGs.
08:54Some kinds of graphics also optimize best as JPEG, in particular graphics that
08:58have glows or gradients or drop shadows, or other effects that are continuous
09:03tone. Whether you are optimizing a special graphic like those or a photograph,
09:08in the Save for Web window the Control to Concentrate on is the Quality slider,
09:12you can also try adding a little blur to reduce file size, and to make your
09:16JPEG even smaller, you can try toning down its contrast and saturation in the
09:21source image.
Collapse this transcript
Adding metadata
00:00Photoshop CS4 has some new controls for including copyright information and
00:05other metadata in a JPEG or other optimized web image. I'm going to optimize
00:10this PSD file for the web, saving it out as a JPEG. But before I go into the
00:15Save for Web and Devices window to do that, I'm going to add some metadata to
00:19the source file.
00:20In Photoshop I'm going to go up to the File menu and down to File Info. In the
00:25File Info dialog box there are a number of categories of information called
00:30Metadata that could be added to this file. If I click on the Camera Data tab
00:34here, you'll see that there is already some information attached to this file
00:38that came directly from the photographer's camera.
00:40I am going to go back to the Description tab. The most important information
00:44for most photographers is down here in the copyright area. To attach copyright
00:49information to the source file, I'm going to go to the Copyright Status field,
00:53and change it from Unknown to Copyrighted. Then in the Copyright Notice area,
00:58I'm going to type the photographer's name. I'll enter a copyright symbol by
01:03pressing the Option Key and the G key on a Mac, or holding the Alt Key on a PC
01:08as I type 0169, and then I'll type the date. I'm also going to enter a title
01:14for this photo. I'll go up to the Document Title field and I'm going to
01:17type-in, Surfing in Oxnard, California. I could enter more information here,
01:23but that's enough for now. I'm going to go into this other tab, IPTC, which is
01:28the acronym for this International Press Organization that uses metadata, and
01:32here I'm going to type-in some contact information. I'll start typing the
01:36photographer's name, and it fills that in for me automatically from the other
01:40entry. And I could put in some address information. When I'm done, I'll click
01:47OK to close the File Info dialog box.
01:51Now I'm ready to optimize the image for the web. I'll go to the File menu and
01:55choose Save for Web & Devices. I've covered the other settings in this window
01:59in other movies, so I'm going to go right down to the Metadata menu here, which
02:03is new in this version of Photoshop CS4. From this menu I can choose whether to
02:08include in web optimized JPEG copy of the file, any or all of the information
02:13from back in the File Info dialog box. I could choose to add no metadata, or
02:18just the copyright information, the Copyright and Contact information,
02:22everything except the camera information that I showed you, or all the
02:25information that's in that File Info dialog box.
02:28Generally I just include copyright and contact information. I'm happy with the
02:32fact that that hasn't increased the file size, so I'm going to accept that and
02:36all the other settings here and click Save to open the Save Optimized As dialog box.
02:42I am going to save this file on my Desktop, and I'm going to go to the format
02:46area and save not only the image, but also some simple HTML code, and I'll
02:51click Save. Now I'm going to go out to the Desktop, where I'll see what
02:55Photoshop has saved. Here's an HTML file, and here is an images folder. If I
03:00open the images folder, there is the JPEG. I'm going to open that JPEG in
03:04Photoshop. I see the copyright symbol here in the title bar in Photoshop, and
03:09that appears because I chose Copyrighted as the Copyright Status back in the
03:14File Info dialog box in the source file. I'd like to see what's in the File
03:18Info dialog box in this JPEG copy of the file.
03:21So with the JPEG selected here, I'm going to go up to the File menu and down to
03:25File Info, and I can see that in the IPTC Contact tab, I do have the contact
03:31information. And if I go back to the Description tab, I can see that I have the
03:35Document Title, and the Author, and the copyright information. And in the
03:39Description tab the JPEG retained to the copyright information that I added to
03:43the source file. But if I go to Camera Data tab, none of that data is there,
03:48because I chose only to save the Copyright and the Contact information with the JPEG.
03:53I am going to cancel out of this dialog box, and I'm going to go out to my
03:56Desktop again to show you the HTML file that Photoshop created. I'll open that
04:01in a Web browser, and this Web browser is like most will show me the source
04:05code. In Safari I'll go to the View menu and down to View Source. Notice that
04:09it saved the copyright information that I added as a comment in the HTML code.
04:14And the title that I gave to the photo is now the title in the HTML code. So
04:19that if I look back at the Web browser I can see that title here at the top of
04:23the Web browser window.
04:24By the way I probably wouldn't use that bit of HTML code in my final website,
04:29but I might actually use it during the development phase to show someone I'm
04:32working how the image would look in a Web browser.
04:35So as you can see the new Metadata menu in the Save for Web & Devices window
04:39offers some useful options for saving Copyright, Contact, and other information
04:44with your web optimized images.
Collapse this transcript
Optimizing graphics as GIFs
00:00GIF, some people say JIF, is an ideal format in which to optimize graphics that
00:06have a large areas of solid color, like a logo, an illustration or text.
00:10When you optimize a GIF, you will try to make it as small as possible,
00:13but keep it looking good.
00:15I am starting here with this .PSD file that's a Photoshop document file to
00:19optimize it as a GIF for the web, I'll choose File > Save for Web & Devices. In
00:24the Save for Web & Devices Window, I'm going to use the 2-Up tab this time. You
00:28could use the 4-Up or the Optimize tab.
00:31On the left side here is the original PSD file and on the right side is a copy
00:36of the file as it will look optimized as a GIF with the settings that you see
00:40over here on the right. And the most important of those settings is also
00:43displayed underneath the GIF preview over here. This is telling me that at the
00:47moment this GIF contains 32 colors. The maximum number of colors that a GIF can
00:52contain is 256. I'm going to go ahead and change the number of colors in the
00:57file to 256, so you can see what that looks like.
01:01I'll go to the Colors field up at the top right, and I'll choose 256 from the
01:05drop-down menu, and then in the Color Table I can see all of the 256 colors
01:11that are currently in this GIF preview. There are many more colors than that in
01:14the original PSD file, particularly around the edges of objects like this blue
01:18circle where there are multiple shades of blue that help make the edge of the
01:22circle look smooth, and the same is true around the edge of the type here and
01:26the other objects in the graphic.
01:27When I optimize it as a GIF, all of those colors are indexed down to the
01:31limited number of colors here in the Color Table. The main thing that you can
01:35do to reduce the file size of the GIF is to reduce the number of colors in it.
01:39Right now this GIF with 256 colors will be 16.78 kilobytes. I'd like to see if
01:45I can get that number down. The approach I usually take is to go up to the
01:49colors field and start reducing the number of Colors in the file by choosing
01:53these presets. So I'll choose 128 and I'll keep my eye on the file, it looks
01:58good to me. Down here is see that I have reduced the file size to 14.53
02:03kilobytes, and I'll just continue to do that in this menu, moving down to 64 colors.
02:08I think that still looks good. I'll try 32, I'm still happy with that, and 16,
02:15now at 16 I'm starting to see the image degrade a little bit around the edge of
02:19the black type, the blue circles and the orange highway sign. I'm seeing some
02:24jagged edges.
02:26So I probably wouldn't take it down this far. But just to show you how this
02:29works, I'm going to take the Colors all the way down to 2, and as you can see
02:33almost everything goes away, because there are now only two colors here, green
02:38and black. And here's how the graphic looks with only 4 colors, with 8 colors
02:42it's getting a little better. Although you can see that the orange of this sign
02:45is gone, because there is no orange in the Color Table. So I think that 32 was
02:50the best choice here. I'll go back to 32 Colors in this file.
02:54Now my file size is 11.12 kilobytes. Another thing that I can do to try to
02:58reduce the file size is to go to the Dither field and reduce the amount of
03:02Dither. Dithering is the computer's attempt to simulate a color that isn't here
03:07in the Color Table. Dithering can make some images look better, particularly if
03:11there are gradual transitions between colors, like a gradient for example. But
03:15dithering often increase file size. So I'm not just going to reduce the Dither
03:20here, I'm actually going to turn it off all together from this menu right here,
03:23I'll choose No Dither, and I can see that I have reduced the file size even
03:27further by doing that, and I think the image still looks pretty good.
03:30Another thing I can do to bring file size down in a GIF is to go to the Lossy
03:34field and add a little bit of Lossy compression. I'll click the arrow to the
03:37right of the Lossy field and I'll pull the Lossy slider up a bit. I don't want
03:41to go too far with Lossy compression or the image will degrade. That choice
03:46reduces the file size even further. Now I'm under 10 kilobytes.
03:50Another thing that I can try in order to reduce the size of this GIF is to
03:54change the color reduction palette right up here, which basically is a formula
03:59that determines which colors, in this case, which 32 colors will populate the
04:04Color Table. The Selective color palette, which is currently selected, is very
04:08similar to the Perceptual and the Adaptive palettes.
04:11All three of those look at the original source image and select colors from the
04:14image, but each one by using a different formula. The best approach here is
04:18just to try each one and see which one creates a smaller file with the best
04:22appearance. So right now it's set to Selective and my file is 9.402K. If I try
04:29Perceptual, I see that the file size decreases further. Now it's 9.115K, and it
04:35still looks good. Let's try Adaptive, and that actually reduces the file size
04:39the most, down to 8.945K. Before I leave this menu, I want to show you one more
04:45menu choice here, and that's the Restrictive palette.
04:48Watch what happens when I choose this. I've actually lost so many of the
04:53original colors that I can't see some of the objects in my optimize GIF. What
04:57the Restrictive palette does is shift the colors in the original file to web
05:02safe colors, and in the Color Table you can see that all these colors are web
05:05safe, because they have a small diamond in their center. So the Restrictive
05:10palette is not the right choice here, and in many cases it's not the right
05:14choice. I generally stick with the Selective, Adaptive or Perceptual palettes.
05:19So now I have an image that's less than 9 kilobytes. So I click the Save button
05:24and the Save Optimized As dialog box, I'll Save to my Desktop, and I'm just
05:28going to Save Images Only. I'll click the Save button, and then I'm going to go
05:32out to my Desktop to find the GIF that I just created. I'm going to open that,
05:36and in Photoshop, I'm going to go to the Arranged Documents menu and choose
05:40this 2-Up view, so that I can compare the GIF on the right to the original
05:44image on the left. I think this GIF looks quite good, it's certainly is much
05:48smaller, and it's in a format that can be viewed online.
05:52So those are some techniques for optimizing a graphic as a GIF. Start with an
05:56image that has large areas of flat color, reduce the number of colors in the
05:59GIF, try reducing the amount of dithering and adding some lossy compression to
06:04get the GIF as small as possible, but keep it looking good.
Collapse this transcript
Locking GIF colors
00:00 There will be times when you are converting a graphic to a GIF and you want to
00:04 retain the original colors from the graphic. For example, let's say that this
00:08 is a company logo and these are the corporate colors and you need to match
00:11 these colors when you put the logo online. Here's how you can do that.
00:15 I am going to go to the File menu at the top of the screen, and down to Save
00:18 for Web & Devices. I'm going to use the 2-Up view to optimize this image. On
00:23 the right is my preview of the image as a GIF; on the left is the original. At
00:27 the bottom of the preview I see that I currently have 128 colors in this GIF,
00:31 and that the file is pretty big, over 22 kilobytes.
00:35 I would like to get the file size down. I know that the main way to reduce file
00:38 size in a GIF is to reduce the number of colors. So I'll come up to the Colors
00:42 field here, I'll click, and I'm going to see how this looks with only 64
00:46 colors. Most of it looks okay, but the stripe here at the top has lost its
00:50 color. Instead of the light green that was in the original, it's a dotted light
00:54 blue. Those dots are dithering, which is Photoshop's attempt to simulate a
00:58 color that's not currently in the color table of 64 colors.
01:02 I could try to fix that by turning off Dithering. I'll go to the menu Label
01:06 Diffusion, and I'll choose No Dither. But now, although I don't have dithering
01:10 in that stripe, it has shifted color and it's not the original green. In
01:14 addition to that, if I look at the file size, I see that the file is still
01:18 pretty big. So I actually need to reduce the colors even further. Let's try
01:22 that, I'm going to go to the Colors field and I'll choose 16 colors. Now I see
01:27 that not only that top stripe, but all their stripes have shifted color. What
01:31 can I do to fix that?
01:32 I can try using the Lock feature on the Color Table, and here's how that works.
01:37 I'm going to go back to the Colors field and set it back to 128 colors so that
01:42 all three stripes match the original. Then I'm going to move over to the
01:46 Abbreviated toolbox on the left side of the Save for Web & Devices Window and
01:50 select the Eyedropper. With the Eyedropper, I'm going to move over at the green
01:54 stripe and click on it. Over in the Color Table, I see that light green
01:58 highlighted, and I'm going to go to the Lock icon under the Color Table and
02:02 click it to lock down that color.
02:04 I can see that it's locked because it has a small square in the bottom right
02:08 corner. I'm going to do the same with all of the other major colors here.
02:12 I'll click on the blue stripe with the Eyedropper tool, and I click the Lock to lock
02:16 it down in the Color Table. The purple stripe, and lock it down. This orange
02:22 background, I'll lock that down, this yellow, I'll lock that down, the Beige,
02:28 and lock that, the blue in the flowers, and lock that. I'll even try to select
02:33 the orange in this line art. I'm going to zoom in to do that by pressing
02:37 Command++, that's Ctrl++ on a PC, and then with my Eyedropper I can get right
02:43 in there and find that orange in the line art, and I'll lock down. Then I'll
02:48 zoom back out by pressing Command+-, that's Ctrl+- on a PC.
02:53 Now that I have the major colors locked down, I'm going to try to reduce the
02:56 number of colors in the file, again by going to the Colors field and I'll try
03:01 64 colors, and this time I haven't lost any of the colors. I'll take this down
03:05 even further to 32 colors, and the colors are still true to the original.
03:10 I'll try 16 colors, and I think the file still looks all right. I'm losing a little
03:15 bit in these orange outlines, but it's not bad, and I have managed to reduce
03:19 the file from over 22 kilobytes when I started, down to 12 kilobytes.
03:24 Over in the Color Table I can see that all the colors that I have locked down
03:27 are still there among the 16 colors that are left. If I locked out a color that
03:32 I really didn't want to retain, I could always go back to the Colors field and
03:36 switch back to a larger number of colors, then come into the Color Table and
03:40 click on the color I didn't want to lock down, and then go to the Second panel
03:44 menu in the Save for Web & Devices Window, which is right over here to the
03:48 right of the Color Table. From there I could choose Lock or Unlock selected
03:52 colors, or I could even unlock all the colors. I'll just unlock that one
03:56 selected color for now.
03:57 And you can see that it no longer has the little square indicating that it's
04:01 one of the locked down colors, and now I could try the whole process again
04:04 using the Lock feature to control exactly which colors are retained, as I map
04:09 the many colors in the source file over here, down to a limited number of
04:13 colors in the GIF.
04:15
Collapse this transcript
Optimizing graphics as PNGs
00:00 PNG is another file format that you can use to optimize images for the web.
00:04 It comes in two flavors. PNG-8 is similar to GIF. PNG-24 can retain soft edges on
00:11 an object against the transparent background. I'll show you how to optimize in
00:15 both PNG formats in this movie.
00:17 This image is a good candidate for the PNG format, because it's made up of
00:21 solid colors. I'm going to go to File > Save for Web & Devices, and you can see
00:26 that over here on the right, I have the same image optimized as a GIF. I've got
00:31 the number of colors set to 32, the Selective palette, and Dither is turned
00:36 off. I would like to compare the results of optimizing this as a GIF, to
00:40 optimizing it as PNG. So I'm going to click on the Preview on the left, which
00:45 currently is set to show the original .PSD source file.
00:48 I'll move up to the Preset button and from here I'm going to choose PNG-8, 128
00:53 Dithered. The preset in this menu are just collections of various optimization
00:57 settings that you can use to get started when you are optimizing an image. As
01:01 you can see the Format menu is now set to PNG-8, I'll set the number of colors
01:06 to 32, and I'll turn off Dither, and now these settings match the settings that
01:12 I've chosen for the GIF on the right. There is one difference between the
01:15 available PNG-8 settings and the available GIF settings, and that is that PNG-8
01:20 does not offer the opportunity for lossy compression that GIF does.
01:25 Now I'm going to compare the two images. I think they both look pretty much the
01:29 same, but if you look down at the bottom left of each image, you'll see that
01:33 the PNG-8 version is 9.122 kilobytes, and the GIF version is actually bigger.
01:38 It's almost 11 kilobytes. So in this case PNG is the better choice. The lesson
01:44 is that when you have an image made up of areas of solid color like this one,
01:48 it's worth trying both PNG-8 and GIF optimization settings, because there are
01:53 times when a PNG-8 will look just as good, but be smaller in file size than a GIF.
01:57 Now that's if you choose PNG-8 from the Format menu. Notice that there is
02:01 another choice here, PNG-24. I'm going to cancel out of Save for Web & Devices,
02:06 so that I can show you that on another file. And that's this flowers2.PSD file.
02:13 Here I have some soft edged flowers on a transparent background. I'm going to
02:17 zoom in using the Command++ or Ctrl++ shortcut. So you can that the edges of
02:23 these flowers are made up of semi- transparent pixels. Some of those edge pixels
02:28 are more or less transparent than others, and that's what makes the edges look
02:32 soft and smooth.
02:33 I would like to be able to retain these semi-transparent edge pixels when I
02:37 convert this file from a PSD file, which does show multiple levels of
02:42 transparency to a format that I can display on the web. So I'm going to choose
02:46 File, and go down to Save for Web & Devices. The original PSD is up here, and
02:52 down here I have my optimized preview, which happens to be set to GIF right
02:56 now. And as you can see it doesn't look very good either at the soft edges or
03:00 in this gradient here. So I'm going to go over to the Format menu on the right
03:04 and I'm going to change the format to PNG-24.
03:08 Now the image looks really good, and if I zoom in by pressing Command++ that's
03:12 Ctrl++ on the PC, you can see that even in the PNG preview, I do have
03:17 semi-transparent edges on the flower. The downside is that the file size is
03:22 really big. It's over 60 kilobytes, and that's often the case with PNG-24.
03:27 Another drawback of PNG-24 is that it's not recognized uniformly by all Web browsers.
03:33 So if you do have an image like this with a soft anti-aliased or feathered edge
03:38 against a transparent background, you can try PNG-24, but in many cases rather
03:43 than settle for a large file that's not going to be seen the same way in all
03:47 Web browsers, you may be better off trying the tricks that I'll show you for
03:50 optimizing transparent GIFs, which I'll be covering in an upcoming chapter.
03:55
Collapse this transcript
5. Making Web Backgrounds
Designing web backgrounds
00:00Some of the images you'll create in Photoshop will be displayed as webpage
00:05backgrounds, rather than as foreground images. A background image is a single
00:09file that gets coded in the HTML code of a webpage to repeat itself over and
00:14over across and down the background of a webpage in a viewer's browser.
00:19So an image that starts out as a small graphic in Photoshop like this can get
00:24converted to a GIF or a JPEG, coded with HTML and result in a background that
00:29looks like this. Here you see that small image I just showed you in Photoshop
00:34repeating itself over and over across the background of a page in my Safari
00:38Web browser. The advantage of a file being coded as a background image is that
00:43the viewer's browser has to download only one image file and that image file
00:47can be pretty small to fill the background of an entire webpage.
00:50Before I show you how to create background images for the web in the other
00:54movies in this chapter, I would like to bring up some design considerations for
00:58you to keep in mind when you are designing background images. One of those is
01:01the size of the image. The smaller the background image that you make in
01:05Photoshop, the more times it will repeat across the webpage and that will give
01:09a very different look to the page. So for example, here is a webpage background
01:14made with the smaller version of the same image that made this webpage background.
01:18So when you are creating a source file in Photoshop for a background, size your
01:22image for the look that you had in mind. The color of the background image is
01:26also important. Try to stick with colors that don't contrast with one another,
01:30like this. Because a high contrast image can be quite distracting when it's
01:35repeated over and over, and it can make it difficult to see and focus on
01:39foreground elements that are placed on top of it on a webpage.
01:43Another design consideration is the brightness of the background image. If you
01:48plan to use dark foreground elements, either text or objects like this, then
01:53make a background image that's light. If you plan on using light foreground
01:57elements like this text, then you don't want a light background as well,
02:00because the foreground elements will be hard to read. And the opposite is true too.
02:04You can see in this example that dark foreground elements are hard to read
02:09on dark backgrounds, but light foreground elements are easy to read.
02:13And finally, try to stay away from medium value background images, because
02:17colors of almost any brightness value will be hard to read against a medium
02:21background. When you are designing web backgrounds, choosing the right size,
02:24color and brightness can have a big effect on the way your page looks in a
02:28viewer's browser. Keep these factors in mind as you work through the movies in
02:32this chapter, where you will learn how to make different kinds of background
02:35images in Photoshop.
Collapse this transcript
Optimizing a tiling background
00:01Optimizing and tiling background image is just like optimizing any web graphic,
00:05except that you have the option to preview the image repeating itself across
00:09the Web browser. And when you save the optimized image, you have the option to
00:13tell Photoshop to write HTML code. That's right. Photoshop will write code that
00:18will cause the image to act as a repeating background tile.
00:21To show you how all that goes, I'll start with this small PSD file, and I'll go
00:25into the Save for Web & Devices window by choosing File > Save for Web &
00:29Devices. The preview on the right is currently set to GIF.
00:34I know this is going to optimize best as a GIF or a PNG because it's flat art.
00:38The file size is currently only 2.098 kilobytes. But I'm pretty sure I can get
00:43this lower by reducing the number of colors in the Colors field.
00:47So just as I would normally do with a GIF, I'll come to the Colors field, and
00:51check each one of these presets until I start seeing the image degrade which it
00:55does at four colors.
00:57So I'll increase the colors from 4 to 8. I'm also going to turn off Dither,
01:02which usually results in a file savings too, and now if I look at the size of
01:06this image, it's only 1.431 kilobytes. When this file is coded to repeat across
01:12and down a page in a Web browser, the entire page background will way in at
01:16this small size.
01:18So far, I haven't done anything differently than I would normally do when
01:21optimizing a GIF. But if I want to, I can preview this image as a repeating
01:25background tile in a Web browser.
01:27I will have to set it up as a background image, and to do that, I'll go to the
01:31panel menu at the top right of the window, and I'll choose this setting, Edit
01:35Output Settings.
01:37That opens this Output Settings dialog box, and here I can specify some
01:42properties of the HTML code that Photoshop will write. For now, I'll leave that
01:45at its defaults. I'm going to go up to the Settings field, and I'm going to
01:49choose Background Image, and then I'll click OK.
01:53Now, if I come down to the Preview button at the bottom of the screen, I'll see
01:57a preview not of this single image, but my Web browser will open and I'll see
02:01my small graphic repeating itself across and down the entire face of my Web
02:07browser, and that's true no matter how small I make the Web browser or how big
02:11I can stretch it out.
02:13The preview also shows some information about the optimized image, and it shows
02:17the HTML code that Photoshop has written to preview the image here in my browser.
02:21I am going to close the browser window now, and I'm back in the Save for Web &
02:25Devices window. If I'm satisfied with the way the background looked in the Web
02:28browser, I could save at this point, or if there was something that I wanted to
02:32change about the background, I would click the Done button here, so that
02:36Photoshop remembers the settings I currently have in this window.
02:40Then back in Photoshop proper, I could change something about the file. I could
02:43change its colors, or I could change its size for example. To change its size,
02:48I'm going to go to the Image menu at the top of the screen and choose Image
02:51Size, and there in the Pixel Dimensions area, I'm going to reduce the Width of
02:56the file. Maybe I'll make it 60 pixels, and the Height is automatically reduced
03:00to match, and I'll click OK.
03:02Now, this graphic is smaller. So when I go back to the File menu, and down to
03:07Save for Web & Devices and preview again in a Web browser, I'll get this
03:11smaller background pattern in my Web browser.
03:14So now, I'm done previewing and I'm satisfied with this background. I'll close
03:18the Web browser, and it's time to save the optimized image. As usual, I'll
03:22click the Save button here at the bottom of the Save for Web & Devices window,
03:26and that opens the Save Optimized As dialog box.
03:29Now, I have a choice to make. I can choose to save images only which will save
03:33only the small single GIF, or I can choose HTML and Images which tells
03:39Photoshop to write HTML code that will cause the GIF to repeat itself across a
03:44web-page in a browser.
03:45So I'm going to choose that and I'll click Save. Now, I'm going to go out to my
03:49Desktop to see what Photoshop made and saved for me. I have two new items here.
03:55One is this Images folder and if I look inside the Images folder,
03:59I see that I have a GIF.
04:00I am going to open that GIF, and here it is in Photoshop. If I go up to the
04:05Arrange Documents menu, I'll choose the 2-Up Tab, and I can see my GIF on the
04:09right, and my original PSD file on the left. I think the GIF looks pretty good.
04:15I'm happy with that optimization job.
04:17Now, I'm going to go back out to the Desktop to take a look at that HTML file
04:21that Photoshop wrote. I'll open that in a Web browser and here in the browser,
04:25I can see my small graphic tiling across and down to fill the browser window.
04:30I am going back to my Desktop for a moment to show you the HTML file again and
04:35emphasize that you don't have to use this HTML file. The GIF that's saved along
04:39with it here in the Images folder is just like any other GIF.
04:43You could bring this GIF alone into a site building program like Dreamweaver
04:47and create HTML code with background image properties there. But having
04:51Photoshop create this HTML file along with the GIF, gives you a couple of options.
04:57If you are working with a team, you could give them the HTML file along with
05:02this Images folder and its GIF, so that they could see how the graphic would
05:06look tiling across the page background, or if you were making a simple web
05:10page, you could bring this HTML code along with the Images folder and its GIF
05:15into a site building program, and use it as a starting point to build out the
05:19rest of the page.
Collapse this transcript
Building symmetrical background
00:01You can take advantage of the fact that a background image repeats itself or
00:05tiles over and over in a page background in a Web browser to create a
00:09symmetrical background design from a single image in Photoshop. This technique
00:13makes use of the skills you've learned in the last couple of movies about
00:17designing and optimizing a tiling web page background.
00:20The basis for the symmetrical background that I'm going to make is this small
00:24icon, which is located on a transparent layer in Photoshop. I'm going to start
00:28out by expanding the canvas around this icon, so that the icon sits squarely in
00:33the middle of a slightly larger graphic. I'll go up to the Image menu at the
00:37top of the screen and down to Canvas Size. In the Canvas Size dialog box, I'll
00:42make sure that the Anchor is set in the middle of this diagram, and then I'll
00:46go up to the Width field, and I'll set the size of the graphic to 200 pixels in
00:50Width, and 200 pixels in Height, and I'll click OK.
00:54I would like to fill in this transparent area with white as my page background
00:59color, and I'll do that on a separate layer. To make a new layer underneath the
01:03current layer, layer 1, I'll select layer 1 in the Layers panel, and then I'm
01:07going to hold down the Command key on a Mac, or the Ctrl key on the PC, as I
01:11come down and click the second icon from the right at the bottom of the Layers
01:15panel here, which is the Add New Layer icon. I now have a blank layer too at
01:20the bottom of the layer stack.
01:22With that layer selected, I'm going to set my foreground color in the toolbox
01:26to white by pressing the D key on the keyboard and then the X key on the
01:30keyboard, and then I'll use the shortcut for filling with the foreground color,
01:34which is Option+Delete on a Mac, or Alt +Backspace on a PC. I'm going to give
01:40these layers some meaningful names. I'll double-click on the layer 2 name in
01:43the Layers panel, and I'll type bg for background, and then click off. And I'll
01:48double-click on the layer 1 layer name in the Layers panel, and I'm going to
01:52type corners, and you see why in a moment when I start to make this pattern,
01:56and I'll click off.
01:58Next I'm going to copy the contents of the corners layer, which is the blue
02:01icon into my computer's clipboard. I'll go to the Select menu at the top of the
02:05screen and choose All, or I could just use the keyboard shortcut Command+A on a
02:10Mac or Ctrl+A on a PC, and then to copy, I'll go to the Edit menu, and I'll
02:16choose Copy, or use Command+C on a Mac or Ctrl+C on a PC, and that copies the
02:22contents of the selected corners layer.
02:25Now I want to eliminate this border of marching ants. So I'll go to the Select
02:29menu again, and I'll choose Deselect, and the shortcut for that is Command+D on
02:34the Mac, or Ctrl+D on a PC. You may not like to use shortcuts, but if you are
02:38going to remember any, those are some to remember because they are used so often.
02:43Now I'm going to use a filter. With the corners layer selected I'm going to go
02:47to the Filter menu at the top of the screen, and down to Other, and over to
02:51Offset. I'm going to set some options in the Offset dialog box. First I'll set
02:56undefined areas to wrap around, and then I'm going to go to the Horizontal
03:00Offset field, and I'm going to type 100 there and I'll also type 100 in the
03:05Vertical Offset field, and I'll click OK.
03:08And that has started the symmetrical pattern for me. If you remember, I copied
03:12that icon a few moments ago and I still have that copy in my computer's
03:16clipboard. So I'm going to paste that down into the center of this image, by
03:20going to the Edit menu and choosing Paste. Now I have a copy of the icon in the
03:25middle of the image again, and I have a new layer in the Layers panel, which
03:29I'm going to rename, Center, and I'll click off of that.
03:33So this is the graphic that's going to repeat itself across my web page
03:37background creating a symmetrical pattern. To set this up as a tiling
03:40background, I'll go into the File menu, and down to Save for Web & Devices.
03:45I'll go over to the panel menu at the far right of the Save for Web & Devices
03:49window, and choose Edit Output Settings. And here I'm going to tell Photoshop
03:55that I want this image to be a background image, by going to the Settings menu
03:59and choosing Background Image, and then I'll click OK.
04:02Now I'll come down to preview the results by clicking the Preview button here
04:06at the bottom of the Save for Web & Devices window, and that opens my Web
04:10browser showing me a preview of my repeating symmetrical background, and I also
04:15get a preview of some information about the optimized GIF that I have just
04:19created, and about the HTML code.
04:22The purpose of previewing is to see if there is anything you would like to
04:24change about the image, and there are a couple of things that I would change
04:27here. First of all I think I would make the blue icon a little lighter, so that
04:32it's not as contrasting with the white background, and therefore doesn't
04:35distract too many foreground images I might want to add to it. And I can see
04:39here in the information about the optimized file. That it is 4.2 kilobytes and
04:44contains 128 colors.
04:45I would like to change that color optimization setting, so that I can try to
04:49get the file size down here. So I'm going to close my Web browser preview, and
04:54I'm back in the Save for Web & Devices window. Here I'm going to click to
04:57activate the window, and then I'm going to press Done, so that Photoshop
05:01remembers the settings that I currently have, and that closes the Save for Web
05:05& Devices window and brings me back out here to Photoshop proper. Here I'm
05:10going to change the color of the blue icon. With the center layer selected, I'm
05:15going to click on the Eye Dropper tool in the toolbox, and then I'm going to
05:18come in and click on top of the blue on one of the icons in my graphics. That
05:23sets the foreground color to that blue.
05:25I am going to click in that foreground color to open the Color Picker, and in
05:30the Color Picker I'm going to choose F for Saturation, then I'm going to drag
05:34down in this vertical slider to choose a less saturated version of light blue.
05:39I think this will be less contrasting against the white background. So I'll
05:43click OK, and now I want to fill the icon on the center layer with that color.
05:49I don't want to fill the entire layer. So I'm going to click the pixel lock
05:52right here, and then I'll press the shortcut for filling with the foreground
05:56color, which is Option+Delete on the Mac, Alt+Backspace on the PC, and I'll do
06:01the same to the corners layer. I'll select it in the Layers panel, click the
06:05Lock Transparency icon, and press Option+Delete or Alt+Backspace.
06:09Now I'm going to go back into the Save for Web & Devices window by choosing
06:13File > Save for Web & Devices. Now that I have re-colored the graphic, making
06:17it less contrasting, I'm also going to try to lower the file size here by going
06:23up to the Colors menu and reducing the number of colors in the file. I'd
06:27imagine I can go as low as perhaps as 8 colors here, and I see that the file
06:31still looks good, but it's much reduced down to 1.981 kilobytes. I'm satisfied
06:36with that, so I'm going to click the Save button, and in the Save Optimized As
06:40dialog box, I'll make sure that I have navigated to my desktop, and I'm going
06:44to make a new folder there. I'll call this one sym bg for symmetrical
06:50background, and I'll click Create. Then I'll go to the Format menu, and I'm
06:54going to choose HTML and Images from this menu, so that Photoshop not only
06:58saves an optimized GIF for me, but also writes some HTML code that will make
07:03this GIF repeat as a page background in a Web browser.
07:06I'll click Save, and then I go out to my Desktop to see what Photoshop made.
07:11There is my sym bg folder, I'm going to look inside that folder, and there I
07:15see an HTML file, as well as an Images folder. Inside the Images folder is a
07:21GIF. I'll open the GIF so you can see that it is my pattern tile that I just
07:26made. Then I'll go back to my desktop, look inside the sym bg folder again, and
07:31I'm going to open that pattern1.html that Photoshop wrote for me. And that will
07:36open the HTML file with my symmetrical page background in a Web browser.
07:41This entire background was made from that one small file. So that's how you can
07:46make a symmetrical patterned background for a webpage, using just one small
07:50image that will download quickly to your viewer's browser, and repeat itself to
07:54fill the entire page background.
Collapse this transcript
Building a striped background
00:00Because a background image will repeat itself over and over in a viewer's Web browser,
00:04you can make some really fun striped backgrounds using small graphic
00:08files like the one that you see here. This is just a horizontal file that I
00:12filled with areas of color. I used the Rectangular Marquee tool to come in and
00:17select areas like this, and then to fill the selection with the foreground
00:21color. So I'm just going to press the Option+Delete key on my Mac to fill with
00:25color, that's the Alt+Backspace key on a PC, and then I'll press Command+D on a
00:30Mac or Ctrl+D on a PC to remove that selection, and now I have another little
00:35bar of color there.
00:36I am going to optimize this image for the web by going to the File menu and
00:40down to Save for Web & Devices. As I have shown you in other movies in this
00:44chapter, I'm going to try to reduce the number of colors in the file by going
00:47to the Colors field here and choosing a lesser number of colors. I'll try 32
00:52colors. I could spend more time reducing the file size even further, but I'm
00:56going to leave that for now. And my next step is to designate this image as a
01:00repeating background. As I have shown you in other movies, I'm going to go to
01:04the panel menu at the top right of the screen, choose Edit Output Settings, and
01:08there change the Settings menu to Background Image, and click OK.
01:13Now comes the fun part, which is previewing this image in a Web browser.
01:16I'll go to the Preview button at the bottom of the Save for Web & Devices windows,
01:20click there, and you can see that that small graphic file is filling my entire
01:24Web browser with this nice striped pattern. But that's not all; I would like to
01:29show you a couple of variations on this pattern. I'm going to close out of the
01:32Web browser, click inside the Save for Web & Devices window to activate it, and
01:37click the Done button.
01:39Back here in Photoshop I'm going to turn this bar on its head, by going to the
01:44Image menu and down to Image Rotation, and over to 90 degrees clockwise. And
01:49now I have a vertical bar rather than a horizontal bar, and that's going to
01:52completely change the orientation of the stripes in my browser background.
01:56I'll go to the File menu again, and back to Save for Web & Devices. I still have all
02:01the settings that I chose a moment ago, so all I have to do is preview the file
02:05by clicking the Preview button. And as you can see I now have horizontal
02:09stripes, rather than vertical as the page background in this Web browser.
02:13I am going to close the Web browser one more time to show you one more
02:16variation on this theme. I'll click back in Save for Web & Devices, and this
02:20time I'll just cancel to go back to Photoshop. I'm going to set my foreground
02:24color to a little bit darker color so that you can see what I'm about to do
02:28more clearly, and then in the toolbox I'm going to click on the Brush tool and
02:32select the Pencil tool. With a small Pencil tool, I'm going to come in and I'm
02:36just going to draw some squiggly lines across some areas of this bar. And then
02:45I'm going to go back and get my Brush tool, and I'm going to open the Brushes
02:49panel from the Window menu at the top of the screen. The Brushes panel offers
02:54lots and lots of options, for different Brush Sizes, and brush tips, and
02:59different ways of painting.
03:00I am going to do something really simple here, which is to stick with a very
03:03small hard brush, this 5 pixel brush, click on Brush Tip Shape to activate the
03:08settings down here, and then I'm going to go to the Spacing slider, and drag it
03:12to the right. Keep your eye on that Preview bar at the bottom of the screen
03:16which is showing me how this brush is now going to paint, and as you can see,
03:20it's now going to paint with dotted lines. So with that brush I'll come back
03:24into my image, and I'm just going to drag across the bar in a few places to add
03:29some dotted lines. There are so many brushes to play with here.
03:33I will try one more. This Oblique brush down here. I'll select to that, and
03:37then move its Spacing slider over until I see some dots, and then I'll come
03:41into the image, and I need to make my brush smaller, so I'm going to press the
03:45Left Bracket key on the keyboard. That's the key right next to the P key. When
03:49that's small enough, I'll come in and draw with that Oblique brush.
03:53I'll leave it that for now, but I urge you to experiment with the brushes. Now
03:57I'm going to go back to the File menu and down to Save for Web & Devices and
04:01I'm going to preview one more time. And you can see that all of these
04:05interesting little effects have been added to my stripes. I'm going to save
04:09this background now by going out of the browser again, and in the Save for Web
04:14& Devices window, and clicking the Save button.
04:17Here in the Save Optimized As dialog box, I'm going to make sure that I have
04:21navigated to my desktop, and I'll click on the New Folder button, and I'll
04:25create a new folder called striped bg. I'll make sure that the Format is set to
04:30HTML and Images, so that Photoshop writes that HTML file that's going to repeat
04:35this background image across a Web browser, and then I'll click Save.
04:38I will go out to the Desktop again and look inside the striped bg folder, where
04:43I'll find the Images subfolder with the stripes.gif and stripes.html, which
04:48Photoshop wrote for me. I'm going to open stripes.html in a Web browser, and
04:53now you can see the full effect of the horizontal stripes that I just made.
04:57If you are a fan of striped webpage backgrounds, I hope that you give this
05:00technique a try. Backgrounds like this are quick to make in Photoshop, and it's
05:05quick to download in the viewer's browser.
Collapse this transcript
Using a full-screen background
00:01If you want to make a full screen background that appears to fill a viewer's browser,
00:04you have a couple of challenges. First of all, when you code an image
00:08as an HTML background image, it will always repeat or tile as I have shown you
00:13in other movies.
00:14So if your goal is a full screen background that fills a viewer's browser,
00:18but doesn't appear to repeat, then you have to make the dimensions of that image
00:22larger than the viewer's browser window.
00:25The problem is you can't control the resolution at which a viewer sets his or
00:29her monitor, and you can't control whether the viewer stretches his or her
00:33browser to the full resolution of the screen.
00:36So for example, let's say that you create a background file that's 1024x768
00:43pixels, and a viewer has a monitor that he or she has set to that screen
00:49resolution, 1024x768. If, but only if, that viewer has pulled the browser
00:55window out to fill the entire screen, then that viewer will see the entire graphic.
01:00If he or she hasn't stretched her browser window out that far, she will only
01:04see part of the background graphic. And if another viewer has his or her
01:08monitor set to 800x600 resolution, then that viewer won't see the entire
01:12graphic either.
01:13At the other end of the spectrum, a viewer may have a really big monitor like a
01:1730-inch Apple Cinema Display set to high resolution. If you have designed a
01:22full screen graphic for a lower resolution than that, your background will
01:25repeat. So what's the solution to all of these different situations?
01:29The best you can do is to do some market research and try to determine the
01:33maximum monitor resolution at which your particular viewers are likely to view
01:37your website. Then design your full screen background to be slightly larger
01:42than those dimensions. And don't' forget to checkout how the design will look
01:46at a lower resolution too.
01:48If you have access to the exercise files for this course, there is a file there
01:52that will help you to see how your full screen graphics may look in browsers of
01:57different sizes. If you don't have access to the Exercise Files, you can make
02:00your own version of this file.
02:02Let me show it to you. It's here. It's called browser_sizes.PSD. If you wanted
02:07to make your own file like this, you would create a new transparent file of
02:111024x768 pixels, and you would use your rulers and guides to measure out 480
02:18pixels from the top and 640 pixels from the left side, and a couple of other
02:23lines at the other dimensions that you see here, and then use the Pencil tool
02:28to draw in these lines. What can this file do for you?
02:31Well, if you have a full screen graphic that you have designed like this one,
02:35bigstripes.PSD, I'm going to go to the Arrange Documents menu which is in the
02:40application bar on a Mac, and in the menu bar on a PC. From that menu, I'll
02:45choose the 2-Up View.
02:46Then I'm going to bring browser_sizes. PSD into my bigstripes.PSD graphic. To do
02:53that, I'll make sure that the Move tool is selected in the toolbox, and I'll
02:57click on browser_sizes.PSD to make sure that's activated, and I'll make sure
03:02that the single layer in that file is selected as well. Then I'm going to click
03:07in browser_sizes.PSD, hold down my Shift key, and drag and then release my
03:13mouse when I'm over bigstripes.PSD, and then release the Shift key.
03:18Now, I'm going to close browser_sizes. PSD, and I can see that I have the two
03:23files together. The various dimensions are on the top transparent layer, the
03:27resolutions layer, and the image is on the background layer below. What these
03:31lines are showing you is how much of this particular full screen graphic a
03:35viewer would see in a browser set to view 640x480 pixels or 800x600 pixels, or
03:431024x768 pixels.
03:46To show you that more clearly, I'm going to click on the Tab of this document
03:49and drag out of the application frame, so the document is floating free. Then
03:53I'll go down to the bottom-right corner and I'm going to drag in, so that you
03:57can see that at 800x600 pixels for example, this is the amount of this
04:02particular full screen background graphic that a viewer would see.
04:05If a viewer had a particularly small monitor, 640x480, then this is how much of
04:12the full screen graphic he or she would see. Although these days that's pretty
04:16small for a monitor. I'll pull that all the way out again.
04:19Let's say that I'm satisfied with the way this full screen graphic will look at
04:23all the different resolutions that a viewer might use. Then I would go ahead
04:27and optimize this PSD file for the web.
04:29First, I would make this Resolutions layer invisible by clicking the Eye icon
04:33to its left, and then that layer won't be included in the optimized file. Then
04:38I'll go to the File menu at the top of the screen, choose Save for Web &
04:41Devices, and I'm going to optimize this big graphic just like I would any other
04:46GIF, as I have shown you how to do in other movies in this chapter.
04:49This is a GIF preview down here. I can see that it's pretty big right now,
04:5320.24 kilobytes. To get it smaller, I'm going to go up to the Colors field in
04:57the Controls on the right-hand side of the window, and I'm going to reduce the
05:01number of colors here. I'll try 16. I'll go down to 8. I think I might even be
05:08able to get away with 4 colors in this image, and yes it still looks good.
05:12I am going to turn off Dither, and I'm going to add a little bit of lossy
05:16compression, and I have been able to get the file down to 13.59 kilobytes. Now,
05:22what I want to do is to set the file up to be a background image. So I'm going
05:26to go to the panel menu at the top-right of this window, and choose Edit Output Settings.
05:31I will go to the Settings menu, and I'm going to choose Background Image, and
05:36click OK. Then I'll save the optimized file. I'll make sure I have navigated to
05:41my desktop and there I'm going to create a new folder, which I'll call fullbg
05:47for full background. Click Create.
05:50Make sure that Format is set to HTML and Images, so that Photoshop writes an
05:55HTML file for me that codes this image as a background image, and then I'll
05:59click Save. I'm going to go out to my desktop, and there is my fullbg folder.
06:04I'll look inside, and inside is bigstripes.html as well as an Images folder
06:10containing the optimized GIF. I'm going to open bigstripes.html in my default
06:15browser. To show you what this full screen graphic will look like on my screen,
06:19which happens to be set to 1024x768.
06:23You will notice that part of the graphic is cut off at the bottom, and that's
06:26because as in almost any browser, there are some browser elements up here that
06:31take up some of that space.
06:33So the trick when you are designing a background that you want to fill your
06:36viewer's entire browser window is to make it big enough, so that it won't
06:39repeat on any of your target viewers' screens, and to come up with a design
06:44that you think is acceptable when viewed at various browser sizes.
Collapse this transcript
6. Optimizing Transparent Graphics
Understanding transparency
00:00A transparent web graphic is an image surrounded by transparent pixels,
00:05like the one that you see here. The gray and white checkerboard represents
00:08transparency in Photoshop. When a graphic like this one is placed on a website
00:13the page background will show through the transparent areas of the image, so
00:17that the graphic doesn't appear rectangular.
00:19The advantage of using transparent graphics is that they offer visual interest
00:23in a web environment that really is dominated by rectangularity, in the shape
00:27of browser windows, in many of the rectangular page layouts that you see out
00:31there and particularly in web graphics which are inherently rectangular unless
00:36you optimize them with transparency using the techniques that you will learn in
00:39this chapter. Take a look at the edges of the graphic in this PSD file and you
00:44will see that they look really smooth, when viewed at 100%.
00:48To show you how that's done, I'm going to turn that black layer back on by
00:52clicking the Eye Icon to its left in the Layers panel and then I'm going to
00:55come in and zoom in on the image by pressing Command++ or Ctrl++ on the PC and
01:01then I'm going to hold down the Spacebar to temporarily change to the Hand tool
01:05and move that image up.
01:06And you can see that the edges of the purple graphic and the yellow graphic and
01:10the orange graphic are all made up of small squares of color. However, when
01:15viewed back at 100% you don't see these squares of color, instead you see what
01:19appears to be a smooth edge and the reason is that these edge pixels are filled
01:24with varying levels of Opacity.
01:26So for example, on the yellow part here you can see that some of the yellow
01:30pixels are opaque, you cannot see through them and others are semi-transparent
01:36and some are more semi transparent than others as they move out toward the edge
01:40of the graphic.
01:41By the way that's what the Anti- aliasing is, if you heard that word. It's a
01:45gradual falloff of semi-transparent pixels that makes the edge of pixel based
01:50graphic look smooth. A PSD file like this one supports this kind of multi-level
01:55transparency and that's why graphics like this can look smooth in the PSD
02:00source file.
02:01But what happens when I convert this source file format, this PSD file to a
02:05Web-ready format, like GIF or PNG-8. In that case the edge won't have
02:10semi-transparent pixels because those formats don't allow multi-level
02:14transparency. To illustrate what I mean, I'm going to go over to the Layers
02:18panel and turn off that black layer, so that once again I have a transparent
02:22graphic or a graphic with a transparent surrounding area.
02:26Then I'm going to go to the File menu and down to Save for Web & Devices. In
02:30the Save for Web & Devices window I'll use the 2-Up tab so that on the left I
02:34can see the original PSD file with this smooth edged graphic and on the right I
02:39can see a preview of the image as it will look optimized for the web.
02:44Right now this is set to GIF. Let's see what happens if I change the format of
02:47the optimized preview to JPEG. Right away I lose the gray and white
02:51checkerboard, which means that I no longer have transparent pixels in this
02:55image. That's because the JPEG format doesn't support transparency at all.
03:00Don't worry because I'll show you how to simulate the look of transparency in a
03:03JPEG in a separate movie in this chapter. But if you really want a graphic to
03:07have transparent pixels that allow you to see through to the background behind
03:11it, you can't use the JPEG format. Well, what can you use?
03:15If I go back to the Format menu and I choose PNG-24, I get my transparent
03:19pixels back and the edges of the graphic look pretty smooth. But this isn't
03:24terrific solution either, because unfortunately although PNG-24 supports
03:29multi-level transparency, much like the original PSD file, that feature doesn't
03:33work in all Web browsers. Beyond that a PNG-24 usually makes really big files
03:39from Photoshop.
03:40So this isn't the solution either. The better choice when you are optimizing a
03:44transparent graphic is to optimize it in the GIF or PNG-8 format. So I'm going
03:49to go back to this menu and I'm going to choose GIF. By the way, just assume
03:53that what I'm showing you in this chapter about GIF is also true of PNG-8.
03:58So with the GIF format I do have transparent graphics here, but take a look at
04:03the edges and you can see that they are really jaggedy. I'll zoom in closer so
04:07you can see that by selecting the Zoom tool and I'll click there and zoom in,
04:11so that you can see that the edges of the transparent graphics that's optimized
04:16in the GIF format are really jaggedy. Particularly as compared to the nice
04:20smooth, semi-transparent edges of the original PSD file.
04:24Now I should mention that you won't see transparency here at all if this box in
04:30the GIF controls is not checked. So you have to have that box checked, but you
04:34still have the problem of the jaggedy edges.
04:37The good news is that there is a way around that and that's what I'm going to
04:40show you in the movies to come in this chapter, where you will learn how to
04:44simulate smooth edged graphics by adding a matte color from this field that
04:49matches the webpage background that you plan to use. And I'll even show you how
04:53to make that work against a patterned webpage background and when you are using
04:58graphics that have soft shadows or glows on them.
Collapse this transcript
Optimizing transparent graphics for solid backgrounds
00:01When you optimize a transparent graphic for the web, the trick is to make
00:05its edge appear smooth rather than jaggedy against a webpage background.
00:09In this movie, I'll show you how to use the Matte control in the Save for Web window.
00:14To accomplish that, when you are optimizing a transparent graphic as a
00:17GIF to place against a solid color webpage background. By the way, what I'm
00:21going to show you here is also true of the PNG-8 format, which is another
00:25possible file format for optimizing a transparent graphic.
00:28The transparent graphic in this PSD file has an Anti-Aliased edge that looks
00:33smooth because it's made up of pixels of varying levels of transparency as I
00:37explained in the movie on understanding transparency. I'm going to go into the
00:41Save for Web & Devices window here to optimize this file for the web.
00:46I'll select the Zoom tool on the left side of the window and zoom in so that you can
00:50see the edges of the graphic more closely.
00:52In the PSD file, you can see that the edges have pixels of varying levels of
00:57transparency and that's what makes the PSD look smooth. But in the GIF preview
01:01on the right, the edges of the graphic are jagged. That's because the GIF
01:05format doesn't support multi-level transparency. Instead every pixel in the GIF
01:10is either fully opaque like these or fully transparent like these.
01:14The challenge is to make the jagged edges look smooth when placed against a webpage background.
01:20I am going to set up a solid color webpage background against which to preview
01:24this image. To do that, I'm going to go over to the box on the far left of the
01:27Save for Web & Devices window that's currently black. Yours may have a color in
01:31it. I'm going to click that box and that opens the Color Picker.
01:35To get some color in this field on the left, I'm going to go to the vertical
01:39bar in the middle and drag the sliders up until I start to see colors.
01:43I'm going to click on an Aqua color, any color will do and then with the S field
01:48selected here, I'm going to drag the vertical sliders down to get a less
01:52saturated version of that blue. I'll choose something like this. It doesn't
01:56matter exactly what color you choose except that in this example a light color works better.
02:00I'm going to click OK and that fills this box with
02:04this light blue color.
02:05This color we will call the eyedropper color. The next step is to set up this
02:09eyedropper color as a webpage background. To do that, I'll go to this panel
02:13menu at the top right of this Save for Web & Devices window and from there I'll
02:17choose Edit Output Settings. I'm going to go to the second menu, the one
02:21labeled HTML, and I'm going to choose Background. That opens the Background
02:25Settings. I don't want to view this transparent graphic as a background graphic
02:30or a repeating tile. So instead, I'm going to choose View Document As Image.
02:36And that tells Photoshop to preview this image as a foreground graphic against
02:40a webpage background.
02:41I am going to skip over the Background Image field here which only comes into
02:45play if I'm going to use an image file that's the source of my webpage
02:49background, instead I would like to use a Solid Color as my webpage background
02:53that comes from instructions in an HTML file. So I'm going to go down to the
02:57Color field and I'm going to change that from None which is the Default to
03:02Eyedropper color which is the Aqua color that I selected in the eyedropper
03:06color box, over here.
03:09And then I'll click OK. Now I'm going to preview the optimized GIF with the
03:14default settings against that light blue background. By going to the Preview
03:18button at the bottom of the screen, clicking and that launches my default Web browser
03:22where you can see the default graphic against the light blue background.
03:25If you look closely, you will see that the edges of the graphic look jagged.
03:29I'll zoom in so you can see that more closely. That isn't the look that I want,
03:33I would like these edges to look smooth. To fix this, I'm going to go back to
03:37the Save for Web & Devices window. I'll close the Web browser and here in Save
03:41for Web & Devices, I'll move over to the GIF settings, I'll make sure that
03:45Transparency is checked, so that I retain these transparent pixels and I'm
03:50going to go to the Matte field.
03:51I am going to click the arrow on the right side of the Matte field and change
03:55it from None to Eyedropper color. This is the same blue to which I set the
04:00webpage background a moment ago. And you can see now that the edges of the
04:04graphic have filled in with that blue color. Now when I preview, the blue edges
04:09of the graphic blend perfectly with the light blue background. I can zoom in to
04:12show you that more closely and that's exactly what I wanted.
04:15So now that I'm satisfied with the preview, I'll close the Web browser and I'll
04:20come back to Save for Web & Devices to save my optimized GIF. I could tweak the
04:25other GIF settings to try to get the file size down but I'm just going to leave
04:29them for now and I'm going to click the Save button at the bottom of the
04:32window. Here at the Save Optimized As dialog box, I'll navigate out to my
04:37desktop, I'll create a new folder and I call this one solid bg for solid color
04:42background and click Create.
04:44I am going to go to the Format field and from there I'll make sure that I have
04:48HTML and Images selected, so that Photoshop writes an HTML file for me that
04:53contains instructions to place this graphic against that particular blue
04:57background. Alternatively, I could choose Images only which would save out just
05:01the transparent GIF without the background.
05:04But for this lesson, I'm going to choose HTML and Images. I'll now click Save.
05:08Now I'm going to go out to my desktop, I'll look inside that new solid bg
05:12folder and there I have an HTML file written by Photoshop, an Images sub-folder
05:17created by Photoshop and inside of that sub-folder, my optimized GIF. I'm going
05:22to open that; I'll zoom in so that you can see that it does have blue pixels
05:27against the edge of the optimized GIF.
05:29Now I'll go back and I'll open that HTML file to view my transparent graphic
05:35with its simulated smooth edges against the light blue background. This same
05:39technique will also work against some patterned backgrounds and that's what I
05:43would like to show you in the upcoming movies in this chapter.
Collapse this transcript
Optimizing transparent graphics for patterned backgrounds
00:00A transparent graphic like this one can be placed against a patterned webpage
00:04background is an alternative to putting it against a solid webpage background.
00:09In this movie, I'll show you how to optimize this transparent graphic as a GIF
00:13and place it against a thin patterned background made from this background tile.
00:18The technique I'll show you works really well with a pattern background made up
00:22of thin lines, like you see here. But I'll also show you that it doesn't work
00:26as well against a background like this that's made up of thick lines.
00:30I'll start off by going back to the thin_ bg.gif image and I'm going to get my
00:35Eyedropper tool in the toolbox and click on the dominant color in this image.
00:39That sets that color as the foreground color in Photoshop's toolbox and that's
00:43all I need the background for. I can close it now, by clicking the X on its tab
00:47and I'm also going to close the thick background.
00:50Now I'm going to optimize this transparent graphic for the web by going to the
00:54File menu at the top of the screen and down to Save for Web & Devices. I'll use
00:59the 2-Up tab and I'm going to select the Zoom tool in the toolbox and zoom in
01:03on the graphic. As I explained in earlier movies, when the GIF settings are at
01:07their defaults, which includes the Matte field set to None, the edges of the
01:11transparent graphic look jagged because the GIF format doesn't support
01:15multi-level transparency.
01:17To start off, I'm going to show you how the GIF looks with the default settings
01:21against a patterned background. I'll go to the panel menu at the top right of
01:25this window and I'll choose Edit Output Settings. In the Output Settings
01:28window, I'm going to go to the second menu and I'm going to choose Background.
01:32Here I'll click View Document As Image, because I want this transparent graphic
01:37to be treated as a foreground image against a background.
01:40I will set up the background here in the Background Image area. I'm going to
01:44click choose and from here I'm going to navigate into my Exercise Files folder,
01:49down to the chapter06 sub-folder and into the 06_03 sub-folder. There I have
01:55two background GIFs, the ones I showed you a moment ago. I'm going to
01:58select the one called thin_bg.gif and click Open. Selecting that GIF here sets it up
02:04to be a repeating background that will tile itself over and over in the Web browser.
02:09It doesn't matter what's set in the Color field because the color of the
02:12webpage is going to be obscured by the repeating background image. I'll click
02:16OK here and back in the Save for Web & Devices window I'm going to go down to
02:20the Preview button and click that to launch my Web browser. In the Web browser,
02:25you can see the thin_bg.gif repeating itself over and over as a background tile.
02:29Here you can see the transparent GIF. If you look at the edge, you will
02:33see that it's quite jaggedy. That isn't the look that I want. So I would like
02:37to go back to the Save for Web & Devices window and try to camouflage this edge
02:41against a patterned background like this one.
02:43I will close the Web browser and in the Save for Web & Devices window I'm going
02:48to go to the Matte field, which is the key to this technique, and I'm going to
02:52choose Foreground Color. Foreground color is that light blue that I set as the
02:57foreground color in Photoshop's toolbox. That fills the edges of my transparent
03:01graphic with the blue from the Foreground Color box.
03:04Let's see how this looks against that repeating background tile. I'll go back
03:08to the Preview button, click it and now I can see in my Web browser that the
03:12edges of my transparent graphic looks smooth and they blend in quite well with
03:17this thin patterned background. I'll zoom in so that you can see that there
03:21actually is a little gap in some places where the darker blue edge crosses the
03:26thin blue lines of this pattern. But back at 100%, you really can't see that
03:30and so this technique works quite well against a thin patterned background like this one.
03:36At this point, I'm satisfied with what I have but I want to take a moment to
03:39show you what this image would look like against my thick background. I'm going
03:44to go back to the panel menu at the top right of the screen and down to Edit
03:47Output Settings. Here I'm going to go to the second menu again and choose
03:51Background again.
03:52Go back to the Background Image Path field and click the Choose button. That
03:56will take me right back into my 06_ 03 sub-folder, where I have this other
04:01background thick_bg.gif. I'm going to select that one and click Open and click
04:06OK and back in Save for Web & Devices, I'm going to go back to the Preview
04:10button and click that and that opens my Web browser again.
04:14What I would like you to see is that the edges of my transparent graphic don't
04:17look as good against this thick background pattern because you can really see
04:21the darker blue against the thick light blue lines in this pattern.
04:25So the lesson to take from this exercise is that if you are going to optimize a
04:29transparent graphic, design a background that's made up of thin lines rather
04:33than thick lines and then use the Matte field in the Save for Web & Devices
04:37window to camouflage the edge of your graphic as I have shown you how to do in this movie.
Collapse this transcript
Optimizing transparent graphics with shadows and glows
00:01You can give a transparent graphic some dimension by adding a layer effect like
00:05a drop shadow or an outer glow to its outer edge. The challenge is to make the
00:09soft edges of the shadow or glow appear to blend in with the colors and pattern
00:13in the web page background that you plan to use. In other movies in this chapter,
00:17I showed you how to use the Matte feature to camouflage the soft edge
00:21of an anti-aliased transparent graphic against various webpage backgrounds.
00:26The good news is that the same technique often works with a soft edge that's
00:30carved not by anti-aliasing, but by a drop shadow or an outer glow. Here I have
00:36a transparent graphic and if I go over to the Layers panel and I click the
00:40arrow to the right of the fx icon, you can see the right of the drop shadow on
00:44the transparent layer. I'm going to turn-on the white layer for just a moment
00:49by clicking in the box to the left of that layer, so that you can better see
00:52the shadow on the graphic.
00:54And then I'll turn the white layer off again by clicking its eye icon so that I
00:58can optimize this image as a transparent graphic. I have another image opened
01:02here and that's thin_bg.gif. I would like to set up this GIF to repeat itself
01:08over and over in a Web browser as a tiling background image, and then I'll
01:12place my transparent graphic on top of that webpage background.
01:15I am going to select my Eyedropper tool here in the toolbox and click in the
01:19dominant color in the tile that's going to make up my webpage background. That
01:23sets that color here in the Foreground Color box in toolbox. And now I can
01:28close thin_bg.gif. It's no longer needed and back in my transparent graphic,
01:33I'm going to start optimizing for the web. I'll go to the File menu and down to
01:38Save For Web & Devices.
01:39I will use the 2-Up tab, which shows me a preview of the optimized GIF on the
01:44right and the PSD file on the left. The first thing I'm going to do here is set
01:49up thin_bg.gif to be the webpage background. So I'll move over to the panel
01:54menu at the top right of the screen and I'll choose Edit Output Settings. In
01:58the Output Settings window, I'll go to the second menu and I'll choose Background.
02:03I want the transparent graphic to be viewed as the foreground image. So I'll
02:07leave Image selected here and then I'll go to the Background Image area and
02:11I'll create a path to thin_bg.gif, which will tell Photoshop to use that small
02:18blue graphic as my repeating background tile.
02:21I click the Choose button, and I'll navigate to my Desktop, and then into the
02:25Exercise Files folder, and then into the chapter06 folder, and finally into the
02:3006_04 sub-folder. There I'll find thin_ bg.gif which I'll select and click Open.
02:38And that creates this path in the background image to thin_bg.gif.
02:43Then I'll click OK.
02:44Notice that in the Preview window here, the GIF doesn't look very good. The
02:49shadow that's nice and soft in the PSD image is blocked in with black here in
02:54the Preview. That's because the GIF settings over on the right are set to their
02:57defaults which includes the Matte field set to None. As you can imagine, this
03:02isn't going to look very good against a patterned background.
03:05I will click Preview button so you can see that that black really isn't what I
03:09would like to have on the edge of my graphic. I can fix that back in the Save
03:13For Web & Devices window. So I'll close my Web browser and back in Save For Web
03:17& Devices. I'm going to go to the Matte field and there I'm going to click the
03:21double-pointed arrow and I'm going to choose Foreground Color.
03:24Foreground Color is the blue that I set as the foreground color in the toolbox
03:29a few moments ago. That fills in all the soft pixels of the shadow from the
03:33original image with that blue color. This doesn't look very good here in the
03:38Save For Web & Devices window but it should blend in nicely with the patterned
03:42webpage background when viewed in a Web browser.
03:44I could go out and preview this again but instead I'm just going to go ahead
03:48and save it. So I'm going to click the Save button at the bottom of this
03:51window. I'm going to create a new folder there which I'll call shadow and then
03:56I'm going to go to my Format menu and make sure that it's set to HTML and Images.
04:01I am also going to go to the Settings menu here and I'm going to choose Other
04:06to open up the Output Settings window, the same one that we saw a few minutes
04:09ago except that this time from the second menu I'm going to choose Saving Files.
04:14I am doing that so that I can show you that Copy Background Images when Saving
04:18is checked and that's the default. So I'll click OK and now I'm going to save
04:23by clicking the Save button. I'll go out to my Desktop and into my shadow
04:27folder, to see what Photoshop made for me.
04:30Photoshop created this Images sub- folder and inside of that I have my GIF with
04:35its camouflaged edge, and I have a copy of the background tile as well.
04:40I'm going to open the HTML file in a Web browser so that you can see the soft pixels
04:44of the shadow blending quite well with this patterned webpage background.
04:49But you should keep in mind that when you are optimizing a transparent graphic
04:53that has a layer effect like this drop shadow or an outer glow, it's
04:57particularly important that the background be composed of thin lines and
05:01non-contrasting colors because the drop shadow moves so far out from the edge
05:06of the graphic, as you can see here, that it wouldn't blend in well with a less
05:09subtle pattern.
Collapse this transcript
Starting with a non-transparent graphic
00:01When you are making a transparent graphic for the web, you will often start out
00:04with a source file like a PSD file that already contains transparent areas,
00:09but it's also possible to add transparent areas to a web graphic even if you are
00:14starting from a source file like this one that has no transparent pixels in it.
00:17Here is how it is done.
00:18I am going to optimize this image by going to File and Save for Web & Devices.
00:23I'm going to select the Eyedropper on the left side of the window, and then I'm
00:27going to come into the GIF Preview over here on the right. What I would like to
00:30do is to eliminate this darker blue all around the image and even in between
00:35the black line and the lighter blue. So I'll just click anywhere on that blue
00:39color to set it as the Eyedropper color over here on the left. To add
00:43transparency to this GIF, all I have to do is go over to the Color Table where
00:47I can see that particular blue highlighted here and then go to the Transparency
00:52icon and give it a click. That remaps all instances of that particular blue to
00:58transparency, as you can see here in the icon and more importantly, here in the
01:02GIF Preview.
01:04Viewers will be able to see through all these transparent areas, even over here
01:07inside the black line, down to the web-page background color below.
01:11I am going to go ahead and set a web- page background color against which to
01:15preview this now transparent graphic. I'll go back to the Eyedropper and I'm
01:20going to use it to select a color right out of the image, this purple, but you
01:23actually can choose any color.
01:25Now, purple is the Eyedropper color and I'm going to go back to the panel menu
01:30on the top right and choose Edit Output Settings. Here I'm going to go to the
01:34second menu and choose Background. I want the graphic to be viewed as a
01:38foreground image, so I'll leave Image selected here and then I'll come down to
01:42the Color field and I'll change it to Eyedropper Color to pick up that purple
01:46that I just chose as the Eyedropper Color and then I'll click OK. At this
01:50point, I could come down and preview the image against the purple background,
01:53but you have seen me do that many times in other movies in this chapter, so I'm
01:57just going to go ahead and save the resulting image.
02:00To do that, I'll click the Save button. I'll navigate to the desktop and I'm
02:05going to create a new folder there called nontrans. You can call it anything
02:09you want. Then I'm going to go to the Format field and I'm going to change that
02:14to HTML and Images so that Photoshop writes in HTML file with that purple
02:19background color in it. And then I'll click Save. Now, I'm going to go out to
02:24my desktop and open that nontrans folder and there I'll find an images folder
02:29that Photoshop made for me with a GIF inside as well as an HTML file.
02:33I am going to open the GIF in Photoshop so that you can see that it indeed has
02:38transparent areas now. Go back to the desktop once again, open the nontrans
02:43folder and open that HTML file in a Web browser and here you can see the purple
02:48HTML background that I just made, showing through the transparent areas inside
02:53the black line and around the light- blue area as well. So, that's how you can
02:58start with the source file that has no transparent pixels and optimize it as a
03:02transparent GIF.
Collapse this transcript
Simulating transparency for JPEGs
00:00When you are working with an illustration, you can optimize it with
00:04transparency in either the GIF or PNG- 8 format, as you have learned in other
00:08movies in the chapter. But there may be times when you have a photograph rather
00:12than an illustration that has transparent areas that you would like to retain
00:16on the web. The challenge is that the JPEG format which is usually the best
00:20format in which to optimize a photograph doesn't support transparency. In this
00:25movie, I'll show you a work around for that problem.
00:27Here I have a photograph and I have knocked out the edges of the photograph so
00:31that it appears to have rounded corners. I would like it to look around it on
00:35the web. So, I'm going to go ahead and optimize it by going to the File menu
00:39and down to Save for Web & Devices. In the 2-Up View, the PSD source file with
00:44its transparent edges is on the left. On the right is a preview of the image
00:49optimized as a JPEG. When the format is set to JPEG here, I automatically lose
00:54all of the transparent areas, and by default, all the transparent pixels fill
00:59in with white. Well, if I want to optimize this as a JPEG to get the best photo
01:04quality, I can simulate the look of transparency.
01:07First, I set a color for the page background. I'm going to take a color right
01:11out of the photo by selecting the Eyedropper tool and coming in and clicking on
01:16one of the light yellows here. And that fills the Eyedropper color box over
01:20here on the left with that yellow. Then I'm going to set the page background to
01:24that same yellow by going to the panel menu at the top right of the screen and
01:28down to Edit Output Settings. I'll go to the second menu and I'll choose
01:33Background. I'll leave Image selected here so that my photograph is treated as
01:38a foreground image. If there is anything in the background image area, I'll
01:42select and delete it because I want to use a solid color for the page
01:45background. So in the Color field I'm going to choose Eyedropper Color, which
01:50is that yellow that I selected a moment ago, and then I'll click OK.
01:54Now, I'm going to preview the image and that's isn't right because I still have
01:59the white pixels around the photograph just set on the yellow background. So, I
02:03need to go back into Save for Web & Devices and do one more thing here and that
02:08is to go to the Matte field which is the key to making this work and change it
02:13to from None to Eyedropper Color to match the background. That fills in the
02:18pixels that have been transparent in the source file with the Eyedropper Color
02:22in the JPEG Preview.
02:24Now, I'm going to click the Preview button again and the photo does look like
02:27it has rounded corners because the yellow areas blend in perfectly with the
02:32web-page background. This simulation of transparency in a JPEG can work well
02:37against a solid background color like this but not as perfectly against a
02:41patterned background. I'm going to close the Web browser and then I'm going to
02:46close the Save for Web & Devices window too by pressing Cancel. And back in
02:52Photoshop, I'm going to click on another image that I have open, yellow_bg.gif.
02:57This is a small file that I have optimized as a GIF so that I can set it to be
03:01a repeating background image on a web page.
03:03I am going to get the Eyedropper tool in Photoshop and I'm going to select the
03:09dominant color here in this GIF to be my foreground color in the toolbox, and
03:13then I can close this GIF and I'm back in my original PSD photograph with its
03:19transparent pixels. Again, I'll go to the Save for Web & Devices window and
03:24with the Preview window selected, I'll go up to the panel menu again and down
03:29to Edit Output Settings.
03:30In the Output Settings window, again, I'll go to the second menu, change it to
03:34Background, leave the document viewed as a foreground image and then I'm going
03:38to go to the Background Image field, I'll click the Choose button and I'm going
03:43to navigate to my desktop and then into my Exercise Files, into my chapter06
03:47folder and into the 06_06 sub-folder, where I have my background GIF that I
03:53just showed you. I'll select the yellow_bg.gif and click Open and then
03:58I'll click OK.
03:59Now, if you remember, I had chosen a yellow out of that background GIF as a
04:04foreground color in Photoshop's toolbox. So what I'm going to do now is to go
04:09to the Matte field and instead of None I'm going to choose Foreground Color and
04:13now I'm going to preview my image, and although, there is a little bit of a gap
04:18here between the photo and the background. It doesn't look too bad, but if I
04:23were working with a less subtle background, this method of simulating
04:27transparency in a JPEG wouldn't be as good.
04:29I am going to close the Web browser and I'm just going to finish this off by
04:33saving, navigating to my desktop, creating a new folder, I'll call this one
04:38jpegtrans and going to the Format field. I'm going to save with both HTML and
04:44Images and then I'll click Save. I'll go out to my desktop and in then
04:49jpegtrans folder, which contains the JPEG and the copy of the background GIF.
04:55I'm going to open the JPEG so that you can see that the area that had been
04:59transparent in the source file is now filled with the yellow from the
05:03foreground color box in the toolbox. I'll go back to the desktop again and I'm
05:07going to open the HTML file that Photoshop made and there you can see it
05:11in my Web browser.
05:12So, that's how you can simulate transparency when you are saving a photograph
05:16in the JPEG format.
Collapse this transcript
7. Creating Navigation Graphics
Building a simple navigation bar
00:01Navigation graphics like buttons and navigation bars are among the most
00:05important web graphics that you will make because they act as a road map for
00:09your viewers to find their way around your website. In this chapter, I'll focus
00:13on how to make static navigation elements like buttons and bars and in a later chapter,
00:17I'll cover how to make graphics for rollover navigation. This movie
00:21covers how to use alignment features and the Shape and Type tools to make a
00:26simple navigation bar.
00:27I am working in this partially created graphic, but you could do this exercise
00:31in a new blank file if you prefer. I'm going to start by setting some guides to
00:36identify where I want to drive out a Navigation Bar. I'll go to the application
00:42bar here on a Mac or to the menu bar on a PC and click on the View Extras menu
00:47and choose Show Rulers. The rulers are displaying pixels and if yours aren't,
00:52you can Ctrl-click on a Mac or right- click on a PC in the Ruler and choose Pixels.
00:59From the Horizontal Ruler at the top of the document, I'm going to click and
01:02drag a horizontal guide and I'll drop it just above the GROUNDSWELL type, then
01:07I'll go to the Vertical Ruler and I'll drag out a vertical guide and I'll drop
01:11that at about 300 on the Horizontal Ruler at the top of the document.
01:16Now, I'm going to create a Navigation Bar in this area defined by the guides.
01:20To do that, I'm going to go down and select a Geometric Shape tool from the
01:24fly-out menu of shape tools here in the toolbox. I'll choose a Rectangle tool
01:29but a rounded rectangle would work too. I prefer to use these shape tools over
01:33making a new layer and creating a Pixel-based Navigation Bar because the
01:37objects created by the shape layers are vector-based and that makes them
01:41eligible for editing in the future. So I could recolor or resize one of these
01:46shapes quite easily as you will see in a moment.
01:49With the Rectangle tool selected, I'm going to go up to the View menu and I'm
01:52going to confirm that there is a check mark to the left of the Snap command and
01:57that in the Snap To fly-out menu, there is a check mark next to Guides. That
02:01will allow me to draw out a shape and it will automatically snap to these
02:04guides so I don't have to be too careful about where I draw it. I just need to
02:08click close to the Guides and start dragging, and you can see that the top and
02:11left side of this shape snapped right to those Guides.
02:15When I release my mouse, I have rectangular shape on its own layer here in the
02:19Layers panel that automatically fills with whatever color is over here in the
02:24foreground color box in the toolbox. Because this is a shape layer, I can
02:28easily resize it by going to the Arrow tools in the toolbox and choosing the
02:33Direct Selection tool. Then I'll click on one of the borders of the shape and
02:38that brings up these anchor points. Now, I can click on the anchor points or on
02:42any edge of the shape and drag to reshape it. So, I'm just going to make it a
02:47little wider. It's also easy to recolor a shape. To do that, I'll go to the
02:52shape layer and I'm going to double- click on the left-most icon on this layer,
02:56which represents the color of this shape. That opens the Color Picker and with
03:02the Color Picker open, if I move my mouse out of the Color Picker it changes to
03:06an Eyedropper and I can move over the image and sample a color like the green
03:10from the GROUNDSWELL logo and that automatically re-colors my shape. I'll say
03:15OK in the Color Picker to close that box and so you can see how flexible a
03:20shape layer is.
03:21When I'm done editing the shape layer, I'm going to click on the right-hand
03:25thumbnail on this shape layer to de- select and to remove the light vector
03:30outline around the shape in the image and then I'm going to get rid of these
03:33guides by going to the View menu and choosing Clear Guides. With the shape
03:37layer selected, I can go to the Move tool and then I'm going to use the Arrow
03:42keys on my keyboard to just nudge that Navigation Bar into place.
03:46Now, I'd like to add some text buttons to this Navigation Bar. To do that, I'm
03:51going to the T tool in the toolbox and I'm going to choose the Horizontal Type
03:55tool. I have already set the options in the Options bar for the Type tool.
04:00I'm going to use Verdana type in a regular style at 12 point, I have set
04:05Anti-aliasing to Strong and I have set the color of the type to White.
04:09So I can just come in and click in the Navigation Bar and I'm going to press
04:13down the Caps lock key so I can type-in uppercase and I'll type HOME. Whenever
04:17I create or edit type, I need to go to the Options bar and click this checkbox
04:22to confirm the type.
04:23So I'm going to do that a few more times to add some more text buttons.
04:26I'll click again in the Navigation Bar and I'm going to type GEAR, click the check
04:33mark. I'll click again and I'll type VIDEOS, check and PHOTOS and check. I
04:41haven't been very careful about exactly where I typed because I'm going to use
04:45the Move tools built in Alignment Options to align all of the various text
04:50buttons here.
04:52To do that, I'm going to go to the Layers panel and there I can see that there
04:55is a separate layer that's been automatically made for each piece of type that
04:59I entered and these are Special Type layers as you can see from the T on the
05:03thumbnail. With the top Type layer selected, I'm going to hold down the Shift
05:07Key as I click on the bottom-most of these four Type layers and that selects
05:11all the layers in between. Then I'm going to select the Move tool in the
05:15toolbox and that brings up the Alignment Options here. I'm going to click on
05:20the first of these buttons, which will align the four pieces of Type by their
05:24tops, and then I'd like to have the same amount or space between each one of
05:28these buttons. So with those four layers still selected, I'm going to go to
05:32this icon, which distributes the contents of these four layers by their
05:36horizontal centers.
05:38Now, I'd like to take all four of those Text buttons and center them on the
05:42Navigation Bar here. So, I'm going to go back to the Layers panel and I'm going
05:46to add the Shape 1 layer to the selected layers. The Shape 1 layer contains
05:51that Navigation Bar. To add that I'm going to hold down the Command key on a
05:55Mac or the Control key on a PC as I click on that layer. And now back in the
06:00Move tool options, I'll click this Horizontal Center Alignment button and that
06:05aligns all four of my buttons on the Navigation Bar. Then I'm going to click
06:09off the four layers in the blank area of the Layers panel to deselect all the layers.
06:14One way to separate Text buttons like this is to add pipes between them. On
06:18your keyboard, you probably have a Pipe key that's on the same key as the
06:22backslash. I'm going to select the Type tool again and then I'm going to come
06:26into the Navigation Bar between the first two buttons. I'll hold the Shift Key
06:30on my keyboard and I'll click the backslash key and that adds this white pipe.
06:35As with any Type layer, I need to accept this type. So, I'll go up to the check
06:38mark on the Options Bar and click.
06:41I could come in and type a couple of more pipes here or I could just duplicate
06:45this single Type layer that I have already made. To duplicate the Pipe layer,
06:49I'm going to hold the Control key on a Mac as I click on this layer, that's
06:52right-click on a PC and from the Contextual menu I'll choose Duplicate Layer.
06:57I'll just click OK on that box and then I'm going to get my Move tool again and
07:02I'm going to click-and-drag the Duplicate Pipe and holding the Shift Key keeps
07:07the second pipe aligned with the first. Notice these pink lines here. These are
07:11called Smart Guides and there is another way to align objects with one another
07:16as you move them around in Photoshop. So I'm going to drag that pipe over
07:19between the next two Text buttons and then I'll go back to the Layers panel,
07:24I'll Control or right-click on this Copy layer, choose Duplicate Layer again,
07:29click OK and then again I'll hold the Shift Key as I click-and-drag with the
07:34Move tool and I'll drop that third pipe in between the last two buttons.
07:39One of the nice things about Type layers is that you can edit multiple Type
07:42layers at one time. So, for example, let's say that I want to change the color
07:46of the three pipes, each of which is on a separate Type layer in the Layers
07:50panel. I have clicked on the top one and now I'm going to Shift-click on the
07:54bottom layer there to select all three. Then I'll get the Type tool again in
07:59the toolbox. Then I'll click on the Color field in the Type Tool Options bar to
08:04open the Color Picker. With the Color Picker open, if I move my mouse over a
08:08color in the Navigation Bar, that color is selected and when I click OK in the
08:12Color Picker, all three pieces of Type are automatically recolored with the
08:17orange that I just sampled from another part of the Navigation Bar. So, those
08:21are some techniques for taking advantage of the Alignment features in Photoshop
08:25as well as the flexibility of shape layers and Type layers to make a simple
08:29Navigation Bar.
Collapse this transcript
Building a simple button with layer styles
00:00Buttons are among the most common web graphics. In this movie I'm going to show
00:04you how to make a simple button using layer styles. Once you learn how flexible
00:09layer styles are, you can tweak and combine them to make unique buttons of your own.
00:13I am going to start by going to the toolbox and selecting from the family of
00:17Shape tools here the Ellipse tool, which is used to make circular and oval
00:21buttons. Then I'm going to come in and I'm going to drag out an oval shape.
00:25That creates a new shape layer in the Layers panel and fills it with whatever
00:30color is in your foreground color box here in the toolbox, mine happens to have
00:33green. So I have a green button. Notice that there is an outline around that
00:37button. That's a vector outline because the shape layer is made up of two
00:41components, colored pixels and a vector outline. If you don't want to see that
00:46vector outline on your graphic, you can just click on the vector thumbnail on
00:50the right side of the shape layer and the outline disappears.
00:54Let's say I want to recolor this button to match this Navigation bar, all I
00:58have to do is double-click the other thumbnail on the shape layer, the colored
01:02thumbnail here and that opens the Color Picker and then I can move my cursor
01:07out of the Color Picker and it changes to an Eyedropper that I can use to
01:11sample a color by clicking on it. That automatically fills the button with the
01:16color that I just sampled and I'm going to click the Color Picker to close its dialog box.
01:21Now, I would like to add some dimension to this flat button. I'm going to use
01:25layer effects to do that. A combination of layer effects is known as a layer
01:29style. With the Shape 1 layer selected, I'm going to go down to the bottom of
01:33the Layers panel and click on the FX button there and then I'm going to choose
01:37one of the effects from this pop-up menu. I'll start with the Bevel and Emboss
01:42effect. That applies a default Bevel and Emboss to the button and it opens the
01:46Layer Style dialog box.
01:48In the menu on the left-hand side of the Layer Style dialog box, there is a
01:52check mark next to Bevel and Emboss indicating that it has been applied to the
01:56contents of the selected layer. And Bevel and Emboss is highlighted there,
02:00which makes these options appear on the right side of the Layer Style dialog
02:04box. I can customize any or all of these options. So as a simple example, I can
02:09take the Soften slider and drag to the right and that will soften the Bevel on
02:14that button. And I have an interactive preview so that I can see the results on
02:18the button because the Preview box is checked by default.
02:22A layer style can be composed of more than one layer effect. Let's say I wanted
02:26to add an inner shadow to the layer style in this button. With a Layer Style
02:30dialog box still open, I can click the check mark next to Inner Shadow to apply
02:34that effect and you can see it immediately in the button, and then if I would
02:38like to tweak some of its options, I click on the Inner Shadow effect and that
02:43brings up the Inner Shadow options here on the right. Here I can do things like
02:47change the Opacity of the shadow to make it a little less obvious, and I can
02:52change the size of the shadow making it softer. I can change its choke. I can
02:57even change the color of the Inner Shadow by clicking on this color box to open
03:01the Color Picker moving to a color area and choosing another color. Maybe I'll
03:06choose a dark-green and clicking OK to close the Color Picker and I could do a
03:10lot more here with the many layer effects available and the many options
03:14available for each effect.
03:16When I'm done creating a layer style, I can either just close this dialog box
03:21or if I wish, I can click New Style and then click OK and that will save that
03:25new style here in the Styles panel. If your Styles panel isn't open, you can
03:30always open it from the Window menu at the top of the screen, but you really
03:33don't even need the Styles panel open to apply a style to a shape.
03:37So, for example, let's say I wanted to add another shape to this Navigation Bar.
03:42With any of the Shape tools selected in the toolbox, let's say the rounded
03:46rectangle this time, I can go up to the Tool Options bar for that Shape tool
03:50and in the Style field there, I can click and I can select my new style from
03:56the panel of styles that appears there. I'll click in the Tool Options bar to
03:59close this menu of styles and then I can come into the graphic and I can draw
04:03out a rounded rectangle and it will have the same style as the button. It has a
04:07different color because I happened to have green selected up here in the color
04:11box for the Rounded Rectangle tool, but the Bevel and the Inner Shadow is the same.
04:16If I wanted to be sure to retain that style for the future, I would then come
04:20to the panel menu on the right side of the Styles panel and I would choose Save Style.
04:25I'm not going to do that right now though.
04:27So that's how you can create a simple button using layer styles. Layer Styles
04:31offer so many options; I hope you will experiment with them so that you can
04:35create your own unique layer style buttons and other navigation graphics.
Collapse this transcript
Creating a navigation bar with Smart Object buttons
00:00Photoshop's Smart Object feature comes in really handy for creating matching
00:05navigation buttons. You can use it to make buttons that are linked to one
00:08another so that a change to one affects all of them. To show you this,
00:12I'm going to start with a simple button that I explained in another movie. This was
00:16made with the Elliptical Shape tool and then I added a few layer effects to the
00:20button shape layer.
00:21I am going to convert the button layer to a Smart Object by holding down the
00:25Ctrl key as I click on the button layer, that's right-click on a PC and
00:29choosing Convert to Smart Object. Notice the new Smart Object icon on the
00:33button layer and notice also that you no longer see the layer effects in this
00:37layer. But they are still there. Photoshop has preserved those layer effects in
00:42the original source content of this Smart Object, as you will see in a moment.
00:46Now I'm going to duplicate this button layer to make another button. To do that
00:50I'll hold down the Ctrl key and click on the button layer or right-click on a
00:54PC. And from this menu, I'm going to choose Duplicate Layer. It's important not
00:59to choose New Smart Object via Copy. That would make another button, but that
01:04button would not be linked to the original.
01:06So I'm going to choose Duplicate Layer instead and I'll choose OK and then I
01:11have a new button copy layer that's also a Smart Object. You can't see the
01:15copied button because it's directly on top of the first button. To move it, I'm
01:19going to select the Move tool in toolbox and I'm going to hold down the Shift
01:23key as I drag to the right. Holding the Shift key constrains vertical movement
01:28and these pink smart guides also help me to align the copy to the original.
01:32I'll release my mouse and then I'll release the Shift key.
01:35I would like to have two more copies of this button that are also Smart
01:39Objects. I could make those the same way I just made the button copy, but I'm
01:43going to show you another way that I think is faster. I'm going to hold down
01:46the Option key on a Mac or the Alt key on a PC and the Shift key and then I'm
01:51going to drag with the Move tool to the right and I'll do it one more time and
01:55now I have four buttons and you can see the four button layers in the Layers panel.
01:59Just paste the buttons out with the same amount of space between them all, I'm
02:04going to make sure I have the top button copy 3 layer selected and then I'll
02:08hold the Shift key as I select the button layer and that selects all four
02:12button layers and now I'm going to go up to the Move Tool Options bar and click
02:16on this icon right here, which will distribute their horizontal centers.
02:20I would like to add some text to each button. Unfortunately, I can't include
02:24that text in the Smart Objects because each piece of text needs to be different
02:29than the other. I'm going to click on the top button copy 3 layer to select
02:32that one, so that the text comes in above all the buttons. Then I'll go over to
02:37the toolbox and select the Horizontal Type tool.
02:39I have already setup all my type options in the Tool Options bar up here and so
02:44I'm just going to come in and type the word Home with the Caps Lock key down
02:48and then I'll go to the Type tool Options bar and click the checkmark
02:52to accept that type.
02:53And then I'm going to make use of the new spring loaded tool feature in
02:57Photoshop CS4 to temporarily switch to the Move tool by pressing the V key and
03:02keeping it held down and then I'll come in and just drag that bit of text into
03:07the center of the button.
03:07I am going to repeat that three more times to add text to these other buttons.
03:13I'll click and I'll type Gear, I'll click the check mark, hold the V key and
03:18reposition that text on its button. I'll click, I'll type Videos, checkmark, V
03:24key, reposition the text. Click Photos, checkmark, V Key and reposition this text.
03:33So now I have got my Smart Object buttons all setup and they are all exactly
03:37the same except for their text. Let's say that I show these to a client and he
03:41says "Nope, I don't like those buttons. I would like buttons with a different
03:45color and a different shape". That's okay because I have to make a change to
03:49only one of these buttons and they all will automatically update with that change.
03:54To show you that, I'm going to select the first button layer, which is the
03:57button on the far left. Changing the color of a Smart Object or making any
04:01change to its pixels has to be done from inside the Smart Object. So I'm going
04:06to come over to the button layer and I'm going to double-click on its Smart
04:10Object icon right here and I'll click OK and that opens a second file in
04:15Photoshop called button2.psb. This is the original content of the Smart Object.
04:23If you look in the Layers panel, you will see those original layer effects. So
04:27I would like to change the color of this button because it's a shape layer. The
04:31way to do that is to double-click the left-hand icon on the button layer. That
04:36opens the Color Picker and here I'm going to move the sliders on the vertical
04:39bar to change the color to something else, maybe this lavender color and I'll
04:44click OK. I could also change one the layer effects. To do that, I'm going to
04:49double-click in the blank area of the button layer to open the Layer Style dialog box.
04:54I would like to change the color of the Inner Shadow from green to a more
04:58purple color to match the new color of the button. So I'm going to click right
05:02on the Inner Shadow Style on the left side of the Layer Style dialog box and
05:06that brings up the Inner Shadow options here, I'll click on a color field to
05:11open the Color Picker and I'm going to move the vertical slider up toward
05:15purple and then I'll click OK.
05:16I will click OK again to close the Layer Style dialog box and of course, that's
05:22not all I could do to the button, I could change its shape for example. To do
05:26that, I'm going to go to the Edit menu and down to Free Transform Path. This is
05:31a path because I have a vector-based shape layer here. I can then come in and
05:36click on any of the borders or anchor point and drag to change the shape of the
05:40button. I'm just going to click on the bottom border and make the button
05:43narrower and then I'll click the checkmark to accept that transform.
05:48When I'm all done making changes to the Smart Object button, I need to save and
05:52close the PSB file. To do that I'll go to the File menu and I'll click Close
05:59and I get this message asking if I want to save the content, yes I do. And it's
06:03important that I save in just the same place as the original PSB. I don't want
06:07to choose Save As and save somewhere else.
06:10That takes me right back into my original PSD file and as you can see not just
06:16the Home button, but all the buttons are automatically updated with the changes
06:20that I made to the single Smart Object button. Because I changed the shape of
06:24the buttons, I would like to move their text. So I'm going to select the top
06:28text layer Photos, the bottom text layer Home holding the Shift key and then
06:32I'm going to select the Move tool and I'm going to drag all four text layers
06:37into place in the center of their buttons.
06:39Using Smart Objects for the buttons themselves insure that all my buttons were
06:43exactly the same to start with and made it a snap to change just one of the
06:48buttons and have the rest automatically update, saving time and effort.
Collapse this transcript
Creating a navigation bar with custom shape icons
00:01 You can use icons to represent the buttons on a navigation bar. This kind of
00:05 navigation is particularly helpful if your audience is international, because
00:09 it doesn't depend on text. You can use Photoshop's Custom Shape tool to create
00:13 navigation icons. Photoshop comes with some pre-built custom shapes like the
00:19 fish and the butterfly that you see here or you can define your own custom
00:23 shape from any image even a photograph. I'll show you how to do both here.
00:27 I am going to start by adding a pre- built custom shape to the partially built
00:31 navigation bar that I have and I want to add a button right here for SUNSPOTS.
00:37 I'm going to go to toolbox and I'll click on the Shape tool slot there and from
00:41 the flyout menu, I'll pass over these geometric shape tools and go down to the
00:46 Custom Shape tool.
00:48 In the Custom Shape Tool Options bar up here, I have a Shape field. I'm going
00:52 to click there and that opens this small menu of pre-built Custom Shape icons.
00:58 I don't see anything here that's relevant to SUNSPOTS, but no worries because
01:02 there are many more icons that ship with Photoshop. To access those, I'm going
01:07 to click on the arrow on the right side of this menu and down at the bottom of
01:11 the list I can see all the different kinds of custom shapes available. ANIMALS,
01:15 ARROWS, BANNERS, etcetera.
01:17 I am going to click All and click OK to replace the default icons with all of
01:23 the icons. Then I'll go to the bottom right corner of the menu and I'm going to
01:26 click and drag down so that I can see as many icons as possible. I'm looking
01:31 for an icon to represent SUNSPOTS and I see something right here that I think
01:35 will do, this graphic of a sun. So I'm going to click there to select it and
01:39 then I'll go back to the Tool Options bar and click in a blank area to close the menu.
01:44 I want to make sure that Style is set to this icon, which means, don't add a
01:49 style and I can choose any color I want from the Color field here. I'm going to
01:53 leave it at black. I'm going to come into the image and holding the Shift key
01:58 to constrain proportions, I'm going to drag out the custom shape and I can make
02:03 this as big or as small as I want because this shape is vector based.
02:08 As I drag, I see these pink lines that are Smart Guides that help me to line up
02:13 the shape with the other icons and with the text beneath it. I'm going to
02:17 release my mouse and then my Shift key and there is my custom shape. There is a
02:22 faint line around it. That's the vector outline. I don't like to see that, so
02:27 I'm going to go over to the new shape layer that was just created automatically
02:31 in the Layers panel and click on this vector thumbnail and then the outline
02:35 goes away. Because a shape is vector- based, I can make the graphic bigger or
02:40 smaller without degrading its appearance.
02:42 So for example, I could go to the Edit menu, choose Free Transform and I'm
02:47 going to hold down the Shift key that constrain proportion and drag on one of
02:50 the corner anchor points to make this slightly bigger. Then I'll go to the
02:54 Options bar and click the checkmark to accept that transform change and finally
02:59 I'm going to get my Move tool in the toolbox and I'm going to drag this
03:02 SUNSPOTS icon into place using the Smart Guides to line up with these other
03:07 icons. So that's how you can use a pre-built custom shape tool to create
03:13 navigation icons.
03:14 I would like to have a button for WARNINGS as well. I didn't see anything in
03:18 the pre-built custom shape icons that I thought would work here. So I'm going
03:22 to create my own Custom Shape icon from a Photograph. I happen to have a
03:27 photograph open already, this flag2.PSD. What I want to do is to select just
03:33 the flag and the stand and to use that as my new shape.
03:36 There are many selection tools in Photoshop and going into all of those is
03:40 outside the scope of this particular course. You will find more on selections
03:44 in Photoshop CS4 Essential Training, but I do want to show you one tool that I
03:49 use all the time and that is the Quick Selection tool here in the toolbox.
03:53 This tool selects by color and tone. So if I come into this image with a
03:58 relatively small brush and with the flag layer selected in the Layers panel and
04:03 I start to drag, the Quick Selection tool runs ahead of me selecting the beach
04:08 and the sky and the sea by their color and their tone and it does a pretty good job.
04:13 I can add to the selected areas by just clicking because the default behavior
04:18 of this tool is to add to the existing selection. Now I went a bit to far there
04:23 and so there are areas that I want to remove from the selection to do that I'll
04:27 go up to the Options bar and click on the third icon from the left and then
04:31 I'll drag over the areas that I want to remove from the selection of the
04:35 background and if I go too far, I can go back and get the Plus icon in the
04:39 Options bar and come in and add back into the selection.
04:43 So I'm adding more to the background that I have selected. I'll even add this
04:47 little bird. I see one more area to subtract, so I'll go back to the Subtract
04:51 icon and add in the rest of the stand. It's not a perfect selection, but it
04:55 will do because all I need is a silhouette to use as my custom shape.
04:59 Now I need to have the flag selected, not the background so I'm going to go up
05:03 to the Select menu and choose Inverse. I can refine the edge of this selection
05:08 by clicking this Refine Edge button in the Options bar and in the Refine Edge
05:12 dialog box I can preview the selection in various ways. I'm going to click on
05:16 the far right icon to preview this selection as a mask.
05:20 I can see that these edges are pretty soft. I would like to crisp up the edges
05:25 and so I'm going to move the Radius slider to the left, the Feather slider to
05:29 the left and then I'm going to move the Contrast slider over to the right and
05:33 that makes the edges pretty hard. Then I'm going to smooth them out by moving
05:37 this Smooth slider over. That looks pretty good to me, so I'll click OK.
05:42 Now that I have a selection, I'm going to convert it into a vector-based path,
05:46 so that I can make a vector-based shape out of it. To make this into a path,
05:51 I'm going to click on the Paths palette here with the Layers palette. If you
05:54 Paths palette isn't open then you can open it from the Window menu at the top
05:58 of the screen.
05:59 I am going to click on the Paths panel. If your Paths panel isn't open, you can
06:03 open it from the Window menu at the top of the screen. At the bottom of this
06:06 panel is an icon that will change the selection into a path. I'll click that
06:12 and now I have a Work Path. I want this to be a real path. So I'm going to
06:16 double -click the Work Path and say OK.
06:18 Now, I'm going to make this into a Custom Shape by going to the Edit menu and
06:23 going down to Define Custom Shape. I'll name my shape flag and click OK.
06:29 And now I can close the flag2PSD image; I don't need it anymore and I'm going
06:34 to go back to the icons image. I'll go back to my navigation bar to add my new
06:39 Custom Shape. I'm going to select the Custom Shape tool again and then in the
06:43 Shape field I click and I want to scroll down to the bottom of all of these
06:48 icons and there I'll find my New Custom Shape icon, the flag that I just made.
06:53 I'll select it and I'll up to the Options bar and I'll click in the blank area
06:58 to close that menu.
06:59 Now, I come into the navigation bar. I'm going to hold the Shift key so that
07:03 the flag doesn't distort and I'm going to drag, to drag out the flag that I
07:08 just made. I'm going to get my Move tool and I'll move that into place using
07:12 the Smart Guides and I think it's a little bit big. So I'm going to go to the
07:16 Edit menu > Free Transform Path, shift and drag a corner and then press the
07:23 checkmark in the Options bar and with the Move tool again I'll tweak the
07:28 position of the flag.
07:30 If I don't want to see the vector outline around the flag, I'll go to the
07:33 Layers panel, where I'll see yet another shape layer that was automatically
07:37 created and I'll click on the vector- shaped thumbnail there and there is my new
07:43 icon made from a photograph.
07:45 I am going to do that for you one more time to create an icon for this SURFSPOT
07:49 button here. I have got another image open. This is a photograph from which I
07:53 have already selected a way, the background. So the palm tree here is on a
07:58 transparent background. Whenever you have a situation like this, you can make a
08:02 selection in just a moment by going to the layer on which the photograph lives
08:07 and holding down the Command key on a Mac or the Ctrl key on PC as you click
08:12 directly on the thumbnail on that layer and that will select the content of the
08:16 transparent layer.
08:17 With this selection I'm going to go to the Path panel. I already have a Work
08:21 Path started there for me, so I'm just going to double-click it and say OK and
08:26 now I have a path around the palm tree. I can deselect by pressing Command+D on
08:30 a Mac or Ctrl+D on a PC and then I'm going to go to the Edit menu and again I'm
08:36 going to define Custom Shape. I'll call this palmtree and click OK.
08:40 I can close the palm tree photograph now and back at the navigation bar I'll
08:45 select Custom Shape tool, I'll go to the Shape field, I'll scroll to the bottom
08:49 of all of these icons and I'll select the palm tree icon which now appears there.
08:54 I will go to the Tool Options bar and click in the blank area to close that
08:57 menu and then holding the Shift key, I'm going to drag out an icon for
09:01 SUNSPOTS. I'll get the Move tool. I'll move that where I want it lining it up
09:05 with the other icons using the Smart Guides and now if I look in the Layers panel,
09:10 I have a third shape layer. I'm going to click on the vector thumbnail
09:14 on that layer to remove the outline from around the palm tree. So that's how
09:17 you can make navigation icons using either pre-built custom shapes that come
09:23 with Photoshop or creating your own unique custom shapes from any photograph or graphic.
09:29
Collapse this transcript
Building a gel button
00:01Gel buttons are everywhere on the web, and there is more then one way to make them.
00:04Here is a method for making a Gel button that applies skills that you
00:08have learned in this course. How to use a shape tool and how to layer on
00:12customize layer effects in a layer style. I hope you will use this lesson as a
00:16starting point, and then add your own spin to get some great looking custom
00:20made buttons. I'm going to start by selecting the rounded rectangle tool from
00:25the Shape tool slot in the toolbox. The radius field in the Tool Options bar
00:29determines how round the corners of the rounded rectangle will be. I'm going to
00:34increase from the default of 10 to around 36, because I want to make a button
00:39that has very rounded edges in a pill shape.
00:41I am going to come into the Navigation bar here, and I'm going to drag out a
00:46button. It fills with black automatically, because that's the foreground color,
00:50and if you notice in the Layers panel it automatically made a shape layer.
00:54I'm going to click off the vector thumbnail on that shape, so that I don't see the
00:58vector outline around the button. Now I'm going to start adding layer effects
01:02to this button. To open the Layer Styles dialog box, I'm going to double-click
01:06in the blank area of the shape layer. That's an alternative to coming down to
01:11the fx icon and choosing one layer effect, as I've shown you how to do in other movies.
01:16In the Layer Style dialog box, I'll add my fist layer effect Color Overlay. To
01:21apply it to this button, I'll check the Color Overlay style here. The default
01:25is red. Red isn't what I want, so I'm going to click on color overlay, and that
01:30brings up the color overlay options in the middle of the Layer Style dialog
01:34box. Here there is a color field, I'm going to click in the color field to open
01:38the Color Picker, and then I can move my mouse outside of the Color Picker and
01:42it changes to and Eye Dropper. I'm going to come over the Swatches panel and
01:45I'm going to sample a light green from the default set of Swatches, but any
01:50light color will do here.
01:51Now, I'm going to click OK to close the Color Picker. The second layer effect
01:54that I'm going to add is a Satin Effect. I'll click on Satin here. And right
01:59away you can see that darker area in the button. I'm going to do some major
02:03customizing on this effect. So I'm going to select the Satin effect in the
02:07Styles list here. I'll start working with the Satin Effect option. The first
02:11thing I want to do is to change the color of this effect, it's too dark for me.
02:15So I'm going to go over to the Color Field here, click, and with the Color
02:19Picker open, I'm going to go back to the Swatches panel, and I'll sample light
02:22green again, but this time after I sample the light green, I'm going to make
02:27the color a bit brighter than the color I used for the Color Overlay effect.
02:31With the B button selected here for brightness, I'll move the sliders on the
02:35vertical color bar up to choose a lighter green, and then I'll click OK. You
02:39can barely see that color here, but you will see it more clearly in just a few
02:43seconds when I change some of these other options. I'm going to change the
02:47blend mode here from Multiply, which darkens, to Overlay, which sometimes
02:51darkens and sometimes lightens, depending on the colors involved.
02:54You can see that the Satin Effect is now lighter in the button. I would
02:57actually like to change it so that it's going straight across the button. So
03:01I'm going to this Angle Wheel, and I'm going to move it up to 90 degrees. Now
03:06I'm going to expand the distance and size of this Satin Effect. I'll put both
03:10of these sliders to about 25. You can also just type numbers in here if you
03:15wish. The Contour field affects the shape of a layer effect. Usually, I
03:19approach Contour by opening the Contour menu, by clicking on the arrow to its
03:23right, and just cycling through the various Contours until I see one that I
03:27like. In this case I'm going to stick with this one, the second from the left
03:31on the bottom. This is the ring contour, and to blend the edges of the effect
03:36with the button a little better, I'm going to choose Anti-alias here.
03:39Now you are starting to really see an effect on the button. I'm going to add
03:42another effect, and that's Bevel and Emboss. I'll check Bevel and Emboss in the
03:46styles list, and then I'll click on Bevel and Emboss, so that I get the options
03:51over here. Keep your eye on the parameter of the button as I check Contour,
03:55which adds a lot more shading around the edge of the button. I'm going to
03:58increase the size of the effect a little bit, I'll put size up to 7 and I'll
04:03soften just a bit as well to get a softer bevel. You can experiment with some
04:07of these settings, because you have an interactive preview going on in the
04:10button as long as the preview box here is checked.
04:13Another important change that I'm going to make in the Bevel and Emboss Effect
04:17is down here in the shading area. For the highlight mode, I'm going to increase
04:22the Opacity all the way up to 100%, and for the shadow mode, I'll take Opacity
04:27all the way down to 0%.
04:29Now I'm going to add an Inner Glow layer effect. So I'll click on the Inner
04:32Glow in the styles list. You can see it here around the parameter of the
04:36button, and then I'll select Inner Glow to bring up the Inner Glow options.
04:40I'm going to change the color from yellow to a green color to match the button by
04:44clicking in the color field and then moving over to green, and I'll click OK
04:49there. And then I'm going to make the Inner Glow darker by changing its blend
04:53mode from screen, which is a lightening effect, to multiply which is darkening
04:57effect. I'm going to increase the Choke field here quite a bit, maybe to about
05:03there, and I'll increase the size as well to bring out that Inner Glow a little
05:08bit more. And now I actually think I'm going to go back and change that green
05:11color making it something darker. So I'm going back to the color field, and I'm
05:15going to darken the green there, and I'll click OK.
05:18One last effect, I'm going to add an Inner Shadow Effect, by clicking on the
05:21checkbox next to Inner Shadow in the Styles list, and then selecting Inner
05:25Shadow. The shadow here at the top of the button is pretty dark right now, so
05:30I'm going to click on the black color in the Inner Shadow options, and I'll
05:35move the sliders up to bring in some color, and then I'm going to click on
05:39green, and then I'll drag the sliders down to get a darker green, black is just
05:45too harsh, and I'll click OK. I would like to increase the size of that shadow,
05:50so I'm going to increase Choke, and I'll increase the size bit too. Now you
05:55really starting to see a Gel Effect in the button caused by Highlights, Shadows
06:00and Bevels in the various layer effects that I have been combining in this
06:03complex layer style I'm making.
06:05Now the next and last effect is not really necessary, but you can add it if you
06:09want, and that's an Outer Glow. I'll select the Outer Glow, and I think it's a
06:14bit bright right now, so I'm going to go to the Opacity slider, and I'm going
06:18to lower that. I'm going to increase the size of the outer glow, and I'm going
06:22to change its color too. So I'll click in the Color box, and instead of yellow,
06:27I'm going to pick a greener color to match the button. May be I'll make that
06:30just a little bit darker as well, and click OK. If I wanted to save this
06:34complex style so that I could apply it to other buttons later. As I have shown
06:38you in other movies, I'll click the New Style button here, and my style would
06:42appear in the styles panel.
06:44For now I'm just going to click OK, and there is a new Gel button. As you can
06:48see the combination of layer effects that I applied to this button had a
06:53dimension and really gave it the look of a Gel button, but remember that the
06:57options that I chose aren't set in stone. You can tweak any of the effects in
07:02this complex layer style to get a unique look for your own Gel buttons.
Collapse this transcript
8. Preparing Photographs for the Web
Following a web photo workflow
00:00 When you are preparing photographs for the web, I suggest that you follow a
00:03 workflow that not only makes you efficient but that also helps you to create
00:08 high quality JPEGs for the web and that helps you to protect your original
00:12 photographs from being permanently altered. Of course, the first step in your
00:16 photo workflow would be to open a photograph in Photoshop. You can just go to
00:20 the File menu and choose Open but another way to do it is to use Adobe Bridge
00:25 and to choose your images visually and open them from there or I can just click
00:29 on this Launch Bridge icon.
00:33 Adobe Bridge is an image management and viewing program. You can use it to sort
00:38 and label and rate and organize image files. All of that is outside the scope
00:42 of this particular course, although you can learn more about Bridge in other
00:46 courses in the lynda.com Library. But what I want to show you now is how you
00:50 can see and then open a file from here in Bridge into Photoshop.
00:54 I am looking for a photograph that I know is in my Exercise Files. To find it
00:59 in Bridge, I can navigate in the Folders panel on the 08_01 sub-folder and that
01:06 shows me in the Content panel thumbnail previews of the contents of that
01:10 sub-folder. As you can see, Bridge can display lots of different file formats,
01:14 JPEG, GIF, PSD, layered Source files, Illustrator files, PDF files, TIFs and
01:22 RAW files.
01:24 You can even preview a Flash animation or a QuickTime movie here in Adobe
01:28 Bridge. If I want to open one of these images into Photoshop, all I have to do
01:33 is double-click the JPEG and it opens in Photoshop ready for editing. I'm going
01:37 to close it now and go back to Bridge so that I can show you what happens when
01:41 I open a RAW file rather than a JPEG.
01:45 This is a RAW file from a Cannon camera. A RAW file is basically the raw
01:50 uncompressed image data from a camera's sensor. If I double-click on this
01:54 photograph, it opens not in Photoshop proper but rather in the Adobe Camera Raw
02:00 interface, which is separate from Photoshop. It's a plug-in. If you would like
02:04 to learn about Camera Raw, you will find other material about this subject in
02:08 the lynda.com Library.
02:10 For now, I just want to show you what I would do with the file for the web. So
02:14 here I might make a few adjustments. I'll drag the Exposure slider over, the
02:19 Blacks slider, maybe I'll add some Clarity and some Vibrance and once I have
02:24 made my adjustments, I'll come down to the Workflow Options at the bottom of
02:27 the screen and make some changes for the web in the Workflow Options dialog box.
02:33 I am going to go to the Space field and change the color space of the image to
02:37 sRGB, which is the recommended color space for images destined for the web.
02:42 I'll also change the Bit Depth to 8-Bit, which is the proper Bit Depth for the
02:47 web, and if I'm going to be preparing the image only for the web, then I'll go
02:51 to the Size field and make that smaller too.
02:54 However, if I think that after I make changes to the image in Photoshop, I
02:58 might want to make a print as well as make a web image, then I would leave the
03:02 size as is, but for now I'm going to make it smaller. I'll talk about
03:06 resolution in the next movie in this chapter but the main thing to remember at
03:09 this point is you don't have to change the resolution. Because when you are
03:13 preparing an image for the web, you are not interested in the number of pixels
03:16 per inch; you are interested in just the pixel dimensions, which I set here in
03:21 the Size menu. Click OK and to open the image in Photoshop with all of these
03:26 changes, I'll click the Open Image button and now I have my image here in
03:30 Photoshop ready to be adjusted or manipulated.
03:34 I suggest that you try to practice Non- destructive editing, keeping the pixels
03:38 in the photograph layer untouched. So for example, let's say that I wanted to
03:43 eliminate the birds from the photograph. I'm working in the Color and Tone
03:47 workspace and I'm going to get the Spot Healing Brush and rather than just come
03:52 right into the photograph layer and try to remove the birds, I'm going to
03:56 create a new layer in the Layers panel by clicking the Add New Layer icon down
04:00 here. And with that new layer selected, I'll go up to the Spot Healing Brush
04:05 Options bar and check Sample All Layers and then I'll come in and click on the
04:10 bird in the sky to cover him up with pixels sampled from nearby and that's all
04:15 taken care of on this new Layer 1, rather than on the photo layer, the
04:19 Background layer here.
04:21 Similarly, if I wanted to make an adjustment, change the image to black and
04:25 white. I would use an adjustment layer rather than making an adjustment
04:29 directly on this Background photo layer. By the way, if you do want to display
04:33 a photo in black and white on the web, you still have to save it out as an RGB
04:37 color mode photo.
04:38 So If I wanted to make this black and white, I could come up to the Black and
04:42 White Adjustment Layer icon here in the new Adjustments panel, select that to
04:47 create a Black and White adjustment layer in the Layers panel and then I could
04:51 tweak the sliders here to make a custom black and white adjustment. I can add
04:55 Type layers, I can add filters and layer effects and manipulate the photo in
05:00 many different ways here in Photoshop.
05:02 But when I'm all done, an important part of the workflow is to save the master
05:06 file as your source file with all of its layers and all of the changes that you
05:10 have made. To do that, I'm going to go to the File menu at the top of the
05:13 screen and down to Save As. I'm going to save on my Desktop and I'm going to
05:19 make a folder there by clicking the New Folder button and I'll call this source
05:23 files and click Create. I'll make sure that Layers is checked here and then
05:29 I'll click the Save button and I'll click OK.
05:31 The source files are important because after you have optimized this photograph
05:36 as a JPEG and placed it on the web, if you wanted to come back and change
05:40 something about it, you would need to come back to the original source file,
05:43 because they are optimized in the JPEG format, which is a lossy file format.
05:47 You don't want to be re-optimizing JPEGs over and over. So you want to come
05:51 back and make changes in the original source file and then re-optimize for the web.
05:57 There are two more steps that I recommend in a photo workflow. The first of
06:01 those is to make a copy of your master file and resize that copy for the web,
06:06 then to sharpen the resized copy. Once you have finished all that, you will be
06:11 ready to take the photo into the Save for Web and Devices window as I have
06:14 shown you how to do in many other movies in this course.
06:18 So that's the workflow that I recommend that you follow when you are preparing
06:21 photographs for the web. I think this will help you to create the best
06:25 photographs for display on you website and to practice productive and
06:29 non-destructive editing.
06:33
Collapse this transcript
Resizing a copy for the web
00:00Resizing a photograph for displaying on the web is an important step in your
00:04photo preparation workflow. I recommend that you resize a copy after you have
00:08edited the original photograph with all of the file layers intact and save the
00:12result as a master source file in PSD format. That's the Photoshop native
00:17format. That will give you the flexibility to make copies of the master in
00:21various sizes for the web and for other uses.
00:24I am working in the Essentials workspace and here I have a master source file,
00:28a photograph to which I have added some edits that you can see over here in the
00:32Layers panel. I have added a Black and White adjustment layer, which I'll turn
00:36on and off for you to see, and I have done some retouching on this layer
00:41eliminating this bird from the sky.
00:43Now I want to resize a copy of this master source file to post on the web.
00:48Before I resize, I'll check the current dimensions of the file. One way to do
00:52that is to go up to the application bar and turn on the Rulers from this View
00:56Extras menu, I'll choose Show Rulers and the horizontal and vertical rulers now
01:01appear in the document window. If the rulers are displaying in inches like they
01:05are here, I'll Ctrl-click or right- click on a PC inside either the horizontal
01:10or the vertical ruler and I'll choose Pixels from the menu that pops up and now
01:15the rulers display pixels to measure the width and the height of this file. I
01:21can get the same information in another form by clicking down here at the
01:24bottom of the document window in the Document Information field. This photo is
01:28currently 1024 pixels wide and 1536 pixels high which is bigger than the size
01:35that I would like it to be for posting on the web. So I move out of this box
01:39and release my mouse and now I begin to make the photo smaller.
01:43To do that, I'm going to go up to the Image menu at the top of the screen and
01:46choose Image Size. In the Image Size dialog box, the first thing that I'll do
01:51is make sure that Resample Image is checked. If the Resample Image box was
01:56unchecked like this, I wouldn't be able to go up here and change the pixels
02:00dimensions in the file, which is what I want to do when I'm resizing an image
02:04for the web. So I'll turn Resample Image back on by checking its box which
02:08tells Photoshop that I want to change the number of pixels in this file or
02:12although I don't recommend it, by manufacturing pixels to add to make the file
02:16bigger. I'll also make sure that the Constraint Proportions box is checked here
02:22so that when I change the height of the photo in pixels, the width will
02:25automatically change proportionately and if I would add a layer styles like a
02:30Drop Shadow or Bevel and Emboss to this image, I want to make sure that Scale
02:34Styles was also checked so that the style would resize along with the image.
02:39Even though I don't have any layer styles in this image, I usually always leave
02:42this checked.
02:44Next, I'll go down to the interpolation method menu here at the bottom of the
02:48Image Size dialog box. Because I'm reducing the size of this file, the best
02:53choice is by Bicubic sharper because it tries to maintain detail in sharpness
02:57while downsizing a file and now I'm ready to change the dimensions of this file.
03:03To do that, I'm going to go up to the Pixel Dimensions area of the Image Size
03:06dialog box and I'll type in the number of pixels tall that I would like this
03:11image to be for my web page. In the Height field, I'm going to type in 200 and
03:16the Width field changes automatically in proportion to this height to 133
03:21pixels wide. If I needed this photo to fit in a particular size box that was of
03:25a different ratio, then I would have to crop the image to get it to fit. Notice
03:30that the total file size is significantly reduced. This is basically the amount
03:34of space that the file will take up in memory or on disk and it has been
03:39dramatically reduced from what it was. 4 .5 megabytes down to 77.9 kilobytes as
03:46a result of reducing the pixel dimensions.
03:48I am going to ignore the Document Sizes field because when I resize an image
03:52for the web in this dialog box, I'm interested really only in the pixels
03:56dimensions up here. I don't have to bother changing the Resolution field down
04:00here because this field refers to the number of pixels that would be allocated
04:04to each inch if the file were printed in inches and so this field is only
04:08relevant if I'm planning to print the image.
04:12Now I'll click OK and that reduces the photo but I'm looking at it now at only
04:1633%. So I'm going to go up to the application bar and choose 100%. Now I'm
04:22going to save the resized file in Photoshop format, so that I have got an
04:25edited, layered version that I can come back to if I need to make any changes
04:30after I have published the JPEG version of the file. I'll go up to the File
04:34menu, choose File > Save As because I don't want to save over the master source
04:38file. In the Save As dialog box, I'll navigate to my Desktop and there I'm
04:44going to make a new folder, I'm going to call this one resized for web and
04:49click Create. In the Save As field, I'll change the name of this file slightly
04:54so I know that this is a version that has been resized for the web and then I'm
04:57going to go down and make sure that Layers is checked and that Format is set to
05:01Photoshop in order to reserve the layers that I have added to the file.
05:05Finally, I'll click Save and I'll click OK.
05:08Now I'm going out to my Desktop, I'll look inside the resized for web folder
05:12and there is the image that I just made, it is reduced in size down to 133 by
05:18200 pixels.
05:20The next steps in the photo preparation workflow that I recommend is to sharpen
05:24this resized version of the file and then to open it in the Save for Web &
05:29Devices window to optimize it and make another copy in the JPEG format for
05:33posting on the web.
Collapse this transcript
Sharpening for the web
00:00Almost every digitized photograph can benefit from some sharpening. Even if you
00:04don't notice at first that the image is soft. I suggest that you sharpen after
00:09you have resized a copy of the file in the size that you are going to post it
00:12on the web and before you optimize the file in JPEG format.
00:16The reason to sharpen after you have resized is that the sharpening setting
00:20that you choose will vary depending on the size of the file.
00:24Here I have a layered PSD file that I have already resized for my website. Over
00:29in the Layers panel, you can see that I have added several adjustment layers
00:32and a retouching layer. I would like to keep these layers in the file but
00:36sharpening will affect only one layer. So before I sharpen, I'm going to make a
00:40composite of all of these layers and sharpen the composite.
00:44I am working in the Color and Tone workspace. I'll click on the top layer here
00:49and then I'm going to go to the panel menu at the right side of the Layers
00:52panel, hold down the Option key on the Mac. That's the Alt key on the PC. As I
00:56select Merge Visible and that creates a new layer here that's a composite of
01:00the content of all the layers below. I'm going to rename that layer sharpen and
01:05now with the sharpen layer selected, I'm going to apply a smart filter. I'll go
01:10up to the Filter menu and down to Convert for Smart Filters and I'll click OK.
01:16Now, if I look at the sharpen layer, I see that there is a smart object icon on
01:21that layer. Converting for Smart Filters allows me to apply sharpening filter
01:26in a way that doesn't directly change the pixels on this layer and in a way
01:30that will allow me to come back later and reedit my sharpening settings.
01:34Now I can come up to the Filter menu and go down to the Sharpen category. I
01:38suggest either using Smart Sharpen or Unsharp Mask. I'm going to use Smart
01:43Sharpen because it offers this nice big preview for you to see and also because
01:48it offers more settings than Unsharp Mask. But it does work in a very similar
01:52way to the Unsharp Mask filter.
01:55By default the Basic button is selected and that offers the settings that you
01:58see here. I'm going to leave the Remove settings at Gaussian Blur. I'm also
02:03going to leave More Accurate checked. This control was designed to give more
02:07accurate blur removal. If you are working on a very large file for print, this
02:11can slow things down but on a small file like this one for the web, you won't
02:14notice any effect. So I'll leave More Accurate checked.
02:18Now I'm going to come to the Amount and Radius sliders. I'm going to exaggerate
02:22those so that I can show you how sharpening works. I'm going to drag Amount all
02:25the way over and I'm going to increase Radius to a larger number than I
02:29normally would use and now you can see that the image in the preview is very
02:32crispy looking. I'm going to zoom in by clicking the plus button underneath the
02:37preview. Now normally I would not zoom in to this percentage when I was
02:41sharpening but I want to show you what sharpening does.
02:44The sharpening filters look for edges of high contrast. For example, the black
02:50of the surfer's pants against the white of the wave. At those high contrast
02:54edges, the filter makes the light pixels lighter and the dark pixels darker and
02:59that gives the illusion of sharpness. You can control that effect with the
03:03Amount and the Radius sliders. The Amount slider effects how light or how dark
03:08those edge pixels will become. So keep your eye on those pixels as I move the
03:12Amount slider way down to more like 90 and you can see that the lightening and
03:17darkening edge effect is much more subtle.
03:19The Radius slider determines how many pixels out from those high contrast edges
03:24will be affected by this sharpening. I usually keep the Radius pretty low, I'm
03:28going to go maybe down to .7 and now you can see there is just a thin line
03:33along the edge of light pixels and dark pixels.
03:37I notice that there is a hallo of light pixels around the surfer's head and the
03:41lightening is particularly noticeable along his right leg. The good news is
03:45that with Smart Sharpen, you can control the amount of sharpening in the
03:48highlights separately from the amount of sharpening in the dark areas.
03:52To do that, I'm going click on the Advanced button here and that offers the
03:56Shadow tab and a Highlight tab here and I'm actually going to go back to 100%
04:01view. I can still see that there is a little hallo of light around the surfer's
04:06head and along his right leg. So I'm going to drag the Fade Amount slider up,
04:10maybe to around 15. That adjusts the amount of sharpening in the highlights.
04:15I don't want to go too far because then I'll also loose my sharpening in the
04:18rest of the highlights in the water here. I'm also going to increase the Tonal
04:22Width slider, which controls the range of highlights that are affected by this
04:26Fade Amount setting. So I'm going to drag that up until I see the white line
04:31along the surfer's right leg start to disappear. I think that looks a little
04:36better and I'll leave the Radius setting as it is.
04:39Now I'm going to click OK to accept these sharpening settings and I'll do a
04:43before and after comparison in my image. That's how it was and that's how it
04:49is. If I wanted to make a change, I can always go back into the Smart Sharpen
04:54filter because I have the foresight to make this into a smart filter. So I can
04:59double-click on Smart Sharpen and that reopens the dialog box. I could go back
05:03to the Sharpen tab, for example, and I could sharpen a little bit more and
05:07click OK.
05:09The other advantage of having your smart filters is that a smart filter comes
05:13with a layer mask of its own and I can use that layer mask to target exactly
05:18the area that's going to be sharpened. To do that, I'm going to go over to the
05:22toolbox and I'm going to select the Brush tool.
05:25I have got a pretty large 200 pixel soft brush selected and I have black as my
05:30foreground color in the toolbox. I'm going to come over to the Layers panel and
05:34I'm going to click on the layer mask, here on the Smart Filters layer and then
05:39with black and a soft brush, I'll paint over the areas of the photo that I want
05:43to protect from the sharpening that I just applied.
05:46So I'm going to all around the edges, so that the main thing that sharpened is
05:50the surfer himself in the middle and I haven't painted there. I'm going to
05:53Option-click on that mask so that you can see that I have painted around the
05:57edges with black. All of those areas will be protected from the sharpening
06:00settings. The areas that are white will have the sharpening applied and those
06:04that are grey will have a lesser amount of sharpening. I'll Option-click to
06:09come back to normal view.
06:11So as you have seen, sharpening can really add some punch to your photographs
06:14and if you make use of the features that I just showed, you can use sharpening
06:18to draw the viewer's eyes directly to the subject. So don't forget to sharpen
06:22all your photographs before your optimize them for the web.
Collapse this transcript
9. Laying Out Page Comps
Starting a new file from scratch
00:00Whether you are building a navigation bar, a layered web graphic or entire
00:04webpage comp, if you are starting from scratch in Photoshop, your first step
00:09will be to make a new file.
00:10In Photoshop's New dialog box, you will encounter some terms like Color Mode,
00:15Bit Depth and Resolution, all of which you will hear about in this movie.
00:19So let's say that I'm about to create a new blank file in which I'm going to
00:23build a webpage layout. Before I begin building a layout, it's a good idea to
00:27so some research to try to determine the best size for the layout. I have tried
00:32to guesstimate the setup in which my particular audience is likely to view the
00:36web page that I'm building. In other words, what platform it really be on; Mac
00:40or Windows, what Web browser will they most likely use and what will be the
00:44display resolution of their monitors?
00:46If I get some answers to that from my research, then I'll go ahead and simulate
00:50that setup on a computer and make a screenshot of the Web browser as I have
00:55done here. To make a screenshot, you can either use the screenshot commands
00:59that are built into your operating system or you can use a separate screenshot
01:03application. Here is the screenshot that I have made of the Safari Web browser
01:08opened on a Mac with my display resolutions set to 800X600. What I want to do
01:13with this with this file open in Photoshop is to measure the content area that
01:17I can see here.
01:18To do that, I'm going to go to the toolbox. In this slot where I normally see
01:22the Eyedropper tool, there is a tool called the Ruler tool. I'm going to select
01:27that one and then I'm going to come into the screenshot and I'm going to start
01:31at the top of the content here, not including the tool bars that are the part
01:34of the Web browser above that.
01:36So I'll click where the content begins and drag straight down and before I get
01:40to that scroll bar at the bottom, I release the mouse and I get this figure 447
01:45pixels in the tool options bar as the height of the content area. I'll make a
01:49note of that and then I'll do the same thing starting from the left side of the
01:53content area and over to the right, stopping before I get to the scroll bar and
01:58that gives me another number up here.
02:00Now I round out these two numbers, I get about 780 pixels of width and 440
02:06pixels of height that a viewer could see with this setup without having to scroll.
02:10So those are the numbers that I'll use as I create my webpage layout in Photoshop.
02:15I am going to close this screenshot for now and go up to the File menu and
02:20choose New. Here in the New dialog box, I can give the file a name. I'll call
02:24this homepage_comp and I don't have to add the file format. That will be added
02:30automatically when I save the file. The Preset is set to Default Photoshop
02:34Size. There are some other options here, but I'm going to leave that at the
02:37Default Photoshop Size and fill in all these fields to myself.
02:41First, I'll setup the width and height of the web page layout that I'm making.
02:45Because I'm designing for the web and not for print, I'm going to change the
02:48units of measurement over here from inches to pixels and when I do that in the
02:53Width field, the Height field automatically changes to pixels also and then
02:58I'll type in the dimensions that I just figures out: 780 pixels of width and
03:03440 pixels of height.
03:05The next field is the Resolution field. Because I have set the dimensions of
03:08this file in pixels up here, it really doesn't matter what number is in the
03:12Resolution field. It doesn't have to be 72 as you may have heard, because in
03:17this dialog box in Photoshop resolution just means the number of pixels that
03:21would be allocated to every printed inch if the file were printed.
03:26I don't intend to print the file, I'm making it for the web and the size on
03:30screen will be fixed by the number of pixels of width and height that I have
03:34entered here regardless of what's in this resolution box. So for example,
03:38notice that width and resolution of 72, the image size reported over here on
03:42the right is 1005.5 kilobytes. If I were to type a different number in the
03:47resolution filed, say 300, the image size stays the same. I'll go ahead and put
03:52that back to 72, because I know some people are more comfortable with that but
03:56it really doesn't matter.
03:58Now I'm going to move to the Color Mode field and I'm going to leave that set
04:01to RGB color. Color Mode is the color model that will be used to describe
04:06colors in the image. When you design for the web, color mode should always be
04:10set to RGB color, because a Web browser can't read these other options: CMYK
04:14color, Grayscale color or the other choices here and this is true by the way,
04:19even if you are creating a file that you want to have a pure black and white on the web.
04:23The next field is for Bit depth. Bit depth is the amount of color information
04:28in the image. Although Photoshop support 16-Bit images, today's Web browsers
04:32don't. So I leave this set to 8 bit. Then I'll move to the Background Contents
04:37field. I can set this to white or to whatever color it happens to be in the
04:42Background Color box in the toolbox or if I'm making a transparent graphic, I
04:46could choose Transparent here.
04:48Whatever you choose here isn't really crucial, because you can always change
04:52the background color later. I'm going leave this set to White and I'll just
04:56open up the Advanced area here so that you can see the Color Profile field is
05:00set to sRGB because that happens to be the working RGB color space that I have
05:06set in my color settings as I have described in another movie and this is the
05:10best color profile for a file that you are making for the web and the Pixel
05:14Aspect Ratio, I'll leave it at the Default, it's not relevant.
05:17I am going to close the Advanced area by clicking this arrow and then I'm going
05:21to click OK to open this new file that's all ready to be worked on in
05:25Photoshop. I'm going to save the file. I'll go to the File menu and notice that
05:29the Save option is not available. It's grayed out. That's because this file has
05:33never been saved. So instead, I'll choose Save As and in the Save As dialog
05:38box, I'm going to navigate to my Desktop. I'll make sure that Format is set to
05:42Photoshop, because I want to make a file that has lots of layers and other
05:46Photoshop proprietary features in it. So I'm going to use the native .PSD file
05:51format and I'll click Save.
05:54The blank file is now ready for me to build into a webpage comp as I'll show
05:58you how to do in other movies in this chapter.
Collapse this transcript
Storyboarding
00:00It's wise to plan out each major page in a website by creating a storyboard,
00:05sometimes called the wireframe to block out content areas, like your navigation
00:09elements, text blocks, image areas, any space you want to reserve for
00:14advertising and so on. And that will give you a template that you can flesh out
00:18later as you design a page comp with artwork.
00:21I am starting here with a new blank file that's the same size as the
00:25anticipated size of the browser window that my target audience is likely to
00:29use. I explained how to create a file of that size in an earlier movie in this
00:33chapter. I'm going to use Photoshop's grids and guides to help me position
00:38elements in my storyboard.
00:39I will go to my View Extras menu in the application bar on a Mac or in the menu
00:43bar on the PC and I'm going to enable Show Grids and also Show Rulers.
00:48I'm going to start by clicking in this horizontal ruler and dragging out a guide
00:53and I'll use the grid to know where to drop that guide right on this grid line.
00:57I will drag some more guides. Right now I'm marking out an area for a
01:01navigation bar. I'm also going to drag out a guide from the left-hand ruler and
01:05I'm going to place this vertical guide at about the 760 pixel point keeping my
01:11eye on the horizontal ruler at the top of the document window.
01:13Normally, I would continue to drag out these guides, but for now I'm going to
01:17go right to the step of creating blocks that represent the different page
01:21elements. In the toolbox I'm going to select the Rectangle Shape tool and then
01:25I'm going use the guides that I just drew as a starting place for making this
01:29block that represents my navigation bar.
01:32Now if I expand the Layers panel, you can see that that shape came in on its
01:36own layer, which is one of the advantages of using shape layers when you are
01:40storyboarding. I want to make sure that the next shape I draw is on the
01:43separate layer. So I'm going to click on the vector thumbnail here on this
01:46shape and now I can come and make another shape layer.
01:49I will collapse my Layers panel and I'm going to choose another color for my
01:53second shape by going up to the tool options bar for the Rectangle Shape tool,
01:57clicking and choosing a lighter gray, and then I'll drag out another rectangle.
02:01I might do the same thing down further on the page to represent an image area.
02:05Now that particular shape is too large. I would like to make it smaller,
02:10because it is a vector shape that's easy to do. I could go to the toolbox and
02:14select the Direct Selection tool and then I can click on any of its edges and
02:18drag to make it smaller. I can also distort the shape if I wanted by clicking
02:23on any of the anchor points here and dragging.
02:25But I would like this to be rectangular. So I'm going to press Command+Z on a
02:29Mac, Ctrl+Z on a PC to undo that change. Now if look at my Layers panel, I have
02:34a couple of more layers. I would like to make more image areas that are the
02:39same shape as the shape on the selected Layer 3. I could do that here in the
02:43Layers panel by duplicating this Shape 3 layer.
02:46Another way to do it, if I collapse the Layers panel is to select the Move tool
02:50in the toolbox and then to hold down the Option key on a Mac or the Alt key on
02:54a PC and drag to the right and that copies the content of the selected layer.
02:59I'm going to do that one more time, so that I have three boxes that are all the
03:03same size and shape.
03:04Now I would like to add some text to the storyboard. I'm going to select the
03:07Horizontal Type tool in the toolbox and I'll change the color of the type to
03:12black from the tool options bar. I'm going to use all of the other defaults
03:16here I the Tool Options bar and just come into the image and start typing and
03:20then I'll go up to the Tool Options bar and click the checkmark to accept that type.
03:24If I select that select the Move tool, I can move that text into a place where
03:28I want it. I would like to add some more text underneath these image areas. And
03:32this time I would like it to be several lines of text. One way to do that is to
03:36create what's called Paragraph Text. To make Paragraph Text, I'm going to go to
03:40the Type tool again and I'm going to click and drag a box underneath one of the
03:45image areas. And then I can start typing inside of that box and as you see the
03:50text automatically wraps in the box.
03:53With the Horizontal Type tool selected, I can click inside the box and then I
03:57can click on any of the anchor points of the box and drag to make the box
04:01narrower, to make it wider and I can change the way that the type appears in
04:06this text block. I'm going to click the checkmark again to accept that change
04:10and then I'm going to get the Move tool and move that whole paragraph text box
04:14where I want it.
04:15Then I can also make copies of that text by holding down the Option key, that's
04:19the Alt key on a PC and dragging, releasing and doing that again to make yet
04:24another copy of my paragraph text block.
04:27Now I've got a basic storyboard for my home page. I'm going to use this
04:31storyboard to help me determine how big to make the graphics files for the page
04:35and how much text I'm going to be able to add.
04:38As you can see making liberal use of shape layers for individual elements I'm
04:41relying on the Type tool to create individual lines of text and paragraph text.
04:46It gives me a flexible storyboard that I can use as the basis for my Page Comp.
Collapse this transcript
Adding images
00:00Earlier in this chapter I suggested that you storyboard the major pages in your
00:05website. Once you have a storyboard like this one, you can flesh it out into a
00:09webpage comp by adding pieces of artwork.
00:12In this movie I would like to show you some techniques for adding artwork to a
00:16webpage comp as you build it. But the techniques that I'll show you here work
00:20just as well when you are creating any kind of layered web graphic. I have
00:24already added some layers and some artwork to this storyboard building it out
00:28as a webpage comp.
00:29I am going to go to the Layers panel and start turning on the layers that you
00:33see in here so you can see their content in the image. In addition to those
00:37individual layers I have a layer group here, one that I have named body.
00:42I'm going to click the Eye icon to the left of that and you can see that it
00:45contains lots of different pieces of artwork. If I click the arrow on the body
00:49layer group, you will see that not only are there layers in here, but also all
00:54of the sub-layer groups.
00:55I show you this to make the point that as you build out a webpage comp, you are
00:59going to end up with lots of layers and it makes sense to organize those into
01:03layer groups to keep the Layers panel manageable and to make it easier to find
01:07the layers that you want to work on.
01:09A quick way to make a layer group is to first select the layers that you want
01:12inside the group. So I'm going to click on the purple box layer here and I'll
01:16hold down the Shift key and click on this green texture layer as well and then
01:20I'm going to go up to the panel menu and I'm going to choose New Group from Layers.
01:24I will give this a name, I'll click OK, and now you can see this new layer
01:29group with its layers tucked up inside of the group. Now I want to bring in
01:33some layered artwork to this file. I have a navigation bar open here and as you
01:38can see it has lots of layers and layer groups of its own. I built it
01:42separately on purpose, because I knew that it would have lots of layers too and
01:46it would be more manageable to work in a separate file.
01:49I want to see this file along with the webpage comp and I also have a
01:52photograph open in another file, which I'll talk about in a moment. So I'm
01:56going to go to the Arrange Documents menu in the application bar on a Mac, in
02:00the window bar on a PC and I'll click on this 3-Up view, so that I can see my
02:05webpage comp up here and then the navigation bar and then the photograph all in
02:10separate document windows. The first thing I'm going to do is make the webpage
02:14comp document active by clicking on its tab and I'm going to click on the top
02:19most layer here. I'm doing that because as I drag more layers in, they are
02:24going to go above the selected layer, and I don't want to obscure the content
02:28of the layers that I bring in, because they are hidden beneath some of these
02:31other layers.
02:32Now I'm going to click on the tab of the navigation bar and I need to select
02:37all of the layers here. It's not enough to just select the navigation bar layer
02:41group. So with that layer selected I'll hold the Shift key and click on the
02:46bottommost layer and now I'm going to go over to the toolbox and select my Move tool.
02:51I will click inside of the navigation bar image and drag up into the web comp
02:55image and when I see this outline I'll release my mouse. And with the web comp
03:00image selected I can see over on the right that I have brought in the
03:05navigation bar layer group with all of its layers.
03:08I am going to scroll over a bit to the left so that I can see the left side
03:13here and I'm going to make sure that I have the navigation bar layer group
03:17selected in the Layers panel for the web comp and then I'm just going to click
03:21and drag with my Move tool and the entire content of that navigation bar layer
03:26group goes with me as I move the navigation bar into place.
03:31So that's how to work with a layered graphic as you bring it in to become part
03:35of your webpage comp. Now I would like to bring this photograph into the
03:39webpage comp and I happen to know that it's a little bit too big for the spot
03:43in which I want to place it. If you remember anything from this lesson, it is
03:46that it's not worth taking the time to resize elements that you want to bring
03:50into your webpage comp before you bring them in.
03:53Instead bring them in and resize them once they are in the comp. So here is how
03:58we do that. I'm going to click on the photo document. I make sure that my Move
04:02tool is selected. I see that I only have one layer to deal with here and that's
04:06selected. So I'll click and drag from the photo document into the webpage comp
04:12and release my mouse when I see this outline.
04:14Now I'm going to close the photograph and I'm going to drag the scroll bar over
04:18so that I can see the right side of my webpage comp. I'm going to take a look
04:23at the Layers panel and I can see that I brought the blue photo in, but that it
04:27landed in the wrong place. It landed inside of this navigation bar layer group.
04:31That's easy to fix. I can just click on the blue photo layer and drag it up to
04:35the top of the layer stack and when the bar at the top of the layer stack turns
04:40black, I'll release my mouse.
04:41Now I'm going to try to move this photo into place. I have the blue photo layer
04:46selected and I have my Move tool selected. So I'll just click and drag and
04:50before I do, it's a good idea to turn it into a smart object. That will give me
04:54the freedom to resize it or transform it in other ways as many times as I want
04:59without degrading image quality.
05:01I am going to hold the Ctrl key as I click on the blue photo layer, that's
05:05right-click on a PC and I'm going to choose Convert to Smart Object. And you
05:09can see the Smart Object logo on the blue photo layer thumbnail. Now I'm going
05:13to go to the Edit menu and down to Transform. Over here you can see all of the
05:18different transform operations. I could scale the photo or rotate it, skew or
05:23distort it, change its perspective, even flip it horizontally or vertically.
05:28What I want to do now is just scale it, so I can either choose scale from the
05:32Transform menu or I can just choose Free Transform. Now I'm going to move my
05:37mouse over to the bottom right anchor point here and I'm going to hold the
05:41Shift key and I'm going to drag in to make this smaller and then I'm going to
05:46click the checkmark in the Transform Options bar. And with the Move tool I move
05:50the photo into place.
05:51Well, now I have made the photo too small. I did that on purpose to make the
05:55point that you can transform as many times as you want. As long as you've made
05:59this into a smart object first without degrading the image quality. So now for
06:03example I could go up to the Edit menu and down to Free Transform again and
06:07I'll move over a site anchor point, hold the Shift key to constraint
06:10proportions and drag up and then I'll move down to the other corner and drag
06:15down until the image is the same size approximately as the other photographs here.
06:21The one thing that I don't want to do is increase the size of the photograph
06:24much larger than its original size. The way to know if I've done that is to
06:29keep my eye up here in the tool Options bar and make sure that the Width and
06:33Height numbers don't go higher than 100%. I'm going to click the checkmark
06:37again and I'm now done brining in this photo content, because I have taken the
06:41time to storyboard this page before developing my webpage layout.
06:45It was easy to position and size the various pieces of artwork as I brought
06:49them into the layout. Now that my webpage layout is complete, I'm ready to
06:53begin slicing it into individual image files, which I'm going to show you how
06:57to do in an upcoming chapter.
Collapse this transcript
10. Slicing
Why slice?
00:01You may have heard that you can slice an image for the web, but you may not
00:04know really what slicing does or when it makes sense to slice up an image.
00:08What slicing does is to divide an image, whether it's an entire webpage comp like
00:12this one, or a smaller web graphic, into multiple areas so that each area can
00:17be saved out of Photoshop as a separate file, a separate JPEG, or GIF, or PNG.
00:22Well, why would you want to divide an image into separate files like that? One
00:26reason to slice is if you think that different areas of the image are likely to
00:30optimize best with different optimization settings. For example, in this
00:34webpage comp it's fair to assume that the photographs here, and here, and here
00:39will optimize best in the JPEG format. That the logo up here, which is made up
00:44of flat art, will optimize best in the GIF format.
00:47So I'd need to slice all those areas separately, so that I can optimize them in
00:52different formats. Even if I'm going to use the same format on two areas, I may
00:56want to slice each one. So for example, this area here could optimize best as
01:01JPEG, but it probably won't need as high a quality as I'll give to the JPEGs
01:06that are these photographs. So that's another area that should be sliced, an
01:09area that's likely to optimize best with different optimization settings from
01:13other areas here.
01:15Another reason to slice is if you want to add links to elements in an image and
01:19the perfect example is buttons. In this case, each of these buttons will
01:23eventually get a link to a separate webpage. In order to do that, each of these
01:28buttons would have to be a separate image. So I'm going to slice these buttons
01:31in Photoshop, save them out as separate GIFs or PNGs and then add unique links
01:36to each button in Dreamweaver or another site building program.
01:40The last good reason to slice a comp, like this, is if I want to animate part
01:44of it. So let's say that I want this purple box with the word 'Surfboards' to
01:48fade in as a GIF animation. In order to program it to animate like that, I need
01:53to add a slice around this area. So that the animation doesn't affect the rest
01:58of the composition.
01:59So those are the reasons to slice. If none of those reasons apply, then I don't
02:03suggest you just get out the slicing tool and start cutting an image up on the
02:06hopes that it's going to load faster on the viewer's browser, because that
02:09really isn't predictable.
02:11So that's, why to slice? Now what does slices look like? I have already added
02:15some slices to this image. So I'm going to make them visible, so you can see
02:18them for yourself. I'm going to go to the View menu and down to Show and down
02:24to Slices. So if you ever want to hide your slices temporarily or show them
02:28again, this is where you go.
02:29Each one of these rectangles that you see superimposed over the image is a
02:33slice. When I save this image, each of these sliced areas will be saved out as
02:38a separate JPEG, GIF or PNG. I could then bring the individual JPEGs and GIFs
02:43and PNGs into Dreamweaver where they could be added one at a time to a webpage
02:48there. Or I could have Photoshop save out not only the individual image files,
02:53but also some HTML code. That will take all of the separate sliced images and
02:58reassemble them into a composition, just like this, when viewed in a Web browser.
03:03So that's an overview of what slices are and why you would want to slice. In
03:07the rest of this chapter, I'm going to show you who to slice an image in Photoshop.
Collapse this transcript
Creating user slices
00:00Photoshop offers a couple of different kinds of slices. User slices are slices
00:05that you make yourself. Auto slices are slices that Photoshop makes for you and
00:10layer-based slices are special kind of user slice that I'm going to talk about
00:14in another movie. In this movie, I'm going to show you how to create and work
00:18with User and Auto slices.
00:20Before I start slicing, I usually make sure that a couple of things are set up.
00:24I'm going to go to the View menu at the top of the screen and I'm going to
00:27check that Snap is enabled. That will help me to line up all the slices as I
00:31create them, because it will snap the slices to one another as well to the
00:36underlying artwork.
00:37I also want to make sure that View > Show Slices is enabled. When that option
00:41is checked in this menu, I'll see a little gray number 1 and an icon in the top
00:46left of the open image. That's because Photoshop assumes that every image has
00:51one slice that encompasses the entire image, and you will see that little
00:55number whenever you have View > Show Slices enabled.
00:58And the last thing that I'm going to do to prepare is to set the color of the
01:01slice lines. The default color for slice lines is light blue. You can sort of
01:06see that around the edge of the entire image where this first big slice is. And
01:10those blue lines can be hard to see on top of a blue image like this one.
01:14So I'm going to go to Photoshop's Preferences which are under the Photoshop
01:17menu on the Mac and under the Edit menu on the PC and I'm going down to Guides,
01:22Grids, & Slices, and there I'm going down at the Slices area and change the
01:27Line Color from the default of Light Blue to something brighter like Yellow and
01:31then I'll click OK.
01:32Now I'm ready to create my first user slice. To do that I'm going to go to the
01:36toolbox and I'll go to the tool slot that normally shows the Crop tool and from
01:40the fly-out menu there I'm going to select the Slice tool. Now be careful,
01:44because there is another tool there called the Slice Select tool and that's not
01:47the one that I want to use to make slices.
01:49So I'll get the Slice tool and I know that I want to slice this logo separately
01:53from everything else, because I want to be sure to optimize this as a GIF and
01:57some of the other areas will optimize better as JPEGs. So I'm going to just
02:01click and drag with the Slice tool around the Groundswell logo,
02:05and there is my slice.
02:07When I release the mouse, I see that I have this slice with this blue border
02:11around it. That's the User Slice that I just made. One of the ways that I know
02:14it's a user slice is that it has a blue number and a blue icon at the top left
02:19of the slice. But if I look carefully, I see that there are other slices here
02:23as well and those are slices that have gray icons. Those are Auto Slices.
02:28Every time that I make a user slice, Photoshop runs around behind me and makes
02:32this auto slices. Like this slice number 1 and this slice number 3 and this
02:37slice number 4, to fill in the rectangular spaces around the rectangular slice
02:42that I have made. So for example, if I make another slice here, I'll go over
02:46and click and drag around this purple Surfboards box, Photoshop creates
02:51additional auto slices around my new user slice.
02:54There are some functional differences between User slices and Auto slices. For
02:58one thing, you can adjust the border on an Auto slice. So here I see that I
03:03have made my slice a little bit too big, I can go back to the toolbox and this
03:07time I can get the Slice Select tool and then I'll click in that slice around
03:11the Groundswell logo to select that slice and then I can drag on any of its
03:15borders to adjust the boundaries of the slice.
03:18But I can't do that with an Auto slice. So right next to that is a gray slice
03:23number 3 and when I click there with the Slice Select tool, I can't adjust the
03:27borders. If I decide that I do want to adjust the borders of an Auto slice, I
03:31can convert that slice into a User slice and the way that I do that is to
03:35select with the Slice Select tool as I just did and then go up to the Options
03:40for the Slice Select tool and click Promote. And now that slice number 3 is
03:44also a User slice and I can come over any one of its borders and click there
03:48and drag to adjust the slice.
03:50At this point, I can get my Slice tool from the toolbox and continue to draw
03:54slices around other areas in the photograph, like this. However, sometimes it's
03:59faster to just divide up slices that I have already made. So for example, I
04:03would like to divide this big slice around the buttons into individual slices
04:07for each button and rather than draw each one of those slices, I'm going to go
04:11back to the toolbox and get the Slice Select tool again, click on that slice
04:15number 3 and then go up to the Slice Select tool options and click Divide.
04:20Here I can set the number of slices across that I want. I have set that to 5,
04:24evenly spaced and the number of slices down and I have got that set to 1 slice
04:29down. And as you can see I now have five separate User slices around my
04:33buttons. I can adjust the borders around any of these slices. I'm going to
04:37click off of those slices to deselect them. I can do the opposite as well.
04:40Instead of dividing one slice into several, I can combine slices.
04:44So let's say I decide that I want my entire navigation bar to be one slice.
04:49With my Slice Select tool I'll click on one of those slices, hold the Shift key
04:53and click on all the others and then I'll Ctrl-click, that's right-click on a
04:58PC, on any one of the selected slices and choose Combine Slices and now they
05:02are all one big slice.
05:03Often I'll make a slice and then change my mind and I want to delete that slice
05:08and start over. That I can do too. So let's say that I want to delete the slice
05:13that I made here around this photograph. I'm going to click on it with the
05:16Slice Select tool to select that slice and then I'm going to hold down the Ctrl
05:20key and click on the slice or right- click on the slice and choose Delete Slice,
05:25and that clears just that selected slice. What if I want to delete all the
05:29slices and start again? Then I can go up to the View menu at the top of the
05:33screen and down to Clear Slices.
05:35So now you know how to create slices with the Slice tool. You understand the
05:39difference between User Slices and Auto Slices and you have learned that you
05:43can divide, combine, and even delete slices. Knowing how to work with slices in
05:48those ways, it should take some of the mystery out of Photoshop slicing process.
Collapse this transcript
Creating layer-based slices
00:00Layer-based slices are user slices that you can create automatically based on
00:05the content of layers. I find these the easiest kind of slices to make and
00:09they offer some really useful functional advantages over slices made with the
00:13Slice tool, but remember layer-based slicing only works if you have the
00:17foresight to build individual pieces of artwork on separate layers.
00:22I did that here in this webpage comp. If you look in the Layers panel, you will
00:25see that there are lots of layer groups. If you click the arrow to the left of
00:29any one of those groups, like this photos group, you will see multiple layers
00:32tucked away inside each group.
00:34I would like to create a layer-based slice around this left hand photo here.
00:38Fortunately, that photo is isolated on its own layer, the photo left layer. So
00:43to make a layer based slice, I'll just click on that photo left layer in the
00:47Layers panel and then go up to the Layer menu, and choose New Layer Based
00:51Slice; or I could use the shortcut that I added to this command.
00:55The New Layer Based Slice command doesn't come with its own shortcut, so I made
00:59a custom keyboard shortcut, as I showed you how to do in an earlier movie in
01:02this course. That command makes this layer based slice hugging the content on
01:08the photo left layer.
01:09To speed things up, you can create more than one layer based slice at a time.
01:13So let's say that I want to make layer based slices around the other two photos
01:17here. I'll simply go to the Layers panel, click on the photo center layer which
01:21contains just this photograph in the center, and I'll hold the Shift key and
01:26click on the photo right layer as well, which holds just the blue photo on the
01:29right. Then I'll go up to the Layer menu and I'll choose New Layer Based
01:34Slices. This is pretty interesting that Photoshop knows to add the 'S' to word
01:38Slice, when you select more than one layer. So that added two more layer based
01:42slices, one around each of these two photos.
01:46Layer based slicing offers some functional advantages over user slices made
01:49manually with the Slice tool. One big advantage is that layer based slices move
01:54with the underlined artwork. That means that even after you have sliced entire
01:58composition, like this, if you change your mind about the location of one or
02:02more elements, you can move those pieces of content around and the slices will
02:07go with it. So you don't have to re-slice the whole thing.
02:09Let me show you how that works. For example, let's say that I wanted to move
02:14all three of these photos up, but I have already sliced them and I don't want
02:17to re-slice them. It doesn't matter, whether or not the slices are selected,
02:21I'll just de-select them by getting the Slice Select tool and clicking elsewhere.
02:25I can move the underlined artwork and the slices will go with the artwork. So
02:30to move all three photos at once, I'm going to go to the Layers panel and I'm
02:34going to add the photo left layer to this selection by holding the Command key
02:38on a Mac, the Ctrl Key on Windows, and clicking. So now I have all three photo
02:43layers selected. Then I'm going to get my Move tool and I'm going to
02:48click-and-drag. I can move these photos wherever I want. I'm just going to move
02:52them up a bit. When I release my mouse, did you notice that the slices moved as
02:57well? So that's a real time saver.
03:00Another advantage of layer based slicing is that unlike regular user slices,
03:04layer based slices will change size to fit the size of the underlined artwork.
03:09So for example, let's say that I want to make all three of these photos
03:12smaller. I happen to have all three photo layers selected already, so I don't
03:16have to bother with that step. The way that I resize artwork is that I go to
03:21the Edit menu at the top of the screen and choose Free Transform.
03:25Now I find these hollow anchor points around each one of the photos. I'm going
03:30to go to anyone of the photos and move my mouse over a corner anchor point.
03:34Then I'm going to hold the Shift key down to constrain proportion and I'm going
03:38to click-and-drag toward the center of the photo. All three photos are resizing
03:42because I happen to have all three photo layers selected in the Layers panel.
03:47To finish resizing the artwork, I'm going to go to the Options bar for the
03:51Transform feature and click this check mark. Notice that now not only are the
03:56photos smaller, but the slices around those photos automatically resized too,
04:01to fit snugly around the smaller photos.
04:04At this point, I would probably move each one of these photos back into place.
04:08So for example, I might click on the photo right layer to select only that
04:11layer, and with the Move tool still selected in the toolbox, I would
04:15click-and-drag that photo over and center it on top of the text here. I'll do
04:20the same with the photo center layer, selecting it and moving the artwork over
04:24with the Move tool and again the slice goes with it. The photo left layer and
04:30moving that artwork over, and its slice goes with it too.
04:34Yet another advantage of layer-based slicing is that if you add an effect, like
04:38a drop shadow to artwork, and the layer-based slice around the artwork will
04:42expand to accommodate the drop shadow. To show you that, I'm going to go ahead
04:47and slice all of the buttons in this webpage comp by going over to the Layers
04:51panel and clicking the arrow to the left of the buttons layer group.
04:55In this group, there are five separate layers with one of these buttons on each
04:59layer. I'm going to select all five by clicking the topmost of the buttons
05:02layers, holding the Shift key and clicking the bottommost of those layers. Then
05:07I'll use the layer based slices command, Layer > New Layer Based Slices. Each
05:12one of those layer-based slices is hugging tightly to its button.
05:16Let's say that I wanted to add a shadow on the Boards button to indicate that
05:20the viewer is looking at the boards page. I'm going to click on the board btn
05:24layer only in the Layers panel and then go down to the fx button at the bottom
05:28of the Layers panel. From its pop-up menu, I'm going to choose Drop Shadow.
05:33That opens the Layer Style dialog box. You can see the little drop shadow on
05:37the Boards button right now, I would like to make that drop shadow a little
05:40bigger. So I'm going to go to the Size slider in the Layer Style dialog box and
05:45drag it slightly to the right; maybe to about 9. Now keep your eye on the slice
05:50around the Boards button, as I say OK in the Layer Style dialog box to accept
05:55these changes.
05:56So as you can see, layer based slicing really does offer some useful advantages
06:00over slicing manually with the Slice tool. It's quick and easy and it gives you
06:04the options of moving, resizing, and adding effects to underlined artwork
06:09without having to go back and re-slice.
Collapse this transcript
Adding slice options
00:00 The user slices that you create in an image either with the Slice tool or with
00:04 layer-based slicing will generate JPEGs, GIFs, or PNGs that will become assets
00:09 in your website. The names of those image files will come from the slice names
00:14 in your original source file in Photoshop. So it's important to give those
00:18 user slices meaningful names.
00:20 You also have some other options that you can add to your slices, and that's
00:24 what I'm going to show you how to do in this movie. Here I have a fully sliced
00:28 webpage comp and I'm ready to add names and other options to the slices. I have
00:32 to do that slice by slice.
00:34 So the first thing I'll do is get the Slice Select tool from the toolbox and
00:38 click on the first slice to which I'm going to add options. I'm going to start
00:42 here with the slice around this Groundswell logo.
00:45 With that slice selected, I'm going to go up to the Options bar for the Slice
00:48 Select tool and if I move way over to the right in that bar, there is a small
00:53 icon there. I'm going to click that icon, and that opens the Slice Options dialog box.
00:58 Here in the Name field, you can see the default name for the selected slice.
01:02 It's not very meaningful, slicing4_02. It actually comes from the name of the
01:07 original image slicing4.PSD with the slice number 02 tagged on.
01:13 When I save out this image and generate a GIF from this particular slice, the
01:18 name of that GIF will be slicing4_02.gif. That name isn't very meaningful. If I
01:23 then bring that GIF into a site building program like Dreamweaver, the name
01:27 won't tell me anything about the content of the file. So I want to change the
01:31 name to something more meaningful like logo.
01:34 To do that, I'll just select the default name and type over it. And now when I
01:38 generate an image from the slice, its name will be logo.gif. Notice that there
01:43 are some other options here that you can add to the slice. These come into play
01:47 only if I'm going to ask Photoshop to generate HTML code along with the images
01:52 created from my slices and I usually do that if for no other reason, then to
01:56 preview the results as I'll show you in another movie in this chapter.
02:00 So, what can I include in that HTML? Well, one thing I can include there is a
02:04 link from the image generated from the selected site to another website.
02:09 I'm going to click in the URL field, and I'm going to type out the full path to an
02:13 external website. I'm going to use the lynda.com site by typing the full path
02:17 to the homepage on that site. And if I want that link to webpage to come up in
02:23 a separate browser window, I can go to this Target field and type _blank.
02:29 I am also going to fill in the Alt Tag field here with the description of the
02:33 image that will be created from this selected slice. I'm going to type
02:37 Groundswell logo. The Alt Tag is important because that offers some tags that
02:43 can be read by a reading machine that's used to make the web more accessible to
02:48 those who are visually impaired.
02:49 Now that I have added those options, I'm going to click OK to close the Slice
02:53 Options dialog box. To show you what those slice options do, I'm going to
02:57 preview my webpage comp now just to show you what those slice options have done.
03:01 So I'm going to go into the Save for Web & Devices window by choosing File >
03:06 Save for Web & Devices, and at the bottom of that window, I'm going to go down
03:10 and click on the Preview button. That opens the webpage comp in my default Web
03:14 browser and some of it doesn't look very good because I haven't yet optimized
03:18 these sliced areas.
03:20 But what I wanted to show you now is that if I move my mouse over the
03:23 Groundswell logo, it changes to this Hand icon, meaning that this is a live
03:28 link, and if I click there, a separate Web browser window opens displaying the
03:33 lynda.com webpage to which I linked back in Photoshop.
03:37 I will go ahead and close that browser window and I'm also going to close this
03:42 other page in my Web browser, and back in the Save for Web & Devices window,
03:46 I'm going to click the Cancel button to go back to Photoshop.
03:50 Normally, I would go ahead and choose each one of my user slices one at a time,
03:54 open the Slice Options dialog box, name the slice, and add any other slice
03:59 options that I wanted to. Back here in Photoshop, at this point, I would
04:03 normally continue to select each user slice one at a time to give it a
04:07 meaningful name and to add slice options like the ones that I have shown you in this movie.
04:12 When all that's done, I would then optimize, and save the multiple slices in
04:16 this image as I'll show you how to do in an upcoming movie in this chapter.
04:21
Collapse this transcript
Optimizing and saving slices
00:00After you have sliced an image into multiple slices and added names and other
00:04options to the user slices, the final step is to optimize and save out each
00:09slice as an individual JPEG, GIF, or PNG file. You can then bring those
00:14graphic files into a website building program like Dreamweaver, to include them
00:18on the final pages that you build there.
00:21Here I have a webpage comp, and I have finished slicing it and adding names to
00:25the important slices, the user slices. I haven't bothered naming the slices
00:29with the gray icons on them because when I build my final pages in Dreamweaver
00:33or another website building program, those areas won't be graphics. They will
00:38be composed of background color and text in the HTML code.
00:42But I do want to save out of Photoshop all the parts of these pages that I'll
00:46include as images. So I'm going to go to the File menu at the top of the screen
00:50and choose Save For Web & Devices. I'm going to work in the Optimized tab,
00:54so I can see as much as possible of this large image in the Preview area.
00:58The task here is to optimize each of the slices here with the best settings for
01:03the content of that slice. There are lots of slices, over 40 slices, and I
01:08don't want to have to optimize each one separately. So I'll show you a few ways
01:11that you can economize, and save time as you optimize multiple slices.
01:16The first thing I'm going to do is to look for areas that might optimize with
01:20the same settings. A good example is the buttons up here. I'm going to hold
01:25down the spacebar temporarily to change the cursor to a hand, so that I can see
01:29the slices around all five at the buttons.
01:32With the Slice Select tool selected here in the toolbox, I'm going to click on
01:36the slice around the boards button, and then I'm going to hold down the Shift
01:39key and click on these other four slices. With all of those selected, I'm going
01:44to go over to the Optimization Controls on the right side of this window.
01:48I'm going to make sure that format is set to GIF, because these are flat art, and
01:53then I'm going to try reducing the number of colors.
01:55As you know from an earlier chapter, reducing the number of colors in a GIF is
01:59the best way to reduce its file size. So right now, I see that five of these
02:03buttons are 3.863 kilobytes. That's reported down here in the bottom left of
02:08this Preview window.
02:10If I go to the Colors field and I choose a lower number of colors, I think I
02:14can go as low as 8 here, and still have buttons that look reasonably good. I've
02:19managed to lower the size of all five buttons combined to under 2 kilobytes. So
02:24I'm very happy with that result.
02:26Now I'll look for some other slices whose content is similar, like these three
02:30photos here in the middle of the page. Again, I'll hold the spacebar to move
02:34the image over so I can see all of the photos, and then with the Slice Select
02:38tool I'll click on the slice around the first photo, hold down the Shift key
02:42and click on the slices around the other two.
02:45When I look at the Optimization Controls, I see that they are currently set to
02:48GIF, and that's why the photos don't look very good, because photos as you
02:52know, optimize best as JPEGs. So I'm going to change the format here to JPEG,
02:57it's currently set to Medium, and that looks pretty good to me, and all three
03:01of my photos are coming in at only 13.44 kilobytes, so I'm going to accept that.
03:07I see the three buttons down here. They are going to optimize the same way
03:11because they really are copies of just one graphic. So again, I'll hold the
03:15spacebar and click and drag to move over, and with the Slice Select tool, I'll
03:19click on the slice around the first of these buttons, hold the Shift key and
03:22click on the other two slices.
03:24One problem that I'm having here is that I can't tell whether the blue at the
03:28edges of these buttons is going to match, the blue I have in mind for the page
03:32background, and that's because the slices that aren't selected have these kind
03:36of a ghost like film over them. That's just a way of indicating which slices
03:40are selected at the moment. So what I want to do is to make the slices
03:44temporarily invisible, so I can really see the colors in the underline artwork.
03:48To do that, I'll go over to the toolbox on the left side of Save For Web &
03:51Devices, and I'll click on this icon right here, and that will hide the slices
03:55temporarily, and now I can go and reduce the number of colors, and I'll be
04:00affecting just those three selected buttons.
04:03So for example, if I put these as low as 2, you can see that that is the area
04:07that's being optimized. Well, 2 colors isn't enough for those, 4 isn't enough
04:12because I don't have those curved button edges, 8 is getting there, and 16 is
04:17just fine. So now I'm going to turn my slices back on by clicking that Hide &
04:22Show Slices button again.
04:23I have a few more slices to optimize. One is this slice right here, which could
04:29go either way. It could optimize best as GIF, or could optimize best as JPEG,
04:33and the only thing that you can do in this case is just to try both.
04:36So with that slice selected, and the format set to GIF, with colors at 16, I
04:42think that the appearance is pretty good. The file size is also reasonable,
04:455.391 kilobyte. I'll change the format to JPEG with a quality of Medium, the
04:52file size is quite low, but I don't think that the artwork in this slice looks
04:56very good with that setting. So I'll try increasing the quality of this JPEG
05:00slice, and now it looks better, and the file size is fine, 5.03 kilobytes, so
05:06I'll stay with that.
05:08There are few more user slices that I haven't optimized yet. I'm going to do
05:11all of these together. One is this groundswell logo slice. I'll select that,
05:16and click on these slice here, and this one over here, which have parts of the
05:20pattern of the Navigation bar, and I'll also hold the Shift key and click on
05:24this surfboard's area. And then I'll go over and choose a number of colors.
05:29I'll try 8. I think everything looks good with 8 colors. And the total file
05:33size is low, so I'll leave it at that.
05:35So all the user slices are now optimized. If I click on one of the of the outer
05:39slices like this one, I can see that it has an infinity symbol in it. All of
05:43the outer slices have this symbol, meaning that they are linked together for
05:46purposes of optimizing. So whatever I choose for one of these will apply to all.
05:51Because these are flat art, I'll leave them at GIF and I'll reduce the number
05:54of colors maybe to 8 to make sure that there is enough there, that if I want to
05:58save some of these all outer graphics, the text will be readable. But as I
06:02mentioned when I build my final page, I probably won't use graphics in the
06:06areas covered by these outer slices.
06:08Now that everything is optimized, it's time to save. I'll click the Save button
06:12at the bottom of the Save For Web & Devices window. I'll navigate to my
06:16Desktop, and there I'm going to make a new folder, I'll call this the surfboard
06:20page, and I'll click Create.
06:22I want to make sure that format is set not to just Images Only, but to HTML and
06:28Images, so that along with all of the image files that Photoshop will generate
06:32from the slices, it will also generate an HTML file containing code that will
06:36reassemble all of the images when viewed in a Web browser.
06:39I am also going to make sure that Slices is set to All Slices. I could just
06:44save out the user slices, or I could save out slices that I had selected with
06:48the Slice Select tool, but I'll go with all Slices for now, and then I'll click
06:52the Save button.
06:53Now I'm going to go out to my Desktop, and there is my surfboard page folder.
06:57Inside of that folder, there is an HTML file, and there's also an images
07:01folder. Look what's inside the images folder? Lots of JPEGs and GIFs. Each one
07:07of these was generated from a single slice in that webpage comp. The JPEGs and
07:12GIFs that have meaningful names were made for my user slices, and these names
07:17came from the slice names that I have given to those slices.
07:20The GIFs down here that have these less meaningful names were generated from
07:25the outer slices, and these names came from the name of the original source
07:29file and the number of the slice. As I mentioned, I probably won't use those
07:33slices when I build my final page, but I'll use these JPEGs and these GIFs that
07:39contain meaningful names.
07:41Let me open a couple of those for you to see. I'll open a GIF and a JPEG in
07:45Photoshop. So here is a JPEG, and here is a GIF, each of which was saved from
07:51a separate slice in my webpage comp. I'm going to go back to the Desktop and
07:56look inside the surfboard page folder one more time so that I can open this
08:00HTML file for you in a Web browser.
08:03Here in my default browser, the HTML code reassembles all of the individual
08:08image files into the original composition. Now I could take this HTML page
08:13along with the Images folder into a site building program like Dreamweaver, and
08:17tweak the HTML there adding other kinds of code like CSS for example; or if I
08:23wanted to scrap the HTML code altogether, I could just bring in the image files
08:27into Dreamweaver, create an HTML page there, and use the image files that
08:32Photoshop created as assets on that HTML page.
08:36The workflow that you choose to follow is your preference, but however you
08:40proceed the good news is that you now have the image assets that you need for
08:43this webpage, all generated by Photoshop from a single sliced page layout.
Collapse this transcript
11. Making Graphics for Rollovers
Understanding Photoshop and rollovers
00:00Rollovers come in handy for many purposes. They can help your viewers find a
00:04link on webpage, figure out where they are in your website or get more
00:08information about a link in the form of graphics or text. Graphic-based
00:12rollovers consist of small image files that are swapped out one for the other,
00:17following instructions coded in JavaScript behind the scenes.
00:20For example, here I'm looking at a navigation bar in my Safari Web browser and
00:25if I move my mouse over anyone of the buttons in the navigation bar, it appears
00:29to change color but what's really happening is that there are two versions of
00:33each one of these buttons and when I move my mouse over the button, the first
00:37version, a GIF that contains a white gel button is swapped out and replaced
00:42with another GIF that contains a green gel button.
00:45I made all of the graphics for this navigation bar in Photoshop, but when I
00:48wanted to make it rollover, I had to take those graphics into another program
00:52like Dreamweaver to create the working the rollover behavior. It's important to
00:56understand upfront what Photoshop can and cannot do for you when it comes to
01:01making rollovers like these.
01:02So you can make a white button and you can make another file that's a
01:06green button, but Photoshop cannot generate the JavaScript code that's
01:10necessary to make the rollovers work. Way back in Creative Suite 2, when
01:15ImageReady came with Photoshop you could do that, but ImageReady is no longer
01:20made and no longer comes with Creative Suite. So if you do want to make
01:24rollovers work, then you will make your graphics in Photoshop and bring them
01:27into another application like Dreamweaver in order to program the graphics
01:31to rollover.
01:32In this chapter I'll show you how to create graphics with different states of
01:35rollover buttons using a Photoshop feature called Layer Comps. You will also
01:40hear in this chapter about the special script that www.lynda.com is making
01:44available to you for free that will help you to save out rollover graphics that
01:48you've created as Layer Comps and I'll be showing you how to install and use
01:52that script in upcoming movies in this chapter.
Collapse this transcript
Creating rollover graphics with layer comps
00:00The key to being efficient when you are making rollover graphics in Photoshop
00:04is to make use of a feature called Layer Comps. Layer Comps allow you to make
00:08multiple versions of multiple buttons all in a single file, which will save
00:12your time and effort.
00:14I am working in the Web workspace. I'm starting this lesson with a navigation
00:18bar that has four simple buttons. If you don't have access to the Exercise
00:22Files for this course, I suggest that you make yourself a set of simple buttons
00:26like these, so that you can follow along.
00:29The way that I made these was to select the Rounded Rectangle tool in the
00:32toolbox, drag out one button and then duplicate that button layer three more
00:36times, moving the buttons apart and then I added a bit of text with the
00:40Horizontal Type tool to each button.
00:43The first step in making these buttons into Rollover Graphics is to slice them
00:47so that each button will generate independent graphic files. In the Layers
00:52panel, I can see that each one of the buttons is on the separate layer, these
00:55happen to be shape layers. But regardless of what kind of layers they are
00:59because each button is on a separate layer, I can use layer based slicing.
01:02I am going to select all four button layers by clicking on the topmost button
01:06layer and then holding the Shift key and clicking on the bottommost. Then I'll
01:10go up to the Layer menu and down to New Layer Based Slices and that creates a
01:15layer based user slice around each one of the four buttons and some auto slices
01:20around them.
01:21The next step is to set up the way that I want each button to look in its
01:24normal or resting state. One quick way to do that is to apply a pre-built style
01:29to my buttons. I have my Styles panel open over here, which I opened from the
01:34Window menu at the top of the screen.
01:36The default style set didn't have any buttons that I liked and so I went to the
01:40panel menu and selected one of these other style sets that shipped with
01:43Photoshop. I selected the Web Style set and then I clicked OK at the prompt and
01:48that replaced the default styles with these Web Styles. I like these gel
01:53buttons so I think I'm going to style the normal state of my buttons with a white gel.
01:58To do that, I'll check that all four button layers are still selected in the
02:02Layers panel and then I'll just click on that white gel style in the Styles
02:06panel. The style is applied to all four buttons and in the Layers panel
02:10underneath each of the button layers you can see this list of effects that
02:13makes up that white gel style.
02:15The effects are taking up a lot of space in the Layers panel, so I'm going to
02:19collapse them by clicking on the arrow to the right of each one of the button
02:22layers and now I can see all of the layers in my Layers panel. Now I want to
02:27save the way that the buttons currently look as the normal state of the
02:30rollovers. This is where Layer Comps comes in.
02:34I have opened my Layer Comps panel here, from the Window menu at the top of the
02:37screen and then I dragged the Layer Comps panel by its tab over into the
02:42right-hand column and I closed the rest of the Layer Comps panel group. That
02:46gives me more space to work here in the document window.
02:48I am now going to make my first Layer Comp to memorize the way that the buttons
02:52currently look. To do that, I'll go to the bottom of the Layer Comps panel and
02:56I'll click the Add New Layer Comp button here and I'll give this Layer Comp a
03:00name. I'll call this normal.
03:02These three fields, Visibility, Position, and Appearance, Layer Comps can
03:07memorize whether layers are visible or not, the position of layer content in a
03:12document window and whether layers have a layer style, a blending mode or an
03:16opacity change applied to them.
03:19In this case, Appearance is the most important because this is the feature that
03:22I'm going to use to vary the appearance of my buttons. But I usually just check
03:26all three of these to be safe and then I'll click OK and that creates my first
03:31Layer Comp here in the Layer Comps panel.
03:33Now I'm going to go ahead and change the appearance of these buttons to make
03:37them the way I want them to look in the over state. I'll check that all four
03:40layers are still selected in the Layers panel and then I'm going to go up to
03:44the Styles panel and then I'm going to click on this style which is a blue gel
03:47style with a drop shadow.
03:49You can see that the appearance of the button has changed and also that those
03:53layer based slices have expanded vertically to accommodate the drop shadows
03:57beneath the buttons. That's one of the advantages of layer based slicing over
04:01manual slicing.
04:02Now I'm going to set up another Layer Comp to memorize the way the buttons look
04:06now as their appearance in the over rollover state. So I'll go back to the
04:10Layer Comps panel and I'll click on the Add New Layer Comp button and I'll name
04:14my new Layer Comp over. I'll leave all three of this fields checked and I'll
04:19click OK and that creates the over Layer Comp here at the Layer Comps panel.
04:24I can cycle through my Layer Comps by clicking the arrows at the bottom of the
04:27Layer Comps panel. This takes me back to the normal Layer Comp and another
04:31click takes me back to the over Layer Comp.
04:33Another way to view individual Layer Comps is just to click in the field to the
04:37left of the Layer Comp you want to see. These Layer Comps aren't set in stone.
04:41I can change my mind about the appearance of the button layers on either one of
04:45these Layer Comps and then update the Layer Comp to reflect the change.
04:49So for example, let's say that I decide that I don't like the way the overstate
04:53looks instead of using the blue gel style with this drop shadow, I would like
04:57to use a plain green gel style. So I'll make sure that I have selected my over
05:01Layer Comp and then I'll double check that I still have my four button selected
05:05in the Layers panel and then in the Styles panel, I'm going to click on the
05:09green gel style and that restyles all four buttons.
05:12To update the over Layer Comp with that change, I'll go back to the Layer Comps
05:17panel and I'm going to click these double curved arrows at the bottom of the
05:20Layer Comps panel to update the selected over style. Now when I cycle through
05:25the two styles, you can see that the over style has actually updated.
05:29So that's how to use the Layer Comps panel to create different looks for a set
05:34of rollover buttons in their normal state, their over state and you could add
05:38some other states as well like a down state or an out state.
05:41Now that I have created different versions of these graphics and memorize those
05:45as Layer Comps, the next step is to name and optimize the button slices, which
05:49is what I'll show you how to do in the next movie in this chapter.
Collapse this transcript
Optimizing rollover graphics
00:00After you have created rollover graphics, as I showed you how to do in a
00:04preceding movie, the next step is to optimize those graphics for the web,
00:08which is what I'll show you how to do here. To recap what I have done so far,
00:11I started with a simple navigation bar with each button on a separate layer and
00:15I sliced the navigation bar so that the buttons in their various states would be
00:20saved out as individual graphics.
00:22I set up the appearance of all the buttons in their normal rollover state,
00:25which is the way that you see them here with this white gel style and then I
00:29captured that look as a normal layer comp. Then I change the appearance of the
00:34buttons giving each one this green gel style and captured that look as the over layer comp.
00:39I will pick up here by naming each one of the button slices. This is important
00:44because the graphic files that will be generated from this slices will get
00:47their file names from the slice names that I'm about to enter. With the Slice
00:51Select tool selected in a toolbox, I'm going to come down to the slice around
00:55the boards button and I'm going to Ctrl- click on a Mac or right-click on a PC.
01:00That brings up this contextual menu from which I can choose Edit Slice options.
01:04That's an alternative way to open the Slice Options dialog box. In an earlier
01:08movie, I showed you that you could also do that from the Slice Options button
01:12up here in the Slice Select tool options bar.
01:15Here in the Slice Options dialog box I'm going to give this slice a more
01:18meaningful name. I'll type boards_btn and I would repeat that for each of this
01:23other buttons. I'll Ctrl or right-click > Edit Slice Options, type a meaningful
01:29name like swim_btn and click OK. Again Ctrl or right-click > Edit Slice
01:35options. I'll type gear_btn, click OK and Ctrl or right-click > Edit Slice
01:42options. I'll type videos_btn and click OK.
01:47For now I'm not going to bother naming this other order slices. Before I open
01:50this Save for Web & Devices window to optimized the slices, I'm going to go
01:54back to the Layer Comps panel and I'm going to click in the box to the left of
01:58the normal layer comp. That changes the appearance of the buttons to their
02:02normal state with the white gel style.
02:04Then I'm going to go to the File menu and I'm going down to Save for Web &
02:08Devices. Here, I'll click on the Optimize tab so that I can see as much as
02:12possible of this white image and I'm going to hold down the Spacebar and then
02:17I'm going to drag to the left, so that I can see all four buttons in the
02:20Preview here.
02:21Next I'm going to go over to the toolbox on the left side of this window and
02:24click on the Slice Select tool. With that tool, I'm going to select the four
02:28slices around the four buttons by holding down the Shift key as I click on all
02:33four slices. I'm doing that so that I can optimize all the buttons with the
02:37same settings.
02:38It's difficult to see the actual artwork because of the overlay of the slices
02:42in this image, so I'm going to go over to the Hide/Show Slices button here at
02:46the bottom of the Save for Web & Devices toolbox and click that to hide the
02:50slices temporarily, but remember that I still have only the four button slices
02:55selected and the optimization settings that I choose will effect only the
02:59artwork under those slices.
03:01Over in the optimization controls I'll leave format set to GIF and in the
03:05Colors field, I'm going to see how these buttons look with, say, 64 colors.
03:11They look great, but the file size report that the bottom left to the preview
03:14is pretty big. So I'm going to try reducing the number of colors. I'll go down
03:19to 32 colors, which I think is fine, and let's see how 16 colors look.
03:24With 16 colors the buttons are starting to degrade at their corners. So I'm
03:28going to go back to 32 colors which gives me a file size of 25 K for all four
03:33buttons and now I'll go back and click on the Show/Hide Slices button to bring
03:38my slices back.
03:39If I were saving regular graphics rather than rollover graphics, at this point
03:43I'll go down and click the Save button so that I could save out graphics from
03:47each of the slices. However, I don't want to do this when I'm making rollover
03:51graphics, because if I did, Photoshop will generate just one graphic for the
03:55normal state of each button, but no graphics for the overstate. In other words,
03:59I would just get one white button for each one of these button slices, and that
04:03isn't what I want.
04:04I would also like each one of these slices to generate a second button, a green
04:08button representing the over state of the rollover graphic. So rather than
04:13click Save, I'm just going to click Done and that takes me back into Photoshop.
04:17Once I'm here, I want to go back to the Layer Comps panel and click in the box
04:21to the left of the over layer comp. That changes the appearance of the buttons
04:24to their over state, which I styled with this green gel style.
04:29Now I'm going to go back into the Save for Web & Devices window by going to the
04:32File menu and going down to Save for Web & Devices. Again, I'm holding down the
04:37Spacebar and dragging to the left so I can see all four buttons and again with
04:41the Slice Select tool, I'm going to Shift-click in each one of the slices to
04:45select all four button slices.
04:47I am going to click the Show/Hide Slices button here, so that I get a better
04:51view of my buttons. I'm glad that I did this because what I'm seeing is that
04:55with 32 colors in the GIF format, the buttons don't look very good with the
04:59green gel style, even though they did look okay with the white gel style.
05:03I see some bending in each one of the buttons. That's caused by the continuous
05:07tones in the style that I applied here. There are two possible ways to fix this
05:12I might try optimizing these buttons in the JPEG format which sometimes works
05:16with flat art like this that has continuous tone in it or I could try
05:20increasing the number of colors in the GIF format. I'll try the JPEG format
05:24first, remember I still have all four buttons slices selected so I'm going up
05:28to the format area and I'll choose JPEG.
05:31With the JPEG at high quality, I see that file size is bigger than I would like
05:35and I'm also starting to see some art effects around the type on each one of
05:39the buttons. Because I don't want to increase the quality, which would also
05:43increase the file size, I'm going to go back to the GIF format. So I'll choose
05:46GIF from here and I'll try to fix the bending by going to the Colors field and
05:52increasing the number of colors in these GIFs.
05:54At 64 colors, I think that the buttons look fine and I'm happy with this file
05:58size, so I'm going to go with that. I'm going to go back and show these slices
06:03again from this button in the toolbox and then I'm going to click on just one
06:06of the order slices down here and I'll optimize that slice with settings that
06:11will apply to all of the other slices automatically. I probably can get away
06:14with less than 32 colors here. I'll try something like 16.
06:17Now that I have done optimizing, I would like to save out some rollover
06:22graphics. However, again, I don't want to click the save button because if I
06:26did that now, then Photoshop would save the buttons only in their overstate. In
06:31other words, I would only get one version of each one of this buttons, the
06:34green version. So I'm going to click Done again so that Photoshop remembers
06:39these optimization settings and go back into Photoshop.
06:42Unfortunately, there is no native way to export multiple rollover graphics from
06:47each one of these multiple slices, but that's okay because knowing that there
06:51is no way to do that in Photoshop CS4 www.lynda.com has gotten together with
06:55scripting expert Trevor Morris to create a special script that will do this
07:00automatically for you and we are making that script to be available to all of
07:03you for free.
07:04In the next movie I'm going to show you how to find that special script and how
07:07to install it in your copy of Photoshop and how to use it to expert rollover graphics.
Collapse this transcript
Installing the lynda.com rollover script
00:01 When you have created multiple rollover buttons each with several rollover
00:04 states, you are going to want to save out multiple versions of each button.
00:08 One version for each of the rollover states.
00:11 For example, in this navigation bar if I go to the Layer Comps panel, I can
00:15 switch between the normal state of the buttons, which I have saved here as a
00:19 Layer Comp and the over state of the buttons, which I have saved as the
00:22 Separate Layer Comp and I showed you how to do that in previous movies.
00:26 So what I want to do is save from each one of these button slices, a green
00:30 version of the button and a white version of the button, each one as a separate
00:34 GIF file. So I should have a total of 8 different files coming out of these
00:39 four button slices. Unfortunately, there is no way to make that happen natively
00:43 in Photoshop CS4.
00:45 For that reason www.lynda.com has collaborated with Photoshop scripting guru,
00:49 Trevor Morris to create a special script that fills this gap. The script is
00:54 called the LayerCompsToSlices script and what it does is allow you to export
00:58 multiple states of multiple slices all at once.
01:01 We are making this script available to everyone for free. You will find the
01:05 script in the www.lynda.com Online Training Library on the course page for this
01:10 course Photoshop CS4 for the Web or if you are listening to the course on a
01:15 DVD, you will find it on your course DVD. Installing the script is as easy as
01:20 placing it in a proper folder inside of Adobe Photoshop CS4 on your computer.
01:25 I am going to show you where that folder is on a Mac and I'll give you the path
01:29 to the proper directory on a PC. On Mac I'm going out to my desktop where I
01:34 placed the script right here the Layer Comp to Slices.jsx file. I'm going to
01:40 copy that script and then I'm going to navigate to the Scripts folder inside of
01:45 Adobe Photoshop CS4.
01:47 Here in my Finder Window, you can see the paths to the Scripts folders that I'm
01:51 going for. I'm starting over in the Applications folder and then going to the
01:55 Adobe Photoshop CS4 folder and inside that folder to the Presets subfolder and
02:01 inside that folder to the Scripts subfolder. Inside the Scripts subfolder, I'm
02:07 going to paste that script item. Let me expand this panel so that you can see
02:12 my new Layer Comps to Slices.jsx script there among all of the other scripts
02:18 that ship with Photoshop.
02:20 Whether you are on a Mac or on a PC, after you install the script, as I just
02:23 showed you, you have to restart Photoshop so that the script appears in the
02:27 Scripts menu, so you can use that next time around. If I come to the File menu,
02:31 and I go down to Scripts, there I can see my new Layer Comps to Slices script,
02:37 waiting to be applied to a file and that's exactly what I'm going to show how
02:40 to do in the next movie.
02:42
Collapse this transcript
Exporting rollover graphics
00:00 If you use Photoshop's Layer Comps to create multiple rollover graphics,
00:04 you can take advantage of this special lynda.com Layer Comps to Slices script to
00:09 export all of the rollover graphics at once.
00:12 To recap what I have done so far to the file that you see here, I have created
00:16 two different layer comps for the four buttons in this navigation bar, and you
00:20 can see those layer comps in the Layer Comps panel. If you are following along
00:24 and your Layer Comps panel isn't open, you can open it from the Window menu at
00:28 the top of the screen.
00:29 With the normal layer comp selected here in the Layer Comps panel, the buttons
00:33 in the navigation bar are displayed in their normal state, with this white gel
00:37 style applied to each one. If I go back to the Layer Comps panel and I click to
00:42 the left of the over state, you can see the way that the four buttons look in
00:45 the over layer comp. They have this green gel style.
00:49 In addition to applying layer comps to the buttons, I have sliced this
00:53 navigation bar making a separate slice around each button. I have given the
00:57 button slices meaningful names. Then I have optimized all the slices as GIFs in
01:02 Photoshop's Save for Web & Devices dialog box. So that's a recap.
01:06 Now I would like to save out two different graphics from each one of these
01:10 slices. A white version for the normal state of each of the four buttons, and a
01:14 green version for the over state of each button. Then I could bring all eight
01:19 of those graphics into a website building program like Dreamweaver, where I
01:23 could program them to rollover.
01:24 I am going to use the lynda.com Layer Comps to Slices script to export all of
01:29 these graphics by going up to the File menu at the top of the screen and down
01:34 to Scripts and over to Layer Comps to Slices. By the way, if you don't see the
01:39 Layer Comps to Slices menu item in your Scripts menu, then go back and listen
01:43 to the preceding movie about how to install the lynda.com script, so that the
01:48 Layer Comps to Slices item will appear in that menu.
01:52 The first thing that this script asks me is to select a folder in which to keep
01:55 all of the optimized files that the script is going to make for me. I'll do
02:00 that in this Choose a Folder window by navigating to my Desktop, and there I'll
02:03 make a new folder by clicking the New Folder button. I'll name it rollovers and
02:09 I'll click Create. To run the script, I click Choose. Now I'll go out to my
02:15 Desktop to see what the script made for me. There is the rollovers folder that
02:19 I have just created. If I open that, I see inside an images folder that the
02:23 script made for me.
02:25 Inside the images folder are these many GIFs. Each of these GIFs came from one
02:30 of the slices in the image. They were saved out in web ready GIF format because
02:35 that's the format that I chose when I optimized each slice in Photoshop's Save
02:39 for Web & Devices window. If I would have optimized any of the slices as JPEGs
02:44 or PNGs, then I would see those here as well.
02:47 Notice that some of these files have meaningful names, like boards_btn_over.gif
02:52 and boards_btn.gif. Those two files are two versions of the button that the
02:58 script created from the slice that I have named boards btn. The same is true
03:02 for the gear_btn slice, the swim_btn slice and the videos_btn slice, which
03:08 generated videos_btn_over.gif and videos_btn.gif. The rest of these GIFs that
03:13 don't have meaningful names were made from the auto slices in the file.
03:18 I'll open some of the named GIFs so you can see what they are. I'll select
03:22 boards_btn_over.gif and then I'll hold the Shift Key and select gear_btn.gif.
03:27 That selects all four of those files. To open them all in Photoshop, I'll
03:31 double-click anyone of the selected files.
03:34 Here in Photoshop is gear_btn.gif, which is the white version of the boards btn
03:39 in its normal state. If I click the tab on this gear_btn_over.gif, I see the
03:44 gear_btn in its over state with the green gel style. The same is true for
03:48 boards_btn.gif, which is the white version in the normal style, and
03:52 boards_btn_over.gif, which is the over version of the boards btn in its green gel style.
03:57 So now that I have all these rollover graphics, how would I make them into
04:01 working rollover buttons? One way would be to bring both versions of each
04:06 button into Dreamweaver and there create an HTML page and place the buttons on
04:10 that page. Then have Dreamweaver add JavaScript. That would swap one version of
04:15 the button for the other, when a viewer moused over the button in a Web browser.
04:19 So that's' how you can use the special Layer Comps to Slices script to output
04:23 multiple rollover graphics all at once. We hope you will make good use of that
04:27 script in your own work.
04:29
Collapse this transcript
Making rollover graphics from layer visibility
00:00Earlier in this chapter, I showed you how to make graphics for different
00:04rollover states in Photoshop by applying prebuilt styles from Photoshop Styles panel.
00:09But that's not the only way to vary the Photoshop artwork between
00:12rollover states.
00:14Alternatively, you can put different pieces of artwork on different layers, and
00:18then manipulate the visibility of layers as you change rollover states.
00:22I'll show you how that's done in Photoshop in just a moment, but first I want to
00:25show you the results here in my Safari web browser.
00:28All the artwork that you are about to see was created in Photoshop, and then I
00:32took it from Photoshop into Dreamweaver to program the artwork to rollover like
00:36this. If I take my mouse and I move over any one of these icons, the icon gets
00:41bigger and turns purple. And the same is true of this Gear icon, and this
00:45Wetsuits icon, the Swimwear, and the Surfboard.
00:50The way that I did that was to create two graphics and put one on each layer.
00:54One, a small black version of each icon, and the other, a larger purple version
00:58of each icon. And then I varied the visibility of those two layers in the over
01:03state and in the normal state of each button. But that's not all. I also added
01:08another state, and that is a state that's triggered here in the Web browser by
01:12a viewer moving his or her mouse over an icon and clicking or pressing down.
01:17So for example, I'm going to move over the Wetsuit. It turns purple and gets
01:20bigger. And now, I'm going to press down on my mouse, and the color changes to
01:24blue. I go over to another icon and do the same thing. On mouse over, the icon
01:29gets bigger and turns purple, on mouse down, it turns blue. And you can see
01:34that's true on all these icons.
01:37And I did that, by adding a Color Overlay layer effect on the large version of
01:42each icon. So, I'm going to go back into Photoshop and show you how that's made.
01:47Here in Photoshop, you can see a Navigation Bar that contains all of the
01:51artwork that I brought into Dreamweaver to program as rollovers. The artwork
01:55was all created here on layers. In the Layers panel, you can see that there are
01:59multiple layer groups. The black small icons that you see here are in the layer
02:04group called small. If I click the arrow to the left of that layer group, you
02:08will see that it contains these five layers, each of which contains a separate
02:12small black icon. So I'll turn a couple of these off and on, so that you can
02:16see the content of each layer.
02:17By the way, if you are wondering about the icons on these layers, these are
02:20smart objects that were made in Adobe Illustrator and then brought into
02:24Photoshop. So, this is the way that I have planned the Navigation Bar to look
02:28on the normal state.
02:29To memorialize that in a layer comp, I'm going to go up to the Layer Comps
02:33panel and I'm going to click the New Layer Comp button down here at the bottom
02:37of that panel.
02:38In the New Layer Comp dialog box, I'm going to name this layer comp Normal, and
02:43I'll leave all three of the layer comp properties checked. Although the one I'm
02:47really interested in is Visibility because that's the property that I'm varying
02:51across rollover states. I'll click OK, and now I have one layer comp, which I
02:56have labeled Normal.
02:57Next, I'm going to setup the appearance of the over state of these buttons. On
03:01the over state of any one button, I would like the button to get larger and to
03:05become purple. So, I'm going to go down to my Layers panel and I'm going to
03:09click the Eye icon to the left of the small layer group to make all the layers
03:13in that group temporarily invisible, and I'll collapse that layer group just to
03:18make some room and then I'm going to go to the big layer group, and I'm going
03:21to click the arrow to the left of that group. You can see that in this group,
03:25there are five other layers. Each of these layers contains a larger version of
03:29the icons, which I have colored purple.
03:31I am going to click the Eye icon to the left of the big layer group, and that
03:35turns on all of the layers in that group. So this is the way that I would like
03:39each button to look on its individual over state.
03:42Now, remember not all of these icons will be triggered at the same time. They
03:46will just appear one at a time, when a viewer moves his or her mouse over the
03:50corresponding icon in a Web browser.
03:53To capture this look, I'm going to go to the Layer Comps panel, click the Add
03:56Layer Comp button again, and I'll call this the Over state, and I'll leave all
04:00the properties checked again and click OK.
04:03Now, if I say I go back to the Normal Layer Comp in the Layer Comps panel, you
04:07can see the small black icons and when I click on the Over layer comp, you see
04:11the large purple icons. But that's not all. I would like to make one more
04:15state, and that is going to be called the Down state.
04:17Here in Photoshop, I'll set up the appearance of the buttons as I would like
04:21them to look on the down state. What I would like to have happened is for each
04:24button to change color and turn blue. One way to do that is by adding a layer
04:29effect. So I'm going to start with this wahine layer which is this icon right
04:33here. I'll go to the FX button at the bottom of the Layers panel and I'm going
04:37to choose Color Overlay. That opens the Layer Style dialog box where I have a
04:42black or dark color overlay going on. I would like that to be a blue color, so
04:46in the Color Overlay options, I'm going to click the Color field and I'm going
04:50to choose a blue color. I'll click OK and then I'll click OK one more time to
04:55close the Layers Style dialog box.
04:58Now, I would like to use that same Color Overlay layer effect on these other
05:01four layers. One way I can do that is simply copy the layer effect from one
05:06layer to another. I'm going to hold down the Option Key on a Mac. That's the
05:09Alt Key on a PC. As I click on this Color Overlay effect on the wahine layer
05:14and drag up to the gear layer and release my mouse. And that copies the effect
05:18to the Gear layer and you can see that the Gear icon is now blue.
05:22I'll do the same thing again. I'm going to Option-click or Alt-click on
05:25the Color Overlay effect on the wahine layer and drag it up to the Wetsuit layer,
05:29and I'll keep doing that for each layer. Option+Alt-click and drag, and
05:34Option+Alt-click and drag. And, now I have managed to color each one of the
05:38large icons with this lovely blue.
05:41Now, I have Photoshop remember that in yet another layer comp, by going up to
05:45the Layer Comps panel, clicking the Add New Layer Comp icon here, and calling
05:49this state the down state and clicking OK.
05:52Now, I can cycle through my three layer comps by using these arrows at the
05:56bottom of the Layer Comps panel. And there you can see the Normal state with
06:00the small black icons, the Over state with the large purple icons and the Down
06:05state with the large blue icons.
06:07So those are a couple more ways that you can create rollover artwork in
06:11Photoshop by varying the visibility of layers, and by applying individual layer
06:16effects. At this point, I would go through all the steps that I showed you in
06:20previous movies when I was describing how to create rollover artwork with
06:24built-in styles.
06:25I would slice up these buttons, I would name the slices, I would optimize
06:29everything for the web, and then I would run the lynda.com Layer Comps to
06:33Slices script that we provided for you. To export out all of the rollover
06:38graphics, for all of the states, of all of these buttons, all at once.
Collapse this transcript
12. Animating
Creating animations from layer visibility
00:00 A simple way to add animation to a website, a blog, or a web banner is to
00:05 create a GIF animation in Photoshop. The advantage of animated GIFs over other
00:09 animation formats is that animated GIFs can play in any Web browser without any
00:14 special plug-ins or code. However, you don't want to make an animated GIF too
00:18 complex, because this format can get very big in file size, if you include too
00:23 many frames, or if the artwork is too complicated.
00:26 The animated GIF format is best suited for short simple animations like those
00:30 you might see in ads or logos. There are several ways to create animated GIFs
00:35 in Photoshop. You can use tweening to automatically animate layer visibility,
00:40 layer position or layer effects. As I show you how to do later in this chapter.
00:44 In this movie, I'm going to cover a more manual method of animating using
00:48 what's called frame-by-frame animation. The key to this method is to start with
00:52 a layered file, like the one here in which you have made individual pieces of
00:57 artwork on separate layers. For example, in the Layers panel here you can see
01:01 that I have multiple layers, and if I click in the Visibility icon to the left
01:05 of each one, you can see what's on each layer.
01:08 So here is what is on the S layer, here what's on the U layer, the R layer, and
01:13 the F layer. Each of those layers contains a single hand-drawn letter on a
01:19 transparent background. What I would like to have happened during the animation
01:23 is for each of these letters to appear briefly on screen in sequence, and that
01:27 will be the simple animation.
01:28 I am going to start building this frame-by-frame animation by opening the
01:32 Animation panel. I'll go to the Window menu, and I'll choose Animation. By the
01:37 way, I have turned my Application Frame off, so that I can bring the Animation
01:40 panel up high enough that you can see it.
01:42 I happened to be working in Photoshop CS4 Extended, if you are not, you won't
01:47 see this Measurement Log tab here, and the label on your Animation panel may
01:51 look a bit different, but it is the same animation panel. And if you happened
01:55 to be working on Photoshop CS4 Extended, and your Animation panel doesn't look
02:00 like this, but instead it looks like a Timeline, you can change it back to this
02:04 view, by going to the panel menu on the right-side of that Timeline, and
02:07 choosing Convert to Frame Animation. When I open the Animation panel, I see the
02:12 first frame of the animation automatically, and it displays only the layers
02:16 that are currently visible over here in the Layers panel.
02:19 Now, I'm going to make a second frame in the Animation panel by clicking this
02:23 icon here, the second from the right which is the Add Frame icon, and that
02:27 creates frame number 2 in this animation.
02:30 To start with frame number 2 is an exact copy of frame number 1, but I want to
02:34 make a change on frame number 2. So I'll make sure that there is this
02:37 light-blue highlight around frame 2, and then I'm going to go over to the
02:40 Layers panel and I'm going to click in the Visibility field of this S layer to
02:45 make the contents of that layer visible on frame 2. And now if I click on frame
02:49 1, you don't see the S. if I click on frame 2, you do see the S.
02:53 I am going to make a third frame. With frame 2 selected, I'll go to the Add
02:57 Frame icon in the Animation panel, I'll click and that creates frame 3, an
03:03 exact copy of frame 2. With frame 3 highlighted, I'll go over to the Layers
03:07 panel to change some content. I'm going to turn the S layer off by clicking in
03:12 its Visibility field, and I'll turn the U layer on. Now I'm going to create two
03:17 more frames the same way each with separate layer content.
03:20 I'll go back to the Animation panel and click the Add Frame icon again to
03:24 create frame 4, which is now a copy of frame 3. With frame 4 highlighted, I'll
03:30 go over to the Layers panel and I'll turn off the U layer, and turn on the R
03:34 layer. I'll do that one more time in the Animation panel, click the Add Frame
03:38 button, go over to the Layers panel, turn off the R layer and turn on the F layer.
03:43 Now, if I click through the various frames, you can start to see how the
03:47 animation is going to look. There is one more piece of artwork on another layer
03:51 in the Layers panel. But I would like to have it appear on all of the frames in
03:55 the animation, and that's the artwork on the flowers layer here.
03:59 I happened to have frame 5 selected at the moment, and I'm going to go over to
04:02 the Layers panel and make that flowers layer visible.
04:06 The flowers now appear on frame 5 of the animation, but not on any of the other
04:10 frames. So here's how you make the contents of a layer ripple through to the
04:14 other frames in an animation.
04:15 I am going back to the Layers panel again, and this time I'm going to click
04:19 directly on the flowers layer, to highlight that layer. That makes these Unify
04:24 icons available here at the top of the Layers panel. I'm going to click on the
04:27 center one. This is a Unify Layer Visibility icon. And in this message I'm
04:33 going to click the Match button.
04:35 The content of the flowers layer appears on all of the frames in the animation.
04:39 So I can click through all of them and see the flowers there.
04:41 Now, I'm going to preview the animation and I can use the controls here at the
04:45 bottom of the Animation panel to do that. I click the double-pointed arrow to
04:49 go back to frame 1, and then I'll click the right facing Play button; that was
04:53 the animation. As you can see it's playing way too fast.
04:57 So the next step is to add some time between each one of the frames in the
05:01 animation. To do that, I'm going to make sure I have the last frame selected,
05:05 and then I'll hold the Shift Key down, and I'll select the first frame and that
05:09 gets all the frames in between too. And then I'm going to click on this Time
05:12 menu at the bottom of any one of these selected frames. And from the pop-up
05:17 menu of seconds, I'm going to choose perhaps 1.0 second as the delay between
05:22 each one of these frames. It's always just a guess and you can go back and
05:25 change it if you don't like the result.
05:27 I'd like to have a little extra delay on the first frame, and so I'm going to
05:31 click back on frame 1, go to its Time menu and I'll choose 2.0 seconds for that
05:35 extra bit of hesitation at the beginning of the animation, because I'm going to
05:40 have the animation play more than once.
05:42 To make that happen, I'm going to come down to this menu which currently is
05:45 labeled once, click there and from here I can choose a number of times that the
05:49 animation will play.
05:51 In this case, I don't want it to play forever, instead I'm just going to have
05:54 it play three times, and if you don't see three times in this menu, you can
05:58 click Other, and in the Loop Count dialog box, you can set the number of times
06:03 that you want the animation to play. So, I cancel there, and from this menu I'm
06:07 going to choose 3 times.
06:08 Now I'm going to preview by clicking the Play button here, the animation plays
06:13 and hesitates here, and plays again. Hesitates and plays it third time. And
06:21 that's great! That's just the way that I wanted it to look. Keep in mind that
06:25 the time delays that I set here are not really exact because the speed at which
06:29 a GIF animation will play depends in part on the processing speed of the
06:33 viewer's computer. The times that you see here are really more relative than exact.
06:37 Now that I'm done building this animation, it's time to optimize it as a GIF
06:41 and save it. To do that I'm going to go up to the File menu, and down to Save
06:45 for Web & Devices. I'll work in the Optimized Tab, and I'm going to use the
06:49 controls over on the right to optimize this animated GIF just as I would any
06:54 GIF. The controls are just the same.
06:56 The Format menu here must be set to GIF because none of these other choices
07:00 will animate. There is no such things in animated JPEG. And notice that there
07:04 is no choice here for exporting a SWF. If you are interested in creating a SWF
07:07 file, then you'll need to use another application like Adobe Flash or After Effects.
07:12 So I'm going to set this to GIF, and then I'll go to the Colors field and I'll
07:17 try to increase the number of colors here because I see that the photograph in
07:20 the background of this GIF doesn't look very good.
07:23 In the Colors field I'm going to choose the maximum number of possible colors
07:27 in a GIF, 256, and I'm still not happy with the appearance of that photograph
07:31 in the background, and down here on the bottom-left of the Preview, I see that
07:35 my animated GIF is going to be pretty big.
07:38 So I could try to tweak the GIF controls, perhaps by getting rid of the lossy
07:43 compression here and trying to add some dither in. But I still don't like to
07:48 look at that photograph, and now the file is way, way too big.
07:51 So the upshot is that when you are including a photograph in an animated GIF,
07:56 you may have to live with less imperfect photo quality or you may have to go
07:59 back to your original file and modify the design. Let me show you how I might
08:03 do that in this case.
08:04 I am going to click the Cancel button, and I'm going to go back to Photoshop.
08:08 Here in the Layers panel, I'm going to look inside this bg layer group and
08:12 there I can see the photo layer that contains this photograph in the background.
08:16 I am going to change that photograph into a graphic. To do that I'll select the
08:20 photo layer, and I'll go up to the Filter menu at the top of the screen and
08:24 choose Convert for Smart Filters. I always like to apply the Smart Filter
08:28 command before adding a filter, because that way I'll always be able to come
08:32 back and tweak the filter options if I want to.
08:34 You can see the special Smart Object or Smart Filer icon there on the photo
08:38 layer. I'm now going back to the Filter menu, and down to the Artistic category
08:43 of filters and from there I'm going to choose the Cutout filter. That opens the
08:47 Filter Gallery here. With the Cutout filter selected and a preview of how the
08:51 image will look with this particular filter applied, there are options over on
08:55 the right that I can tweak. I'm just going to leave these at the settings that
08:58 you see now, 8, 3 and 1, and I'm going to click OK. As you can see here in the
09:04 document window my photograph no longer looks like a photo. It looks like a
09:08 graphic made from a photo. But I kind of like this look, and this often comes
09:12 in handy, I'll reduce the file size of my animated GIF.
09:15 Notice also that that change has rippled through all of the frames in this
09:19 animation. And the reason is that I had frame number 1 selected when I made the
09:23 change, and by default in the Layers panel this box Propagate Frame 1 is
09:29 checked. So that means that any changes that you make with frame 1 selected
09:33 will propagate or ripple through to all the other frames.
09:36 Now I can go back and optimize this image as a GIF by choosing File > Save for
09:41 Web & Devices. I think the image looks pretty good right now with 64 colors and
09:46 a little bit of a lossy compression and no dither. So I'm going to go with
09:49 that. I also like the file size, which is less than 20 kilobytes for all the
09:53 frames in this animation.
09:55 One thing to keep in mind when you are optimizing an animated GIF is that all
09:59 of the frames in the animation are going to optimize with the same settings. So
10:03 I like to go through the frames one-by- one using the controls down here on the
10:07 bottom-right of the Save for Web & Devices window to make sure that all the
10:11 frames look good with the settings that I have chosen.
10:14 So I'm going to click the Play button down here at the bottom-right, and that
10:17 will play the animation going through each frame, so that I can check whether
10:21 it looks good with these settings. And I think it's fine. So I'll click the
10:24 Stop button. I could also use this control right here, which takes me through
10:28 the frames one-by-one, if I want to manually see how each frame looks with
10:32 these settings.
10:33 When I'm satisfied, I'm going to click the Save button and I'm going to
10:37 navigate to my Desktop from the Format menu of the Save Optimized As window,
10:42 instead of HTML and Images I'm going to choose Images Only. That's because GIFs
10:47 are self-running. They don't need HTML to play. So I'm just going to save out a
10:51 single GIF file here, no HTML. And I save this GIF to my Desktop by clicking Save.
10:57 Now, I'm going back out to my Desktop and there is my GIF. I'll open that in a
11:02 Web browser so that you can see it play. And here it will play through three
11:05 times and then stop.
11:07 So that's the frame-by-frame animation method that you can apply in Photoshop
11:11 to create a simple GIF animation, by turning layer visibility on and off across
11:16 the various frames of the animation.
11:18 You can bring the animated GIF just like any GIF file into a website building
11:22 program like Dreamweaver to include a little bit of motion on your web page.
11:27
Collapse this transcript
Tweening with opacity
00:00Tweening is another way to create an animated GIF in Photoshop. Tweening is an
00:05automatic method. All you have to do is make a couple of frames and Photoshop
00:09will automatically make all the frames in between for you.
00:13Open the Animation panel and put it in Frames Mode by choosing Convert to
00:18Frames Mode from the fly-out menu at the top right of the panel. In this case,
00:23I would like to take the graphic that you see here and have it fade in as my
00:27animation, and to do that, I'm going to tween the opacity of the layer that
00:31contains that graphic.
00:33Over in the Layers panel, you can see that layer here. It's this Image layer.
00:37This started out as a photograph as I'll show you now, and then I added this
00:40cutout filter to give it a graphic appearance so that it will optimize better
00:44in the GIF format.
00:45To start building this tweened animation, I'm going to do down to the Animation
00:49panel and I see there at the first frame in the animation, which Photoshop
00:54creates for me automatically. I'm going to click the Add Frame button right
00:57here and that adds Frame 2, which is currently an exact copy of Frame 1.
01:01I would like to go back to Frame 1 and make a change there. So I'm going to click
01:05on Frame 1 in the Animation panel and then I'm going to go over to the Layers
01:09panel to make a change to this frame.
01:11But before I do, it's very important that I go up to this box, Propagate Frame
01:161 and uncheck it. If I left this box checked, then whatever changes I made on
01:22Frame 1 of the animation, would ripple through to the other frames and that's
01:25not what I want in this case. Because on Frame 1, I want to make the image look
01:30like it's faded out.
01:32So, I'm going to make sure I have the Image layer selected here in the Layers
01:35panel and then I'm going up to the Layer Opacity field here at the top of the
01:39Layers panel. I'll click the arrow to the left of that field and move the
01:43slider all the way to the left until Opacity is set to zero, and then I'll
01:47click off the slider.
01:49So now in Frame 1, you don't see the image at all. Its layer is set to 0%
01:53Opacity. In Frame 2, you do see the image because now the layer is set to 100%
01:59Opacity, which was the original setting. If I were to play this image, it
02:04wouldn't look very good, which is flip back and forth between these two frames.
02:07So, I want to add some frames in between and here is where tweening comes in.
02:11I will make sure I have Frame 2 selected here and then I'm going to go to this
02:15button, the third from the right. This is the Tween button. This opens the
02:19Tween dialog box. In the top menu there, I'll choose that I want to Tween With
02:24the Previous Frame, which means Frame 1 in this case, because Frame 2 is
02:28selected. Then I'll choose a number of frames to add in between these two.
02:32The more frames that I add, the smoother the animation will look but the bigger
02:36the file size would be. So I try to be conservative here and then I'll add more
02:40if I need to. I'm just going to leave this set to 5 frames. I usually leave all
02:45of the other settings at their defaults as you see here.
02:47What the Parameter settings are telling you is that these are the three
02:51qualities of layers that you can animate using tweening. You can vary the
02:55position of artwork on layers, you can vary the opacity of layers as I'm doing
02:59here, or you can vary layer effects.
03:01I will show you how to vary position and effects in another movie. For now, I'm
03:05concentrating on opacity, but even so I usually leave all three of these
03:09checked just to be safe. Then I'll click OK.
03:12Now you can see that there are seven frames in the Animation panel. I created
03:16just two of these, Frame 1 and Frame 7, the last frame. If I click through the
03:21frames, you can see that as I do, the opacity of the Image layer gradually
03:25changes so that it appears to be fading in. I'm going to click the Play button
03:29to make sure this looks right and that's just what I wanted.
03:32Now I would like to add some more frames in which the image fades out. An easy
03:37way to do that is to use the frames I have already created. I'm going to click
03:40on the first frame and then click on Frame number 6, the second frame from the
03:45last, holding the Shift key, and that selects all of the frames from 1 through
03:496.
03:50Then I'm going to go to the panel menu on the right side of the Animation panel
03:53and from that menu, I'm going to choose Copy Frames. So I'm copying these first
03:58six frames. Them I'm going to click on Frame number 7, in which the image is
04:02fully opaque and with Frame number 7 selected, I'll go back to the panel menu
04:07and I'll choose Paste Frames.
04:09Photoshop asks me where I want to paste these. I would like to paste them after
04:13my selection, meaning after the selected Frame number 7. So I'll click OK there
04:18and now if I were to play, you would see that the image fades in twice. But
04:22that isn't exactly the way I wanted. I wanted to fade in and then fade out.
04:26So I'm going to select all of those additional frames that I just added, which
04:30are frames 8 through 13, by clicking on 8, holding the Shift key and clicking
04:35on 13 and then I'm going to reverse those frames. To do that, I'll go to the
04:40panel menu again, and I'll choose Reverse Frames. Now if I go all the way back
04:45to Frame 1 and click there, and then click the Play button, the image fades in
04:49and then out, which is exactly what I wanted. I'll do that again for you.
04:54At this point, all that's left to do is to optimize the image as a GIF and save
04:59it, just like I showed you how to do in the last movie. So I'm not going to
05:02bother taking you through those steps again, other than to say that you go to
05:05the File menu down to Save for Web & Devices. You will choose your appropriate
05:10GIF settings over here, you will click Save and you will save Images Only and
05:16you are done.
05:17You then have an animated GIF that you can bring into a website building
05:20program and add to a webpage. So that's how you can create an animated GIF
05:24using tweening by varying layer visibility. In upcoming movies, I'll show you
05:29how to vary layer position and layer effects to create some other tweened animations.
Collapse this transcript
Tweening with position and layer effects
00:01Tweening is a quick and easy way to create an animated GIF in Photoshop.
00:04In an earlier movie I showed you how to tween layer visibility to make part of an
00:09image appear to fade in and fade out during an animation. There are two other
00:13layer properties that can be tweened. One is Layer Position and the other is
00:17Layer Effects.
00:18In this movie I'll show you an example of tweening those two properties.
00:22I'm going to be working with this layered file that has a background layer and a
00:26single type layer. On the type layer there's just this word Surf, which you can
00:30see if I turn the visibility of the layer off and then back on.
00:34I would like two things to happen this word during the course of the animation.
00:38First, I would like the word to move into the image from the top right corner
00:41and down to its current position and as it does move down there, I would like
00:46the word to change color from a peach color down to the white that you
00:49currently see here.
00:50I am going to work in the Animation panel and there I see a single frame for an
00:55animation that's created automatically by Photoshop. I'm going to make a second
00:59frame by going to the Add Frame button, here at the bottom of the Animation
01:02panel and clicking that button to create frame 2.
01:06Frame 2 is just a copy of Frame 1. Actually, I'm going to leave frame 2 as it
01:10is, because this is where I want the animation to end up, with the word Surf
01:14colored white and in this position. So I'm going to go back to frame 1 and make
01:18some changes there. I'm going to go over to the Layers panel and I'm going to
01:22uncheck Propagate Frame 1, so that the changes that I make here aren't repeated
01:26on frame 2.
01:28One of the two things I want to do to the Surf type layer is to change its
01:31color between frames. So on frame 1, I'm going to add a Color Overlay layer
01:36effect by going to this fx button at the bottom of the Layers panel and
01:40choosing Color Overlay. That opens the Layer Style dialog box. Over on the
01:45left, you see a list of all the various layer effects and you actually can
01:49animate any of these effects by selecting it here and then varying its
01:53properties over here in the middle of the Layers Style dialog box.
01:56For example, with Color Overlay selected I can change options for the Color
02:01Overlay effect here. In particular I'm going to change the color. So I'll click
02:05in the Color field. That opens the Color Picker and then I can move my mouse
02:09into the image and sample a color from the image. I'm going to click on this
02:14peach color and that immediately changes the color of the Type layer.
02:18I'll click OK to close the Color Picker and OK again to close the Layer Style dialog box.
02:22So now on frame 1 if you look in the layers panel, you will see that Color
02:27Overlay effect. If I go into the Animation panel and I switch over to frame 2,
02:33the text goes back to white and you no longer see the Color Overlay effect. So
02:37that's one change.
02:39Now I'm going to change the position of the word Surf between frame 1 and frame
02:422. I'll go back to frame 1 and with the Surf layer still selected in the Layers
02:47panel, I'm going to get the Move tool in the toolbox and then I'm just going to
02:51click and drag that word up to the top right of the image.
02:54When I get toward the corner, you can't see it anymore because it's blending in
02:58perfectly with the background. So I don't even have to bother dragging the word
03:01completely out of the document, even if I don't want to. I'll just leave it there.
03:05Then I'm going to click back and forth between frame 1 and frame 2, and as I do
03:10that, the color and the position of the word Surf changes. But I would like
03:14there to be a smoother transition between those two states and so I'm going to
03:18add some more frames in between these two that I have created using Photoshop's tweening.
03:23I will click on frame 2 here and then I'm going to click the Tween button at
03:27the bottom of the Animation panel. Here in the Tween dialog box, I'm going to
03:31tween with the previous frame, which is frame 1 and I'm going to try adding ten
03:35frames in between and I'll leave everything else at its default.
03:38What I'm most interested in here though is the position and the effects
03:42parameters of this layer. I'll click OK and that causes Photoshop to make ten
03:46additional frames for me. Frame 1 and frame 12 are the two frames that I made
03:52and Photoshop made all these frames in between.
03:55To preview the animation, I'm going to go back to the first frame by clicking
03:58this double pointed arrow at the bottom of the Animation panel. Then I'll click
04:02the play button. Now let's see how the animation looks. That's just what I
04:06wanted. I'll play it again for you. You can see that the word Surf comes in
04:10from the top right and it changes from peach to white as it comes in.
04:14All that's left to do now is to optimize and save the GIF animation by going to
04:19the File menu, down to Save for Web & Devices, and here optimizing this as a
04:24GIF, just as I would any single GIF. Choosing controls that make the image look
04:29good and that keep the file size down, and because every frame of this
04:33animation will optimize with the same settings, I'll be sure to preview all of
04:37the frames using the controls down here at the bottom right of the Save for Web
04:41& Devices window.
04:42When I'm satisfied with my GIF settings, I'll click Save and I'll save this
04:46animated GIF which I can then bring into Dreamweaver or some other site
04:51building program to include in my website.
Collapse this transcript
Optimizing transparent animated GIFs
00:00An animated GIF can contain transparent pixels just like a regular transparent GIF.
00:05In this movie, I'll show you how to put your knowledge of transparent GIFs
00:09to work to optimize a transparent animated GIF.
00:12Here I have a graphic surrounded by transparent pixels, represented by this
00:16gray and white checkerboard in Photoshop. I have already turned this graphic
00:20into an animation down in the Animation panel. I'll play it for you,
00:23so you can see what it does.
00:25I am going to go down and click the left-hand double-pointed arrow here to go
00:29back to the first frame of the animation, which is completely transparent. And
00:33then I'm going to click the Play button and you will see the surfboard fade in
00:36and these elements as well and then the decorations pop in like that.
00:40This animation is currently a native Photoshop document, a PSD file. I want to
00:45optimize it as an animated GIF, so I can post it on a website and I want the
00:49surrounding pixels to remain transparent when it's a GIF, so that if viewer can
00:53see through them to the web-page background below.
00:56To optimize this transparent animation, I'm going to go up to the File menu and
01:00down to Save for Web & Devices. Here, I'm going to work in the 2-Up Tab, where
01:05on the left side, I can see the original animated PSD file, and on the right I
01:10can see a preview of how this animation will look when it's optimized as an
01:14animated GIF, with the GIF Optimization Settings that are here on the right side.
01:18The first thing you will notice is that there are no transparent pixels in the
01:22GIF Preview. The reason for that is that this box, the Transparency checkbox
01:27isn't checked. It's really important to check this whenever you are optimizing
01:30an image with transparent pixels for the web, whether it's an animated GIF, or
01:34a regular GIF, or a PNG.
01:35I'd like to preview how this animated GIF looks against a plain colored
01:40web-page background. I'll setup the web -page background by going over to this
01:44box, the Eyedropper Color box, clicking there to open the Color Picker, and in
01:49the Color Picker, moving the sliders on this vertical bar up to the color area.
01:53I have checked Only Web Colors so that it's easier for me to find the color
01:57that I'm looking for, which is this blue right here. I'm going to click OK and
02:02I have now set that green-blue color as the Eyedropper Color. I'm going to
02:06identify that as the web-page background, by going up to the panel menu at the
02:10top right of the screen and from there I'll choose Edit Output Settings.
02:14In the Output Settings dialog box, I'm going to go to the second menu and
02:18choose Background. I do want to view this document as an image rather than as a
02:22background. So I'll leave Image selected.
02:24Then I'm going to go down to the Color field and there I'm going to click and
02:29choose Eyedropper Color, which is that same green-blue that I just put in the
02:33Eyedropper Color box back in the Save for Web & Devices window. I'll click OK
02:37to close the Output Settings dialog box. And here in Save for Web & Devices,
02:42I'll go down to the Preview button and click to preview the animated GIF
02:47against that green-blue background in my default Web browser.
02:51You can see it animating here and as you can see, the edges of these elements
02:55don't look very good. They are quite jaggedy. I'm going to fix this the same
02:59way that I fixed the jagged edges on regular transparent GIFs. I'll close the
03:04Web browser, go back into the Save for Web & Devices window, and then I'll move
03:08over to the Matte field, which is the key to fixing the problem.
03:12In the Matte field, I'll choose Eyedropper Color. As soon as I do that, you can
03:17see the edges of this graphic fill in with that same green-blue color that I
03:21have identified as a web-page background color. Now, I'll preview again against
03:26that same green-blue background and you can see the animation play with nice,
03:30smooth edges that blend in perfectly with the color of the web-page background.
03:35I am going to close my Web browser and go back into the Save for Web & Devices
03:39window, and here I'm going to come over to the GIF settings and optimize the
03:43image so that not only it looks good, but is as small as it can be. Right now
03:48it's bigger than I would like it to be, over 71 kilobytes.
03:51I will go to the Colors field and I'll reduce the number of colors, I'll try
03:5564, I think I can go down lower. Even at 32, the image looks good. Let's see
04:01how it looks at 16. I think it's best at 32 colors because I notice that the
04:07edges of this orange graphic inside the surfboard were starting to degrade a
04:11little at 16 colors.
04:13Now I have gotten the file size of the animated GIF with all 15 of its frames
04:18down to 46 kilobytes.
04:21If I want to make this animation smaller, I can cancel out of Save for Web &
04:24Devices and I can reduce the number of frames in the animation or I can resize
04:29the animation so that its dimensions are smaller.
04:31But I'm going to leave it for now and click Save, and in the Save Optimized As
04:36window, I'll navigate to my desktop, I'll create a new folder there, which I
04:41called transparent. Then I'll go down to the Format menu and there I'm going to
04:47choose to save both HTML and Images, so that I have an HTML file that contains
04:52instructions for setting the web-page background color.
04:55I will click Save and now I'm going to go out to my desktop and look inside
04:59that transparent folder. There I see the HTML file that Photoshop just built
05:04for me and an Images folder that contains my transparent GIF.
05:08I am going to open the HTML file in a Web browser and there you can see the
05:12transparent GIF fading in and those decorative elements popping in and the
05:17edges of the transparent GIF look nice and smooth against this web page background.
05:22So that's how you can use the principles that you have learned about optimizing
05:26regular transparent GIFs to optimize a transparent animated GIF.
Collapse this transcript
Creating simple animated slideshows
00:00 One of the fun things that you can do with your animation skills in Photoshop
00:04 is to create a small slideshow of a sequence of photos. You have to be
00:08 willing to sacrifice some photo quality because you will be saving your photos
00:12 in the GIF format. You have to be willing to make their dimensions really small,
00:15 but if you are willing to go along with those restrictions, you can make
00:19 a fun slideshow to add to a blog, or a web banner, or maybe to an advertisement.
00:23 I am going to start in Photoshop by going to the File menu and moving down to
00:28 the Scripts menu and over to Load Files into Stack. Here in the Load Layers
00:32 dialog box, I'm going to point Photoshop to the Photos that I want to use in
00:37 this slideshow. I'll go to the Use menu and I'm going to choose Folder because
00:41 all of those photos happen to be in a single folder. Then I'll browse out to
00:45 the folder, which is my Exercise Files folder and in there my chapter12 folder
00:51 and finally, the 12_05 sub-folder. So I'll select that and I'll click Choose.
00:56 Photoshop recognizes that there are five photographs in that folder. So I'll
01:00 click OK to have Photoshop create a brand new file that has all five of those
01:05 photographs stacked up as layers in the Layers panel. The program is smart
01:09 enough to put those photos in order here, according to the numbers in their
01:13 file names. Open the Animation panel and put it in Frames mode by choosing
01:19 Convert to Frames Mode from the fly out menu at the top-right of the panel.
01:23 Now I'm going to go down to the Animation panel to start making my slideshow.
01:27 There you will see the first frame of an animation that's automatically created
01:31 by Photoshop. That frame is displaying this photo, fall1.jpg, which you can see
01:36 in the document window. Now I'm going to click the Add Frame button at the
01:40 bottom of the Animation panel to add frame 2. With frame 2 selected, I'm going
01:45 to go over to the Layers panel and I'm going to make fall1.jpg invisible by
01:49 clicking its eye icon. That makes the next photo in the stack, fall2.jpg,
01:54 become the content of frame 2 in the animation. You can see that photo here.
01:59 I will do the same thing three more times. I'm going to click the Add Frame
02:03 button. With frame 3 selected, I'll go over to the Layers panel and I'll click
02:07 the eye icon to the left of fall2.jpg. So that fall3.jpg becomes the content of
02:13 frame 3. I'll add another frame 4, go to the Layers panel, turn off fall3.jpg.
02:20 So that fall4.jpg becomes the content of frame 4. I'll make frame 5, go back to
02:26 the Layers panel, turn off fall4.jpg. So that fall5.jpg becomes the content of
02:33 the fifth frame.
02:34 The next thing I'm going to do is to add a little bit of time between each one
02:37 of these photos. So with the fifth frame selected, I'm going to hold the Shift
02:41 key and click on frame 1. That selects all the frames in between. Then I'll go
02:46 to the time menu beneath anyone of the selected frames and I'm going to add 0.2
02:50 seconds delay between each frame. Then I'm going to click on frame 5, so that
02:55 only that frame is highlighted. I'm going to go back to the time menu and
02:59 I'm going to add more of a delay on that frame than the others, by selecting 1 second.
03:03 Now I'll go back to the first frame by clicking this double pointed arrow and
03:08 then I'll click the Play button. So that's the slideshow that I have made. It's
03:11 not exactly the way I would like it to look. One of the things that I would
03:15 like to change is I don't want it to loop forever. So I'm going to click this
03:18 Stop button here, I'm going to go to the loop menu and I'm going to have this
03:23 loop just 3 times.
03:24 The other thing I would like to change is that I want to have a smoother
03:27 transition between each one of the photos. I'm going to use tweening to
03:31 accomplish that. I'll start by clicking on frame 2 and I'm going to click on
03:35 the Tween button and tell Photoshop to Tween With the Previous Frame, which is
03:39 frame 1, to add 2 tweened frames in between.
03:43 I will leave all these other settings to their defaults, but I'm really most
03:46 interested in Opacity right now, which is the property of the layers that I'm
03:50 currently tweening. I'll click OK and you can see that Photoshop has added two
03:54 new frames. They are frame 2 and frame 3. So if I click on frame 1, that's
03:59 fall1.jpg; frame 2 is a frame that Photoshop made in which the Opacity of the
04:06 photos is starting to gradually fade one in to the other; frame 3, another one
04:10 that Photoshop made; and here is frame 4, which is another of the original
04:14 photos, this is fall2.jpg.
04:16 I am going to repeat that three more times by clicking first on frame 5 and
04:22 then clicking the Tween button. I'll leave the settings to Add 2 frames, Tween
04:26 With the Previous Frame and click OK. Now we click on the next frame that
04:30 contains one of the original photos. That's frame 8 now. Again, I'll tween with
04:35 the same settings, adding 2 frames and say OK. I'll do that one more time by
04:41 selecting the last frame, which also contains one of the original photos, and
04:45 I'll tween adding 2 frames there.
04:47 Now I'm going to preview by going back to the first frame, by clicking this
04:51 double pointed arrow and then clicking the Play button. So as you can see,
04:56 tweening has added some smoother transition between each one of these photos.
05:01 It's still a bit jumpy but I don't want to add more frames in between or my
05:05 fall size is going to get way too big.
05:07 So now that I'm fairly satisfied with the content, I'm ready to optimize.
05:11 I'll go up to the File menu and down to Save for Web & Devices. In the Save for Web
05:16 & Devices dialog box, in the Optimized tab I can see a preview of one of the
05:21 frames in the animated GIF with these settings over here on the right side of
05:25 the Save for Web & Devices window. I have to optimize this file by making sure
05:29 that GIF is set in the format menu. Then go into the Colors field and
05:34 increasing the numbers of colors, until I like the appearance of the photo.
05:38 So I'll try 32 colors, I'll try 64. It's getting better but I still don't like
05:45 the way it looks. I'm going to go all the way up to 256 colors, which is the
05:49 maximum number of colors you can have in a GIF. I'm still not thrilled with the
05:53 appearance of the photo, but that's the best I'm going to be able to do.
05:57 Remember that every frame in this animated GIF is going to optimize with these
06:00 same settings.
06:02 So I'm going to come down to the Animation controls here and I'm going to use
06:06 this Next frame button, just so I go through the rest of the frames and make
06:10 sure that I can live with the appearance of all of them. The bad news is if I
06:15 look over at the file size in the preview, it's over 600 KB and that's way
06:20 larger than I find acceptable.
06:22 There are a couple of solutions here. One would be to cancel out of the Save
06:26 for Web & Devices dialog box and go back into Photoshop and reduce the numbers
06:31 of photos in the slideshow. Or I could reduce the number of frames that I ask
06:35 Photoshop to tween, but I have only tweened two frames between each of the
06:39 photos anyway. So there is not much leeway there. So probably the best bet is
06:43 to reduce the dimensions of the image here in the Save for Web & Devices dialog box.
06:49 Although normally, I do my resizing outside of this dialog box because the
06:53 image quality has already so degraded and I'm just making an animated GIF, I'm
06:57 willing to do it here. I'm going to bring the dimensions way down by changing
07:01 the width in pixels from 350 to 150 pixels and the height proportionately to
07:08 100 pixels. So basically, I'll be making an animated thumbnail slideshow here.
07:12 I will set the reduction method to Bicubic Sharper. Then I'll press the Return
07:17 or Enter key on the keyboard. You can see that the dimensions get much smaller
07:20 but the file size does too. It's still a bit large but we will go with that for
07:24 now. At this point I'll click the Save button. I'll save it to my Desktop.
07:29 I'll give my animated GIF a name and I'll save in the Images Only Format. Now if I
07:34 go out to my Desktop, I see my GIF right there and I can open that in a Web
07:39 browser and watch it animate. So there it goes my Safari Web browser. That's
07:45 how you can use tweening to create a tiny animated slideshow of a sequence of photos.
07:52
Collapse this transcript
13. Automating
Using the Image Processor
00:00The Image Processor is one of the biggest time savers in Photoshop. I'm going
00:04to open it and then I'll show you how to use it to quickly resize and convert
00:08some photographs to JPEG thumbnails for posting online. I'm going to go in
00:12Photoshop to the File menu and then down to Scripts and then over to Image
00:17Processor. That opens this Image Processor dialog box, which is really easy to
00:21use because each one of the steps is clearly written out here.
00:26The first step is to select the images to process as it says here, if I had
00:30opened some images I could Use the Open Images. I'm actually going to select a
00:34folder full of images that I prepared in advance. But you don't have to prepare
00:38by putting images into a folder in order to use the Image Processor. You can
00:42run it on files wherever they live on your hard drive. If you are going to do
00:45that, then I suggest that you launch the Image Processor, not from Photoshop,
00:49as I have done here but from Adobe Bridge instead. So let me just flip over to
00:53Bridge to show you how to do that.
00:55Here in Adobe Bridge, I have navigated to some photos on my hard drive and
00:59selected them in the content area and then I'm going to go up to the Tools
01:03menu, and down to Photoshop and over to Image Processor. So that's how you
01:08would work, if you had not put photos into a folder first before running the
01:12Image Processor. But since I have done that, I'm going to cancel out of here
01:16and go back to Photoshop.
01:18With the Image Processor open, I'm going to go to the step number one again and
01:22I'll click Select Folder to select the folder full of images that I want to
01:25process. I'll navigate to my Desktop, into my Exercise Files and down to
01:30chapter 13. There I'll select the 13_01 sub-folder and click Choose and you can
01:37see the path to that folder right here, in step number one.
01:40The next step is to select a location in which to save the images that the
01:44Image Processor creates. I could save them in the same folder as the originals,
01:49without the fear of overwriting the originals because the Image Processor tucks
01:53the results into sub-folders automatically.
01:55But I think this time I'm going to choose Select Folders, so I can easily find
01:59the results and then on my Desktop I'm going to create a New Folder and I'll
02:03call this processed photos and I'll click Create. And back in the Image
02:09Processor, you can see the paths to that destination folder here in step two.
02:14The next step is to choose the file type or types that I want the Image
02:17Processor to create from the original photos. I'm going to choose Save as JPEG,
02:22so that I have a copy of each photo for the Web. I can choose what size I want
02:26those JPEGs to be here by clicking Resize to Fit and I'm going to type in a
02:31Width of 150 and a Height of 225. Now those aren't exact sizes. In other words,
02:37not every one of the photos will resize to exactly 150X225 pixels. I don't want
02:43that to happen because some of my photos are horizontal rather than vertical.
02:47What these numbers do describe is the size of an imaginary box into which all
02:52the resized photos both horizontal and vertical will fit and you can see that
02:57if you look at the label, Resize to Fit. Over here I can set the JPEG
03:01compression Quality for the resulting JPEG. I can type in a number between one
03:05and twelve but I'm not going to save for Web window, I can't preview the
03:09results here. So I'll just choose a compromise, I'll choose eight and if I
03:13don't like the resulting Quality of the JPEGs, I'll come back in and run the
03:17Image Processor again with higher quality settings.
03:21I am going to put a checkmark here next to Convert Profile to sRGB because I do
03:26want to convert the profile of these photos to sRGB, which is the best color
03:30space for the Web as I explained in depth in an earlier movie on Color Settings.
03:35So I'll put a checkmark there. The photos are already in the PSD format, so I
03:39don't want to save another copy of each as PSD, so I'll uncheck Save as PSD.
03:44But I might want to save a copy of each in the TIF format, so that I could
03:48include it in a print brochure for example, and I'm not going to resize the
03:52TIFFs because I want them to be big enough for a print product.
03:56Down in step number 4 there are some useful options. If I check Run action, I
04:00can specify an action that the Image Processor will run on each photo after
04:05resizing each photo. An action is basically a recorded set of steps in
04:09Photoshop. I could record my own action in Photoshop's Actions panels and run
04:13that from here or I can run one of the Default Actions that come with Photoshop.
04:18I will do that for now, so you can see how that works. With the Default
04:21Actions, action set here, I'll go to this menu and I'll choose one of the
04:26Default Actions. I would like each one of my thumbnail images to be Sepia Toned
04:30so that's what I'll choose here from this Actions menu.
04:33Here in the Copyright Information field I can enter copyright information that
04:37will be saved as a metadata with each one of the resulting images. To enter the
04:41copyright symbol, on the Mac I'll press the Option key and the G key together
04:46and on a PC working in the numeric keyboard, I would hold down the Alt key and
04:50type 0169.
04:53And then I'll type the name of the photographer and the date. I'm not going to
04:58check Include ICC Profile because as I explained in other movies, many Web
05:03browsers can't read these color management profiles anyway and they do increase file size.
05:08So now I'm done setting up all these options. If I think I might use the same
05:12options again in the future, I can save these so that next time around I don't
05:16have to spend time filling out all these fields. To save these settings, I can
05:20just click the Save button. The Image Processor will save a small text file in
05:24the XML format and then next time I open the Image Processor, I can click the
05:28Load button and load that XML file.
05:31And I'll see all the same settings here that I currently have. Now I'm ready to
05:35run the Image Processor to apply all of these choices to the photos that I put
05:40in the folder that I selected up here in step 1. So I'll click the Run button
05:44and in just a moment Photoshop resizes each image at Sepia Toning and Copyright
05:49Information and saves one copy of each image as a JPEG and another copy as a TIFF.
05:54I am going to go out to my desktop to see those. I'll open my processed photos
05:59folders and there I see two sub-folders. In the JPEG sub-folder are the JPEGs
06:04that were created for me and in the TIFF folder the TIFF copies of each image
06:08that were created. I'll open one of the JPEGs so that you can see it in
06:11Photoshop. It has been sepia toned. You can see that the file size of this
06:16thumbnail JPEG does fit within the parameters that I specified in the Image
06:20Processor, which were a maximum of 150 pixels in Width and 225 in Height, but
06:26because this is a horizontal image the Height is only 100 pixels.
06:30You can also see a Copyright symbol down there and if I go to the File menu and
06:35open the File Info box, you can see the Copyright Information here in the
06:39Copyright Notice field. I'm going to cancel to close that.
06:43So as you can see the Image Processor can be a real time saver, if you need to
06:47process lots of images for the Web quickly. However, keep in mind that if you
06:52are trying to prepare high quality photos for your website. Say you have a
06:55photography website and you want to show off your work, then you may want to
06:59use this Save for Web & Devices feature that I covered in the earlier chapter,
07:03because Save for Web & Devices gives you many more optimization options and
07:07more often than not, produces smaller JPEGs that those who get out of Image Processor.
Collapse this transcript
Creating a web gallery in Bridge
00:00 One of Photoshop's most popular automated web features has long been the web
00:05 photo gallery, which would create an entire website to display your images in a
00:09 matter of seconds. You won't find a web photo gallery command in Photoshop CS4.
00:14 But don't panic. It's still around. It's just been moved from Photoshop into
00:19 Bridge CS4. So I'm here in Adobe Bridge CS4 to show you how to create a web
00:24 gallery. In the Folders panel of Bridge, I have navigated to a folder that
00:28 contains some images. I would like to post some of these photographs online,
00:32 and that's the most common use for a web gallery to display photographs.
00:36 But there are many other possible uses. For example, as a web designer you
00:40 might have displayed some alternative page wire frames and you want to share
00:44 those with a client or with a colleague. You can do that by creating a web
00:47 gallery and posting online. Or let's say you are a wedding photographer, and
00:51 you want to show a bride some proofs, so that she can choose her favorites. You
00:55 can do that by making a web gallery.
00:57 When you are ready to make a web gallery in Bridge, the first step is to select
01:01 the items that you want to include in the gallery from here in the Content
01:04 panel. I'm going to click on the first of these photographs to select it, and
01:08 then I'll hold down the Command key on a Mac or the Ctrl key on a PC, to add to
01:12 that selection some other photographs. The next step is to switch over to the
01:16 output workspace. The default workspace in Bridge is the Essentials workspace
01:21 as you can see here. And this doesn't offer access to the output settings that
01:24 you need to create a web gallery.
01:27 Because my Bridge window is not stretched out very far, I can't see a label for
01:31 the output workspace up here as you might in your copy of Bridge. If you do see
01:35 a label that says output, go ahead and click on it. If you don't, go to the
01:39 arrow to the right of the workspace names that you do see, and choose Output
01:43 from the drop down menu of Available Workspaces. This is the Output workspace.
01:48 I'm going to customize it a bit by collapsing the panels on the left, so that I
01:52 have more room to work. I'll move my mouse over the border between the Folders
01:56 panel and the Preview panel, and drag to the left.
01:59 The Output panel is where the crucial settings are for creating and customizing
02:03 your web gallery. Right now output is set to create a PDF file. I'm going to
02:08 click on the Web Gallery button to see all the options for creating a web
02:11 gallery. First I'll choose a template for my gallery from this menu of Gallery
02:16 Templates that ship with Bridge. Most of these are flash based galleries. There
02:20 is one HTML gallery. I'm going to show you one of the Flash Galleries, and you
02:24 can experiment with the others on your own. I'll choose this Filmstrip gallery,
02:28 and then I'll go to the Style menu.
02:30 I can see here that the Filmstrip template only offers one style, but some of
02:34 the other templates offer a few variations from the Style menu. To preview the
02:39 Filmstrip template with my photos, I'm going to this Refresh Preview button,
02:44 and I'm going to click there. Bridge creates a temporary gallery for me and
02:47 displays it here in the New Output Preview panel that's appeared. This
02:51 particular template shows each one of the selected photos in a photo thumbnail down here.
02:56 And when I click on one of those thumbnails, I see a larger version of the
02:59 photo up here. There is also a slideshow built into this template, which I can
03:04 launch by clicking the Play button right here, and that causes the gallery to
03:08 cycle through the photos with these gradual transitions in between. I'll click
03:12 that button again to stop the slideshow. There are lots of ways that I can
03:16 customize this web gallery. For one thing, I can change the order of the slides
03:20 as they appear in the slideshow.
03:22 To do that I come down to the Content area, where I still have all four of the
03:25 photos in the gallery selected. Let's say that I would like to take this photo
03:29 Surf1.PSD, and have it appear at the end of the slideshow. To do that I'll
03:34 click on surf1.PSD in the Content area which deselects all the other photos,
03:39 and I'll drag surf1.PSD all the way over to the right and drop it there. I
03:43 still have to go back and reselect the other photos. So I'll do that by holding
03:47 the Command key on a Mac, or the Ctrl key on the PC, and clicking on the other
03:51 photos in the Content area.
03:53 This time around I think I'll add another photo into my slideshow. And so in
03:57 this way I can change my mind about which photos are included, and in which
04:01 order they appear in the web gallery slideshow. I can do more customizing over
04:05 here in the Output panel. For example, I would like to change the Gallery Title
04:09 up here, and the Gallery Caption that appears over here. To do that I'll go to
04:14 the Gallery Title field, and I'll customize by typing my own title. I'll call
04:18 this surfing photos and I'll type my own gallery caption.
04:21 I type oxnard 2008, which is where the photos were taken. I also can add some
04:27 text about the gallery. I'm just going to type a bunch of access for now, and a
04:31 viewer will be able to see that descriptive text by going to the View menu and
04:35 choosing about this gallery. This template offers a link to an email address
04:39 here. I can change the label on this email link from Contact name, to my name
04:43 or the photographer's name. I'll type the photographer's name in the Your Name
04:47 field. And I also could change the email address here in the Email Address
04:52 field. But I'll leave that for now. I can add Copyright information in the
04:56 Copyright Information field.
04:57 By holding the Option key and the G key on a Mac to create a copyright symbol,
05:02 or on a PC using the numeric keyboard to enter the number 0169 while holding
05:08 the Alt key. And then again I'll type the photographer's name and the date.
05:12 I'm going to scroll down to show you that I can also change the colors of the
05:19 various areas of the web gallery. So for example, if I want to change the color
05:23 of the area behind the slideshow, I'll click in the Color field to the left of
05:27 slideshow, and here I'll click on another color.
05:30 And there are various ways to view and choose colors in this Colors dialog box.
05:35 I like this Crayon view, but there are some other views of colors here that you
05:38 can use instead. I'm done there, so I'll click OK. Down in the Appearance area
05:43 of the Output panel I can choose to show the file names underneath the Photos
05:47 in the web gallery. Although I think I'll leave that Unchecked for now. I can
05:51 also change the Size of this Preview image, or the Size of these thumbnail images.
05:56 So for example, I could choose to see Large thumbnails instead of Medium. And I
06:00 can set a different duration between the slides. I'll make that three seconds.
06:03 As well as choose a different transition effect between slides. So I'll choose
06:08 Cut. When I'm done making these choices, I can either click Refresh Preview to
06:12 view my changes here from inside Bridge, or I can click Preview in Browser to
06:17 see how the gallery looks with these changes in my Default Web browser.
06:21 I'll try that. Here are the large thumbnails that I chose, and here is the slideshow
06:30 with the Cut transition that I chose.
06:32 Here's the text that I typed in, and here under the View menu, under about this
06:37 gallery are the access that I typed into the description field. I'm going to
06:43 close the Web browser and go back into Bridge for the last step. I'm going to
06:47 go ahead and save this gallery to my hard drive. So I choose Save For Disk. But
06:52 I also have an option to upload the entire gallery to a web server to make it
06:57 live online. I can do that from right here in Bridge. There's an alternative to
07:01 saving to disk and then using a third party FTP program to upload the site. If
07:06 I want to upload from Bridge, I click the Upload radio button here, and then I
07:10 enter some information into the FTP server fields. All of this information I'll
07:15 get from my Web Hosting Provider. I have to set up an account with that
07:19 provider that will include the hosting of a website, and an FTP server.
07:23 In this first field I'll type the path to that server, and the name of that
07:26 server. Then I'll type my user name and password, and finally I'll type the
07:31 name of the public folder on the web server that will contain my web gallery.
07:35 And when I'm all done I'll click Upload. But for now I'm going to save to disk.
07:39 I'm going to give the gallery a name surfing gallery. And this will be the name
07:44 of the folder that Bridge will make for me to contain all of the contents of
07:48 this website.
07:49 Then I'll click the Browse button, and I'm going to browse out to my desktop,
07:52 and I'll just click Choose and Save. Bridge is now creating that entire gallery
07:58 for me, compressing copies of the photos as JPEG, and writing HTML files, Flash
08:03 files and XML files to create an entire website. I'm going to click OK here,
08:09 and now I'm going to go out to the desktop to see what Bridge made for me.
08:12 Here's the Surfing Gallery folder, and if I look inside, I see the index.html
08:17 file that is the main page in this site. There is also a Resources folder, and
08:21 inside of that are some Flash files or SWF files, some XML files, and an images
08:27 sub-folder that contains copies of the photos in my gallery in their thumbnail
08:31 sizes and in Medium and Large sizes.
08:34 I'll open the HTML file locally in my Web browser, and here in my Default
08:39 browser is the website that Bridge created for me. It's got the text that typed
08:43 in, it's got the slideshow and it's got the photo thumbnails. If you have been
08:47 waiting for a chance to put your images online, the Web Gallery in Bridge CS4
08:52 is a quick and easy way to automatically create an entire website with a
08:56 minimum of effort. I hope you'll try with your own images.
09:00
Collapse this transcript
Displaying high-resolution web images with Zoomify
00:01The Zoomify feature allows you to export panoramas and other large photographs
00:05from Photoshop in a way that will allow them to be posted and viewed in high
00:09resolution online. Here in Photoshop CS4 I'm working in the Color and Tone
00:14workspace. I have opened this stunning panoramic photograph, which is the work
00:19of photographer and author Jim Hyde. This photo is really big. Down in the
00:23document information area of the document window, I can see that it's over
00:2612,000 pixels wide and over 2,500 pixels tall. Normally I'd never think to put
00:32in image this big on the web. It would have to be significantly reduced in size
00:36in order to be viewed online as a conventional JPEG. And doing that would
00:40undoubtedly reduce some of its grandeur and its impact as a wide-angle panorama.
00:44So instead of preparing this photo for the web with the normal Save for Web and
00:48Devices feature, I'm going to export it using Zoomify. I'll go to the File menu
00:52at the top of the screen, and I'm going to choose Export, and then Zoomify.
00:57Here in the Zoomify Export dialog box, I'll go to the Template field and from
01:01there I'm going to choose a special Zoomify Viewer that will display the image
01:05on the web. I'm going to choose one with a Navigator that helps to pan around
01:09in the image. And I like this Black Background, so I'll select that.
01:12Next I'm going to go to the Output Location area, and there I'm going to create
01:16a folder to hold the results of the Zoomify Export. I'll click the Folder
01:20button, and out on my desktop I'm going to make a new folder. I'll click New
01:24Folder and then I'll type the name of a folder. Click Create, and click Choose.
01:29The way that Zoomify works is that it cuts the photo into lots of tiles and
01:34save those tiles at various resolutions compressed as JPEGs. In this Quality
01:39field I can set the compression quality for the JPEGs. I'm going to leave it at
01:43its default of 10, and I'm also going to leave Optimize Tables checked here,
01:47which also affects the JPEG compression. I'll leave the Base Name at sf_pano,
01:52which comes from the original image here. That will be the Base Name for the
01:56individual JPEGs that are saved out by this feature.
01:59Finally I'm going to go down to the Browser Options area where I can set the
02:02Width and Height of the Zoomify Viewer. I'm designing for a Web browser on a
02:071024x768 monitor, and I'm going to make the viewer really big, so that it
02:12almost fills that space. So I'll make it about 960 pixels wide by 600 pixels
02:18tall. I'm going to leave Open in Web browser checked, so that my default Web
02:22browser is automatically launched to show me what it's made. And now I'll click
02:26OK, and in just a moment Zoomify prepares many small tiles, creates Zoomify
02:32Viewer, and opens my default browser to show me the results. Here in my Web
02:37browser I can see part of the image, and if I click and drag, I can pan across
02:41the image to see the rest of it.
02:43As I drag, I'll pause temporarily to let the image resolve as it comes into
02:47view. Another way that I can pan across the image is to use the Navigator up
02:52here. I'll click inside that blue box, and drag across the Navigator to pan in
02:57the image. At the bottom of the Zoomify Viewer are these controls for zooming
03:03in and out. I'm going to click and drag the zoom control to the right, and then
03:08I'm going to use the panning controls over here to move up, and as you can see
03:13when I zoom in, I can really see the detail of the cars on the bridge. I can
03:17use these other arrows to move over to the left, to move down, and to move to the right.
03:25And if I click this last icon in the controls at the bottom of the viewer, I go
03:28back to the original view. So this is what viewers will see online when I
03:33upload the elements that Zoomify has created for me to a web server. I'm going
03:37to go out to my desktop to see just what those elements are. Here is the
03:42Destination folder that I created. Inside of that folder there is an HTML file
03:47that contains the code that displays the Zoomify Viewer. There is also an image
03:51folder that Zoomify created. If I look inside of that folder, I see that there
03:55is some XML data. There is a Flash or SWF file that contains the Zoomify
04:00Viewer, and them there are some folders that are full of small JPEG tiles, so
04:05that you can see the content of some of these. I'm going to jump over to Bridge
04:08for a moment.
04:09Here in Bridge I'm navigating to my desktop in the Favorites panel. In the
04:13Content area I see the Zoomify folder. I'm going to double-click that, and then
04:18I'll double-click the sf_pano image folder, and then I'll go into one of these
04:23Tile group folders, so that you can see some of the many JPEGs that have been
04:27saved out by the Zoomify feature in Photoshop. If I'll scroll down, you can
04:31start to get a sense of the many little tiles into which Zoomify cut the
04:36original panorama. I'll go back to my desktop and into that Zomify folder again
04:41to show you that if I want to publish this online, I can take both the HTML
04:45file and the images folder and upload all of this to a web server. So that
04:50viewers can enjoy a high resolution view of this great looking panorama. With
04:54thanks again to photographer Jim Hyde, and to the Zoomify feature in Photoshop.
Collapse this transcript
Creating graphic variations with variables
00:00 You can use the variables and dataset features in Photoshop CS4 to create
00:05 variations on a single web graphic automatically. For example, here I have a
00:10 web banner that announces the surf spot of the month. I would like to have some
00:14 variations on this banner that I could use to freshen up the content on my
00:17 website each month or that I could use on different pages in this site.
00:22 I'm working in the Web workspace. There are three elements of this banner that I
00:26 would like to vary. The photo over here , the type that says the surf spot of the
00:30 month here and the small graphic that warns that this surf spot is for experts only.
00:36 Each of these three items is isolated on a separate layer in the Layers panel,
00:40 which is important for this technique. I'll go over to the Layers panel and I'm
00:44 going to hold down the Option key as I click on the Photo layer so that you can
00:47 see just what's on that layer and I'll do the same on the Location layer.
00:51 You can barely see but there is the text Waimea on that layer and on the
00:55 Expert layer, just this little Expert graphic. I'm going to define each one of
01:00 these layered elements as a variable. You might think of a variable as a neutral
01:04 container that I'll fill with different content for variations on this
01:08 web banner. So the first step is to define these three elements as variables.
01:12 To do that, I'll go up to the Image menu and I choose Variables > Define.
01:18 I'll move this variables dialog box down so that you can see the web banner too. And
01:23 here in the Variables dialog box, I'll start by defining the first variable,
01:28 which is the photo on the Photo layer. To do that, I'll go to the Layer menu
01:32 and here I see a list of all of the layers in the file. From here, I'll choose
01:36 the photo layer. Next, I'll tell Photoshop what type of variable this is.
01:41 To do that, I'll go to the Variable Type area and I'll check Pixel Replacement, which
01:46 means that its content is composed of image pixels and that I'll be replacing
01:50 the pixel-based content with a different photo for each variation on the banner.
01:55 I will give this variable a name here in the Name field. I like to use the same
01:59 name as the corresponding layer to indicate that the two are related. But I'll
02:03 capitalize that name here. So I'll select the default text and over it,
02:08 I'll type the word Photo with a capital P. In the Method field, I tell Photoshop how
02:14 I want each photo to be scaled to fit in the same space as the photo that you
02:18 see here in this banner. When a method is chosen from this menu, if I roll my
02:23 mouse over that method, I can see a description of the method in the box below.
02:28 These are the choices in the Method menu.
02:30 I am going to leave it set to Fit. Now I'm ready to define a second variable.
02:34 I'll do that by going back to the Layer menu and there I'm going to choose the
02:38 Location layer. As you may remember, the Location layer is the layer that
02:42 contains the text that names the surf spot of the month. I'll tell Photoshop
02:47 what type of layer this is. Because this is a type variable that I'll be
02:51 changing out in each banner, this is a text replacement type variable. So I'll
02:55 select Text Replacement and then I'll give this variable a name. I'll call it
02:59 Location with a capital L.
03:02 The last layer that I'll define as a variable is the Expert layer, which is the
03:06 layer that contains this small Expert graphic. To define this variable, I'll go
03:10 to the Layer menu again and this time I'll choose Expert. I identify the type
03:15 of variable here. This is a Visibility variable. Because the only change that
03:20 I'm going to make to this variable across banners will be whether or not this
03:23 graphic is visible. So I'll check Visibility and I give the variable a name and
03:28 I'll call this one Expert with a capital E.
03:32 Back in the Layer menu notice that the photo, location and expert layers all
03:36 have an asterisk. This means that those layers have been defined as variables.
03:41 The other layers, the Background layer and the Flowers layer, will remain static
03:45 from banner to banner. So now that I have got all the variables defined,
03:50 the next step is to create some datasets to populate those variables. Each dataset
03:55 will generate a variation on this web banner that contains a different photo, a
03:59 different line of types specifying the surf spot and will display or not
04:04 display the Expert graphic.
04:06 To make the datasets, I'll go to the Define menu here and I'll switch it to
04:11 Data Sets. I'll start by clicking the Create New Data Set button here and that
04:16 makes a dataset that is called Data Set 1 by default. I'll change the name of
04:20 this dataset to something more meaningful, Mavericks, which is the name of the
04:25 surf spot that will be the subject of this variation of the banner. Now I'll
04:29 set the value of the variables in this dataset. I'll go to the Variables area
04:33 where the Name menu is set to Expert. That means that I'm working on the Expert
04:37 variable. To set the value of the Expert variable, I'll go to the Value field
04:42 and I'm going to set the value to Invisible which means that in this
04:46 variation on the web banner, the Expert graphic will not appear. Now I'll set
04:51 the value of another variable by going to the Name field and choosing the
04:54 Location variable.
04:56 Here in the Value field, instead of Waimea, I'll type Mavericks and then I'll
05:01 set the value of the last variable from the Name menu, which is the Photo
05:05 variable. To set its value, I'll click the Select File button here next to
05:10 Value. I'll navigate to my 13_04 sub- folder. In that sub-folder, I'm going to
05:15 select the photo_maverisks.PSD and then I'll click Open. And you can see the
05:20 path to that file here next to the Value field. Notice that the chart at the
05:25 bottom of this dialog box summarizes the Name, the Value and the associated
05:30 Layer for each one of the three variables. The Expert variable, the Location
05:35 variable and the Photo variable.
05:37 I am going to click Apply to apply all of the changes that I have made here to
05:42 see the results here in the web banner. So you can see that the photo has
05:46 changed, the name of the surf spot has changed and the visibility of the little
05:50 Expert icon has changed as well. So I'm done making my first dataset.
05:55 Now I'm going to make a second dataset the same way. I'll go a little faster this time
05:59 since you have already seen me do it once. I'll go to the Data Set field and
06:04 I'll click the New Data Set icon. Instead of calling this Data Set 2,
06:08 I'll change the name to rincon. I'll go to the Name field and I'll start with the
06:13 Photo variable. I'll select a file for the rincon banner by clicking this
06:17 Select File button. I'll choose photo_rincon.PSD and click Open.
06:22 Then I'll go back to the Name field and select another variable, the Location
06:26 variable. In the Value field for this variable, I'll change the value from
06:31 Mavericks to Rincon. And then I'll go back to the Name filed one more time and
06:36 I'll choose the Expert variable. This time I'll change the value of the Expert
06:40 variable to Visible. I'll click Apply to see these changes here in the web
06:44 banner. There is a new photo. The text is changed to Rincon. And the Expert
06:49 icon is now visible.
06:50 I will make a third dataset the very same way. I'll go to the New Data Set icon
06:55 here. I'll name the dataset. I'll call this one Pipeline. I'll go down to the
07:01 first variable, which is the Expert variable, and this time I'll make the value
07:05 Invisible. Then I'll go back to the Name field and select the Location variable
07:09 and I'll change the value to Pipeline. And I'll go back one more time to the
07:13 Name field. I'll choose the Photo Variable and then I'll click Select File and
07:18 navigate out to my photo_pipeline.PSD and click Open. And finally, I'll click
07:24 Apply to see the changes here in this variation on the web banner.
07:28 So now I'm done defining the three variables and populating them with the data
07:32 that I entered into the three datasets. I'll click the Preview button so that I
07:36 can see live updates in the banner. To do that, I'll click the arrows to the
07:40 right of the Data Set field. I can see the Mavericks banner with all of its
07:44 changes and the Rincon banner as well. Now I'm going to click OK to close the
07:50 Variables dialog box, but leave the banner open here in the document window.
07:54 I would like to have Photoshop automatically generate three versions of this
07:58 banner. One from each of the three datasets. To do that, I'll go up to File,
08:03 go down to Export and I'll go over to Data Sets as Files. In the next dialog box,
08:09 I'll click the Select Folder button and I'll navigate to my Desktop where I'll
08:13 make a new folder for my three banners. I'll click the New Folder button and
08:17 I'll call the new folder Banners and click Create. Then I'll click Choose.
08:23 Back in this dialog box, I'll leave the Data Set menu set to All Data Sets. And then
08:28 I'll go down to the file naming areas. Here is an example of how each banner
08:32 will be named with the default options here in the File Naming field.
08:37 This name is a bit long. To shorten it, I'm going to make some changes to these
08:40 File Naming fields. I'll go to the first field and I'll change it to Data Set
08:45 name and then I'll go to each of the other fields and change those to None.
08:51 I'll leave the File Extension set to .PSD because that's the only choice I have.
08:56 PSD is the only format in which I can export datasets as files.
09:01 I'll check compatibility with these other operating systems and I'll click OK. And
09:07 Photoshop goes ahead and creates and export as PSD files the three variations
09:11 on this web banner. To see those, I'll go out to my Desktop and I'll open the Banners folder.
09:17 There are my three PSD files. I'll open all three of them.
09:23 I'll set the first one to 100% and then I'll go to the Arrange Documents menu and
09:28 I'll choose Match Zoom. So there is the rincon banner with the orange photo and
09:34 the Expert graphic and the Rincon text.
09:36 Here is the pipeline banner with the green photo, the Pipeline text and no
09:40 Expert graphic and here is the Mavericks banner with the purple photo,
09:45 the Mavericks text and no Expert graphic. Keep in mind that these three banners are
09:50 not yet in web-ready format. To prepare them for the web, I'd go ahead and
09:55 slice each banner and then optimize the slices as JPEG, GIF or PNG in the Save
10:00 for Web & Devices dialog box.
10:03 Now in this exercise, I created only a few variations on this web banner but
10:07 imagine that I were creating hundreds of variations on the banner. I wouldn't
10:10 want to go through the manual process that I just showed you over and over.
10:14 It would be more efficient to use a spreadsheet to populate the variables with
10:17 different values and that is what I'm going to show you how to do in the very next movie.
10:23
Collapse this transcript
Importing values for graphic variations
00:00In the last movie you learned how to create variations in a web graphic like
00:04the banner by defining variables in Photoshop CS4 and then populating those
00:09variables manually by creating datasets in Photoshop. That technique is useful
00:14when you need just a few variations on a graphic, but if you are making lots of
00:17variations, it's probably quicker to create a spreadsheet that contains the
00:21values of the variables that you make in Photoshop, and then you can just
00:25import those values into a document in Photoshop, as I'll show you how to do here.
00:30I already defined the variables in this web banner. The Photo over here, the
00:35Location, which is a type layer, and this small Expert graphic down here. Now I
00:39want to import some values for those variables. For that I'm going to use a
00:43spreadsheet that I created earlier. The top row of this spreadsheet contains
00:48the names of the variables that I specified in Photoshop. The Location
00:52variable, the Photo variable, and the Expert variable, and then each of the
00:57rows contains data to populate those variables.
01:01So for example the first row of the spreadsheet is set up to create a variation
01:05on the web banner I just showed you that contains the text or the surf location
01:09Waimea. A particular photo that I have called photo_waimea.PSD, and in which
01:16the expert graphic is not visible. And then these other rows would create other
01:20variations on that web banner. I happened to have made this in Microsoft Excel,
01:25but you can make and use the spreadsheet in any application that will generate
01:29a spreadsheet in comma- delimited or tab-delimited format.
01:32I am going to go up to the File menu, and down to the Save As. In the Save As
01:39dialog box, I'm going to the Format menu, and there I'm going to be sure to
01:43choose either Comma Separated Values, which creates a .csv file, or Tab
01:49Delimited Text, which creates this flavor of a .txt file. I'll choose the CSV
01:54for now, and then it's important that I save this spreadsheet in the same
01:59folder that contains the photos that are going to populate the photo variable.
02:04I have my photos in the 13_05 folder. So I click Save. And now I'm going to go
02:11back to Photoshop, where I still have my web banner open, in which I have
02:16defined the three variables.
02:17To import that spreadsheet full of values for those variables, I'll go up to
02:23the Image menu, and down to Variables, and over to Datasets. I don't happen to
02:28have any datasets yet in this image. I'm just going to click the Import button
02:33here, and from the Import Data Set dialog box that appears, I'll click Select
02:37File, and then I'll navigate to find that .csv spreadsheet that I just made. So
02:42I'll select that one, and I'll click Load.
02:45I like to check Use First Column for Dataset Name, because that causes
02:49Photoshop to take that first column of content from my spreadsheet, and use
02:54that as the name of each dataset that Photoshop creates. I don't have any
02:58existing dataset, so it doesn't matter whether Replace Existing Dataset is
03:02checked, but I'll just leave that for now. And I'll also leave Encoding at
03:05Automatic, and I'll click OK.
03:09Photoshop has just imported all of the information from that spreadsheet into
03:13this dialog box, creating a separate dataset for each row in that spreadsheet.
03:18And each dataset will generate a different variation on this web graphic. To
03:22Preview those, I'll make sure that the Preview box is checked over here, and
03:26then I'll go up to the arrows to the right of the dataset field, and I can see
03:29a live preview here in the document window. Each variation on my web banner has
03:35a different photo, it has different source spot location here, and it either
03:40has that graphic on or off depending on the instructions in the spreadsheet
03:43that I imported.
03:45This came out just great, so I'm going to click OK, and now I'm ready to Export
03:49each variation on my web graphic, in the same way that I showed you how to do
03:53in the preceding movie, and that is to go to up to the File menu, down to
03:56Export, and over to Datasets as Files. I'll select a folder in which to put the
04:02resulting files, and I'll just put that on my desktop. I'll call the folder,
04:06banners 2, and I'll click Create, and click Choose. I'm going to name each file
04:12with just the Name of the Dataset with all of the other file naming field set to None.
04:16I will leave the File Extension at PSD, and I'll make sure the results are
04:20compatible with various operating systems, and then I'll click OK. And
04:25Photoshop creates 12 different web banners for me. To see those, I'm going out
04:29to my desktop and into banners 2 folder, and there are all 12 of my web
04:34banners. I'll open one of those so that you can see it here in Photoshop. And
04:38now all that's left to do is to optimize each one of these banners in web ready
04:42format, like GIF, JPEG or PNG, so that I can use them as variations in my website.
Collapse this transcript
14. Integrating with Other CS4 Applications
Dreamweaver Smart Object integration
00:00Photoshop is a great program in which to create image content for a website as
00:05you have seen throughout this course. But Photoshop isn't the only application
00:09that you will use when you are doing web work. If you are creating websites,
00:13you will also need an application in which to build those sites. And Adobe
00:16Dreamweaver is the ideal site building program to use with Photoshop because in
00:21Creative Suite 4, Adobe has significantly improved the integration between
00:26Photoshop and Dreamweaver.
00:28As in past versions, you can still bring any of the GIFs, JPEGs, PNGs and even
00:33the HTML files that you saved out of Photoshop into a Dreamweaver site and as
00:39in the last version of Dreamweaver, you can copy from a native PSD file in
00:44Photoshop and paste into Dreamweaver, but now in Creative Suite 4, integration
00:49between the two programs goes even further. Adobe has added Smart Object
00:54Technology in CS4 that allows true roundtrip editing between Photoshop and
00:59Dreamweaver. Let me show you how it works.
01:02Here in Dreamweaver CS4, I'm going to open a site that I already made. You can
01:07use your own site or if you are following along, you can open the site that I
01:10made by going to the Site menu and down to New Site and in the Site Definition
01:15dialog box I'll click the Advanced tab. Here I'm going to enter a Site Name,
01:20I'll call this the Surf site and then I'm going to go to the Local Root Folder
01:24field and I'm going to click on the folder to the right of that. This will be
01:28the site root folder, the folder that contains all of the HTML pages and all of
01:33the assets that go on those pages. I'll click Choose and then I'll click OK.
01:39Here in my Files panel I can see my new site, Site surf, and because the arrow
01:44is facing down I can see its contents, which are an index.html file which is
01:50the homepage. Another HTML file for a second page in the site and an images
01:55folder that contains the images for those two pages. There is also an assets
02:00folder in which I'm storing some .PSD native Photoshop files for use as I build
02:06up this site.
02:06I am going to open the Homepage by double clicking the icon to the left of
02:11index.html. This is a partially built web page, which I have been filling in
02:16with graphics and photographs that I made in Photoshop. I still got a couple of
02:20spaces that I would like to fill, including this space up here which I would
02:24like to fill with the graphic that I have made in Photoshop. I'm going to do
02:27that by creating a smart object for this area.
02:30To create a smart object, I could just open Adobe Bridge and drag in a .PSD
02:35file from there or I can use any of the Insert Image methods in Dreamweaver.
02:40So, for example, I can click in this spot which selects the DIV on the page and
02:45then I'll go up to the Insert menu and down to Image and in the Select Image
02:50Source window, I'll make sure that I'm in my site root folder. If your window
02:54doesn't open to that folder as mine just did, you can always click on the Site
02:58Root button down here to go directly to that folder.
03:02Here, I'm going to go into my Assets sub -folder and I'm going to choose one of
03:06the .PSD or native Photoshop files that I have made in Photoshop. I'll click on
03:11subnav.PSD and then I'm going to click the Choose button. That opens the Image
03:16Preview dialog box in Dreamweaver. This dialog box is very similar to the Save
03:22for Web & Devices dialog box in Photoshop.
03:25Over on the right, it offers previews of the image as it will look optimized
03:29for the web. Just like in Photoshop, I can use a 4-up preview, a 2-up preview
03:35or a single preview. At the top of this window, Dreamweaver reports the current
03:39file size and some other information about the file. There are some tools at
03:44the bottom including a Crop tool and the Zoom tool and over on the left are the
03:48Optimization options. Because this is flat art, it will probably optimize
03:52better as a GIF or a PNG then as a JPEG.
03:55So from the Format menu, I'll make one of those choices. I'm going to choose
03:59GIF and that brings up settings that are very similar to the GIF Optimization
04:03settings that you have seen in Photoshop Safe for Web & Devices window.
04:07I'm going to leave most of these at their defaults for now but I do want to go to
04:11the Colors field and reduce the number of colors from the maximum of 256 to
04:16something lower in order to try to reduce the file size. Let's see if 8 will
04:21work. That did reduce the file size and I think the image looks just fine like that.
04:26So I'm going to click OK. Dreamweaver is now asking where I want to save the
04:30GIF copy of my original source file and the answer is in the Site Root folder.
04:36Again, you can get to your Site Root folder by clicking the Site Root button
04:39down here. Once you are in the site root folder 14_01, click on the Images
04:45sub-folder. If you remember, that's where all the images for these web pages
04:49are stored. I'm going to click Save in order to save the GIF copy of my PSD
04:54source file here in the Images sub- folder. In the next window I'm gong to add
04:59some Alt text for accessibility purposes. I'll just type sub-nav and click OK.
05:06And now I can see the graphic here in my Dreamweaver page.
05:10Notice the green circular arrow icon here. That identifies this graphic as a
05:14smart object and it also tells me that this copy of the original source file is
05:20now in sync with the original. In other words, this is the latest unchanged
05:24version of this graphic. This is a graphic that I would like to have on many
05:28pages in this website. Since I have now optimized a copy as a GIF, I can easily
05:33add that GIF to other pages. For example, I have another page here in the Files
05:37panel, fearless.html.
05:40I am going to double click the icon to the left of fearless.html to open that
05:44page in Dreamweaver too. And you can see fearless.html is now opened in the
05:48second tab in Dreamweaver's document window. I'm going to put the graphic in
05:53the same spot that I had it in index. html. So I'll click in that spot in the
05:58fearless.html page and then I'm going to go up to the Insert menu, down to
06:04Image and in the Select Image Source window, I'm going to click the Site Root
06:08button to go back to my site root folder 14_01.
06:10I am going to look inside the Images folder where I just saved that GIF and
06:16I'll scroll down to find the GIF subnav.gif. I'll select that and then
06:21I'll click Choose. Here I'll add some Alt text, sub-nav and click OK. The same
06:27graphic now appears on the fearless. html page again with the green arrow
06:32indicating that it's a smart object.
06:34Assume that I have put the same graphic on many, many pages in this website and
06:38then my client views the website and tells me that this graphic is the wrong
06:42color and that it needs to say Boards instead of Surfboards. That's no problem.
06:48I can use the new Smart Object Technology to quickly change the graphic on all
06:52the pages on which it appears in this site.
06:55In any one of those pages, I'll make sure that the graphic is selected as it
06:58currently is and then I'll go down to the Edit field in the Properties
07:02Inspector. Just to the right of that is a little Photoshop icon. I'm going to
07:06click that icon to launch Photoshop and to open in Photoshop, the .PSD source
07:12file for this graphic. I'm working in the Color and Tone workspace. Notice in
07:17Photoshop Layers panel that this PSD file has a couple of layers.
07:22The top layer is the Type layer. I'll turn that on and off so you can see
07:25what's on it and the bottom layer is just a solid color. I'll change the type
07:30first. I'm just going to double click the T icon on the Surfboards Type layer
07:34and that's select the text and it selects the Type tool in the toolbox.
07:39I'll type Boards to replace that text and then I'll go up to the check mark in the
07:44Tool Options bar. And I'll click that to commit that change.
07:47Next I'm going to fill the Surfboards bg layer with another color. I'll select
07:52that layer and then I'll go over to my Foreground Color box in the toolbox,
07:56click there to open the Color Picker and I'll navigate to a color. I'll choose
08:01this light green and I'll click OK and then I'll Fill with Foreground Color by
08:05pressing Option+Delete on a Mac or Alt+Backspace on a PC.
08:10The final change I'll make here is to align the new text with the background.
08:14To do that, I'll hold down the Shift key as I click on the Boards layer, so
08:18that both layers are selected and then I'll go to the toolbox and select the
08:21Move tool and then in the tool options bar for the Move tool, I'll click on the
08:26two Aligned Centers icon. This one here and this one here.
08:30Now I'm done making changes to the original subnav.PSD source file. So I'm
08:36going to Save that file by pressing Command+S on a Mac or Ctrl+S on a PC or are
08:42just going up to the File menu and choosing Save. Now I'm going to go back to
08:47Dreamweaver. Notice that the Surfboards graphic on the frearless.html page is
08:53still purple and sit till says Surfboards but the smart object icon on that
08:57graphic is changed. It's now green and red indicating that the GIF version of
09:02the file on this page is added sync with the original PSD file that I just changed.
09:07To synchronize the two, I'm going to Ctrl-click on a Mac or right-click on a PC
09:12on that icon and from the menu that appears, I'm going to choose Update from
09:16original. That will cause Dreamweaver to go back to Photoshop and re-optimize
09:21the file from the original PSD file. So it's not just redoing the GIF or the
09:26JPEG every time. Instead it's re- optimizing from the original, retaining the
09:31quality of the image. And now if I go back to index.html page on which I had
09:36put the very same graphic, I can see that the graphic has been updated there as
09:40well. So you can see how quick it would be to change a graphic on many, many
09:45pages in a website making use of new smart object integration between Photoshop CS4
09:50and Dreamweaver CS4.
Collapse this transcript
Dreamweaver Copy/Paste integration
00:00In the last movie, I showed you how to use the new Smart Object technology in
00:04Dreamweaver CS4 to work with Dreamweaver and Photoshop together. But that's not
00:09the only way to work between the two programs. There are times when it will
00:12make more sense to just copy and paste between Photoshop and Dreamweaver as I'm
00:17going to show how to do in this movie.
00:19For this lesson, I'm going to make a new site in Dreamweaver by going to the
00:22Site menu at the top of Dreamweaver CS4 and choosing New Site. In the Site
00:27Definition dialog box, I'll click on the Advanced tab and in the Site Name
00:32field I'll type a name for my site. I'll call it surf2. I'm going to click on
00:37the folder to the right of the Local root folder field and I'm going to select
00:41the 14_02 sub-folder as my site root folder. I'll click Choose and
00:47then I'll click OK.
00:49Now down in the Files panel in Dreamweaver, I can see my new site surf2 where I
00:55have an index.html page. That's the homepage of the site and images folder that
01:00contains the images for that page and I have an assets folder in which I'm
01:05storing an original PSD source file. I'm going to open index.html by
01:10double-clicking the icon to the left of it. You can see here that there is a
01:15spot vacant in which I would like to put an item that I have created in
01:18Photoshop. I haven't yet created a separate graphic that will fit in this area
01:22in Photoshop but let me switch back to Photoshop to show you what I do have.
01:27Here in Photoshop, I have made a layered comp of the web page that I want to
01:31build in Dreamweaver. In this area, I have an image of a surfer on top of a
01:36frame and I would like to include that in my Dreamweaver web page. Because it's
01:41not yet a separate comp, I can't make it into a Smart Object but I can copy and
01:46paste it and here is how I would do that.
01:48I am going to go to the toolbox and select the Rectangular Marquee tool and
01:53then I'm going to come in and drag out a selection around that photograph and
01:57its frame. To copy the content of all the layers within that selection, I'll go
02:02up to the Edit menu and down to Copy Merged and then I'm going to delete my
02:06selection by going to the Select menu and choosing Deselect.
02:10In Dreamweaver, I'm going to click in the area where I want to paste that
02:13content which selects that div and then I'll just go up to the Edit menu and
02:18choose Paste. That opens Dreamweaver's Image Preview dialog box, which is very
02:24similar to the Save for Web & Devices dialog box in Photoshop. Here I'm going
02:28to optimize this content and because it's primarily a photograph, I'll optimize
02:33it as a JPEG. The only setting I'm going to bother changing is the Quality
02:36setting which I put at about 75, I'm satisfied with the file size and I think
02:41the image looks fine. So I'll click OK.
02:44Now Dreamweaver wants to know where I want to save the JPEG copy of that image
02:48which by the way takes its name from the original PSD file. I'm going to put
02:53that in my site root folder 14_02 and if your dialog box doesn't open to your
02:58site root folder, you can get there by clicking Site Root.
03:01Inside the site root folder, I'm going to select the images folder and I'll put
03:06my JPEG there by clicking Save. I'll add some old text, I'll call this photo of
03:12surfer and click OK and the photo now appears here in my Dreamweaver page.
03:18Let's say that later I decide that I don't really like the look of this
03:21photograph, I would rather have it be tinted with a different color. Because I
03:25copied and pasted the original content into Dreamweaver, I can't make use of
03:30smart technology round-trip editing but here is what I can do.
03:34I am going to go back to Photoshop and here I'm going to make a change to this
03:38photo by going over to the Layers panel, clicking on the photo left layer
03:42inside the photos layer group and then going up to the Adjustments panel. If
03:47your Adjustments panel isn't open, you can open it from the Window menu.
03:51Here I'm going to click on the black and white Adjustment Layer icon to add an
03:56adjustment layer above the photo left layer. By default, that turns everything
04:00black and white on the layers below. I'm going to click in the Tint box here
04:04and then I'll click in the color field to the right of the Tint box and I'm
04:08going to choose another color, perhaps a green with which to tint this photo
04:12and then I'll click OK.
04:14The only thing that I would like to have affected by this adjustment layer is
04:17the photo on the left. So I'll go to the bottom of this Adjustments panel and
04:21I'm going to click on this Double Circle icon which clips the adjustment to
04:25just the layer below, just the photo left layer.
04:28Now I'm going to go back and select that photo again with the Rectangular
04:31Marque tool, which is still selected in the toolbox. I'll click and drag to
04:36make a selection around the photo. I'll go to the Edit menu and I'll choose
04:39Copy Merged.
04:40Now I'm going to go back to Dreamweaver. I'll make sure that I have selected
04:44the div that contained the photo by clicking in that area and then I'll go to
04:48the Edit menu and I'll choose Paste and that updates that area in my
04:53Dreamweaver web page.
04:54So that's how you can use an alternative workflow, copy and paste, to work
04:58between Photoshop CS4 and Dreamweaver CS4.
Collapse this transcript
Fireworks integration
00:01Fireworks CS4 is an Adobe program in Creative Suite 4 for creating bitmap and
00:07vector based graphics for the web. Fireworks has another function. It could be
00:11used as a prototyping application in which you can build multi-page website
00:15designs and then export those designs as HTML prototypes which you can then
00:21share in a Web browser with clients and colleagues.
00:23When you use Fireworks in this capacity, you will find that the program works
00:27really well with Photoshop in the practical workflow that I would like to show
00:30you in this movie. I'm going to start here in Photoshop CS4 where I have built
00:34this webpage comp.
00:36I am going to bring this webpage comp from Photoshop into Fireworks and when I
00:40do that, I want to make sure that all of the layer structure and layer
00:43properties are retained. So let me show you what those are before I import the
00:47file into Fireworks.
00:48I am going to go over to the Layers panel in Photoshop and there you can see
00:52that there are multiple layers in this file. There is also one layer group, and
00:56if click the arrow on that layer group to expand it, you can see that this
01:00layer group contains multiple editable type layers.
01:03Other layers in this file have special properties. For example, if I click on
01:07the TexturedBar layer here which contains this green bar, you can see that up
01:12in the Layers panel, I have attached this special Overlay blend mode to this
01:16layer, which effects the way the colors in the TexturedBar layer interact with
01:20the colors below. Or if I go down and click on the NavBar layer and then look
01:24up at the top of the Layers panel, you can see that the Opacity of this layer
01:28has been reduced to 85% so that the grey nav bar here is partially transparent.
01:33The Surfboard layer, which contains this white surfboard, has a layer style
01:38attached to it. If I click the arrow on the right side of the Surfboard layer,
01:42you can see that there is an outer glow layer style on this layer and you can
01:46see the blue outer glow in the document.
01:48So I would like to retain all of this layer structure and the special layer
01:52properties when I bring this PSD file into Fireworks to include into the
01:57prototype that I'm building there. I'm going to switch over to Fireworks now.
02:02I'm building that prototype in this .png file surfsite.png.
02:07PNG is the native file format of Fireworks. Over on the right, I have a Pages
02:12panel in Fireworks. The Pages panel can keep track of multiple pages that you
02:17can have inside of one PNG here in Fireworks. I have already imported this PSD
02:22page comp into Fireworks and it appears here in the Pages panel as Page 1 of
02:28the prototype that I'm building.
02:29Now I'm going to import the Photoshop document, the .PSD page comp that I just
02:35showed you in Photoshop as the second page in this Fireworks PNG. To do that,
02:40I'll go down to the Add Page button at the bottom of the Pages panel and I
02:44click the Add Page icon there. That creates a new page, Page 2, which is
02:49currently a blank page on this blue green canvas that I designated as the
02:54canvas color when I created the PNG in Fireworks.
02:57To import my PSD file, I'll go to the File menu and I'll go down to Import, and
03:03into the 14_03 sub-folder. There I'm going to click on fearless2.PSD, which is
03:09my Photoshop webpage comp, and then click Open. In this dialog box, I can set
03:15options for importing the Photoshop file. I could change its pixel dimensions
03:19but I happen to know that it is sized exactly to fit this PNG file.
03:23So I'll leave the width and height as you see them here. I'll also leave the
03:26Resolution set to 72 pixels/inch. I don't have any layer comps in this file. So
03:32I can skip over the Layer Comp field. I'm also going to leave this other
03:35settings at their defaults as you see them choosing to maintain layer
03:39editability over the appearance.
03:42I don't need to bring in the background layer from the PSD file because my PNG
03:46file already has this blue green page background, and I'm not going to import
03:50into a new layer. I would like to see a preview, so I'll click Show Preview and
03:54here I can see a preview of the PSD file.
03:57I will click OK and then I'll come into Page 2 of the PNG which is showing here
04:03in the Fireworks document window and I'm going to move my cursor which now
04:07looks like a placement icon, up to the very top left of blue green canvas, and
04:11I'll click there to place my Photoshop document inside the Fireworks PNG file.
04:16If I go back to the Fireworks' Pages panel, I can click back and forth between
04:20this page and Page 1 and then back to Page 2 again. There is also a Layers
04:25panel here in Fireworks. To bring that panel to the forefront of this panel
04:29group, I'll click the Layers tab right here, and now I can see all of the
04:34layers that came in with the Photoshop document to Page 2 of this PNG file. I
04:39can see that Photoshop honored the layer structure of the Photoshop file.
04:42All of the layers are here and there is even the layer group and if I expand
04:46the layer group, I can see inside of it all of my type layers. These layers
04:51remain editable. So for example, if I click on the first of these type layers
04:55and that selects the type over here in the document. This type remains editable
04:59here in Fireworks so that I can change something about it like its color.
05:04To change the color of this selected type layer, I'll go down to the toolbox in
05:08Fireworks and I'll click here in the Fill Color box and in the palette that
05:13pops up, I'll click on white and that changes the color of this text. I'm going
05:18to collapse the type layer in the Layers panel so that you can take a look at
05:21some other layers here.
05:23I will click on the TexturedBar layer. You may remember that in Photoshop, that
05:27had a special layer blend mode attached to it and in Fireworks, I still have
05:31that Overlay layer blend mode as reported here in the Fireworks' Layers panel.
05:36And if I select the NavBar, you can see at the top of the Layers panel in
05:41Fireworks, that it still has the reduced opacity of 85%.
05:45Not only did Fireworks respect these layers properties, but I can change them
05:49here. So for example, I can click the arrow to the right of the Opacity field
05:53and I can increase the opacity of this grey nav bar to 100% and will click to
05:58close the slider there.
05:59You may remember that the Surfboard layer had a special outer glow layer effect
06:03attached to it in Photoshop. I'm going to select the Surfboard layer and then
06:07I'm going to go down to the Properties panel, which is down here at the bottom
06:11of the screen in Fireworks.
06:12Notice that there is checkmark next to Photoshop Live Effects. If I
06:16double-click Photoshop Live Effects, I open Live Effects window in Photoshop
06:21and here I can see that there is an Outer Glow Photoshop Live Effect on the
06:26Surfboard layer.
06:28I can even change that Live Effect here by selecting Outer Glow and coming into
06:33the Outer Glow options and making a change. So for example, I could click on
06:36the Color field here and I might choose another color for that glow, something
06:41like a light yellow and click OK.
06:44So you can see that there is a close relationship between Fireworks CS4 and
06:49Photoshop CS4 and that you can create content in Photoshop, bring it into
06:54Fireworks as a separate page, and Fireworks will honor the layer structure and
06:58the layer properties and allow you to make changes to the layers in the file
07:02right here in Fireworks CS4.
Collapse this transcript
Exporting from Illustrator to Photoshop
00:00If you prefer using Adobe Illustrator over Photoshop to create graphics for the web,
00:04you can make the original artwork in Illustrator and bring the results
00:08into Photoshop to add perhaps to a webpage comp that you are building there.
00:12One way to get your artwork from Illustrator into Photoshop is to export it
00:16from Illustrator in Photoshop format. So for example, here I'm working in
00:20Illustrator CS4 with a native Illustrator file that has these objects on a
00:24white artboard. You can see that there are a number of layers and some layer
00:29groups and as you can see one of these layers is a layer of editable type. I
00:33would like to retain the layers and the editability of the type layer when I
00:38bring this file into Photoshop.
00:39I am going up to the File menu and I'm going to choose Export. I'm going to
00:44navigate to my desktop and then I'll go to the Format field and I'll make sure
00:48that Format is set to Photoshop (PSD ) and then I'll click Export. In this
00:54dialog box I can set options for exporting in Photoshop format.
00:59First, I'll make sure that Color Model is set to RGB so that this file is in
01:03the proper Color Mode for the web. I'll set the Resolution to the Screen
01:08Resolution of 72 ppi and then I'll double check that Write Layers is selected
01:13in the Options area in order to preserve the editability of the type layer. So
01:17I'll make sure that Preserve Text Editability is checked and I'll also check
01:21Maximum Editability, so that Photoshop honors as much as possible about the
01:25layers in the Illustrator file and I'll check Anti-alias so that when the
01:30artwork is converted to pixels it's edges remain as smooth as possible.
01:35When I'm done selecting the Export options, I'll click OK and then I'll go out
01:39to my Desktop to see what I have exported from Illustrator. Here is my PSD or
01:44Photoshop document file. I'm going to open that in Photoshop. Here you can see
01:50the objects floating on a transparent background and over in the Layers panel,
01:54I can see first of all that that text layer remains an editable type layer.
01:58If I wanted to change something about it here in Photoshop, I could just get
02:02the Type tool and click and drag over the type and perhaps I'll change its
02:06color by going up to the Tool Options bar and clicking in the Color Field and
02:10choosing a different color and then going to the Tool Options bar again and
02:14clicking the checkmark to accept that change.
02:17I also see in the Layers panel that the layer groups, the type layer group and
02:21the artwork layer group have been preserved and if I expand the artwork layer
02:25group I see the groups and layers from the Illustrator file.
02:30So although Photoshop does have tools for creating graphics to all content if
02:34you prefer to make your graphics in Illustrator you certainly can create them
02:37there and just export them in Photoshop format as I have shown you here.
02:41Another way to go from Illustrator to Photoshop is to bring a Smart Object from
02:45Illustrator into Photoshop and I'll show you how to do that in the next movie.
Collapse this transcript
Illustrator vector Smart Object integration
00:00 If you create graphics for the web in Illustrator, you can bring those graphics
00:04 into a composition that you are creating in Photoshop. In another movie in this chapter,
00:08 I showed you how to do that by exporting out of Illustrator in
00:12 the Photoshop document format, .PSD format.
00:16 Another way to bring Illustrator objects into Photoshop is as vector Smart Objects.
00:21 This is an efficient way to work between the two applications because
00:24 it gives you the opportunity to quickly go back into Illustrator, make changes
00:29 to the file there, and have it automatically update in Photoshop.
00:33 To show you how this works, I have two documents opened, one in Photoshop CS4
00:38 here and one in Illustrator CS4. The PSD file is a composition that I'm
00:43 building in Photoshop. This AI file contains some vector artwork, these sandals
00:48 that I made in Illustrator; you can see that I'm now working in Illustrator.
00:52 I would like to bring the Illustrator artwork into the Photoshop document to
00:56 add it to my composition there. I'll select the Black Arrow tool, which is the
01:00 Selection tool, and then I'll come into the Illustrator file and I'll click and
01:04 drag to select the sandals.
01:06 Then I'm going to go up to the Edit menu in Illustrator and I'm going to choose
01:10 Copy. Now I can close this Illustrator file, I'm done with it, and click back
01:15 on the Photoshop file, which takes me back into Photoshop CS4. Here I'm going
01:21 to go to the Edit menu and I'm going to choose Paste.
01:24 I have a choice of how I want to paste this object, as Pixels, a Path, a Shape
01:29 Layer, or a Smart Object. With Smart Object selected, I'm going to click OK,
01:34 and that brings the sandals into the Photoshop file surrounded by this bounding box.
01:39 In just a moment, I'm going to convert these objects from their current vector
01:43 based format which is composed of drawing instructions to a pixel based format
01:48 which is composed of pixels of color information. But before I do that, I have
01:52 the opportunity to resize them without harming the image at all because they
01:56 are still vector based.
01:58 So I'm going to move over one of the corners of this bounding box, I'm going to
02:01 hold down the Shift key to constrain proportions and then I'll click on one
02:05 corner and drag toward the center of the sandals to make them smaller.
02:09 Then I'll release the mouse and I'll click inside the bounding box and drag to
02:13 position the sandals where I want them, and finally, I go up to the Options bar
02:18 and I'll click the checkmark there.
02:20 Over in the Layers panel, I see that the illustration came in on a new separate
02:25 layer labeled Vector Smart Object, and notice that the thumbnail has a special
02:29 symbol that identifies the layer as a smart object layer.
02:33 A vector Smart Object brought in from Illustrator remains linked to the
02:37 Illustrator file from which it originated and that means that I can make
02:40 changes to the object in the Illustrator file and those changes will be
02:44 automatically updated in this Photoshop file.
02:47 To do that, I'm going to double click the thumbnail on the vector Smart Object
02:51 layer. I'll click OK at the prompt and that re-launches Illustrator CS4 and
02:56 opens the Illustrator file that contains the sandals. That re-launches
03:01 Illustrator and opens this file, which contains the vector Smart Object.
03:04 For example I might want to change the shape of the sandal on the left so that
03:09 it matches the round toe of the sandal on the right. To do that, I'm going to
03:13 go up to the toolbox and I'm going to click on the White Arrow tool, the Direct
03:17 Selection tool, and then I'll come back into the image and I'll click on the
03:20 edge of the left sandals. That brings up this Bezier handles.
03:24 If I click on one of those handles and drag, I can change the shape of the toe
03:29 of that sandal. To change the color of this selected sandal, I'll go up to the
03:34 Color panel and I'll drag the sliders there to fill the left sandal with a
03:39 different color.
03:40 To apply the same color to the right sandal I'll click on the edge of the right
03:43 sandal and then I go over to the toolbox and I click on the Fill Color box
03:48 there. And then I'll click on the artboard to deselect.
03:51 Now I'm going to save this Illustrator file with these changes by going up to
03:56 the File menu and choosing Save. It's important to save the changed file over
04:01 the original. So I don't want to choose Save As and I don't want to save
04:04 elsewhere or with a different name. I'll just choose File > Save.
04:07 I am going to close the Illustrator file again and I'll go back and click on
04:13 the Photoshop composition in Photoshop CS4. And notice the sandals have changed
04:18 color and the left sandal is now more rounded than it was.
04:22 So the changes that I made in Illustrator automatically updated the vector
04:26 Smart Object here in Photoshop. So that's the advantage of working with
04:31 a vector Smart Object when you bring content from Illustrator CS4 into Photoshop CS4.
04:38
Collapse this transcript
Flash integration
00:00Flash CS4 is another Adobe Creative Suite 4 program that you may want to use
00:05along with Photoshop CS4 to make assets for the web. You can make graphics for
00:10the web in Photoshop and then bring it into Flash to add motion and
00:14interactivity there.
00:15In this movie, I would like to show you how you can bring a layered Photoshop
00:19file into Flash automatically converting all the Photoshop layers into Flash
00:23layers in the Timeline. That will save you lots of time and effort, and Flash
00:28will respect the Photoshop layer properties like blend modes and layer styles
00:32as well as the editability of Photoshop Type and shape layers.
00:35I am starting in Photoshop CS4 with this .PSD document. This file contains lots
00:42of layers. Here are some pixel-based layers, Photoshop Editable Type layers. In
00:47the Suite's layer group, there are a couple of shape layers that I made with
00:50the Custom Shape tool to which I added an Outer Glow layer style to each, and
00:54you can see that glow around the wetsuits.
00:57In the photos layer group, I have these three photos, each of which has its own
01:01Drop Shadow. I would like to retain all of these layers and these layer
01:05properties when I bring this file into Flash.
01:08I am going to switch over to Flash CS4 now and here, I'm going to create a new
01:13Flash file from the Start menu. This is the Flash stage where compositions are
01:18built and down here is the Flash Timeline, which will list all of the layers in
01:22the file but I'm bringing in from Photoshop. To import that Photoshop file, I'm
01:26going up to the Flash File menu and down to Import and over to Import to Stage.
01:31I'll navigate to my Exercise Files. There I'll click on surf_ad.PSD and then
01:37I'll click Import. That opens the Import to Stage dialog box where I can choose
01:42exactly which layers I want to import. So, for example, if I decided that I
01:47wanted to import that entire composition without the logo, I could just uncheck
01:51logo here and everything else would come in except for the contents of the logo
01:55layer. I'm going to check that again so that I do bring in the logo.
01:59You will notice that Flash did recognize the layer structure. So it saw this
02:04layer group, the text layer group containing the Type layers as well as the
02:08suits layer group and down here, the photos layer group.
02:11I am going to start by choosing some options for importing the Type layers.
02:16I'll click on one of the Type layers and that brings up options over here on
02:20the right. I do want to retain the editability of the text on this Type layer.
02:24So, over here on the right, I'll click the Editable Text button. I actually can
02:28set this option for more than one Type layer at a time. I can select another
02:32Type layer and then hold down the Command key on a Mac or the Control key on a
02:36PC as I click on other Type layers to select them. I also want to retain the
02:41editability of these two shape layers as well as their layer style. I'm going
02:46to select both of those by clicking one and then Command-clicking on a Mac or
02:51Ctrl-clicking on a PC on the other shape layer. That changes the options on the
02:55right to options for importing shape layers and I'm going to choose to Import
03:00these shape layers as editable paths and layer styles.
03:03I will scroll down to the photos layer group and now I can see the three
03:08pixel-based photos, each of which has a layer style on it. I'm going to select
03:13all of these by clicking the first, holding down the Shift Key and clicking the
03:17last of the photos and that selects the photo in between as well.
03:21It also changes the options over here to options for importing image layers.
03:25I'm going to choose to import these layers as bitmap images with editable layer
03:30styles. If I scroll up to the top, I have a coupe of more pixel-based layers
03:35like this logo layer. I could import a pixel-based layer like this as a Flash
03:39movie clip. A movie clip is a type of symbol in Flash and a symbol is a master
03:45object that can be used many times in a Flash composition. Each use of a symbol
03:49is called an Instance. So, to import the logo layer as a movie clip, I'm going
03:54to go over to the Options for logo and I'm going to choose Create Movie Clip
03:58for this layer and then I'll give the instance of this symbol a name. So, I'll
04:03call this logo1, and I can do the same for this other pixel-based layer at the
04:09wetsuit sale layer and I'll call this instance name sale1.
04:15Movie clips are important in Flash if you want to include ActionScript in your
04:19Flash composition and its way more efficient to import a layer as a movie clip
04:23now than to go back later in Flash and have to make it into a movie clip.
04:27Now that I'm all done choosing the Import Options for these individual layers,
04:33I'm going to go down to the overall options at the bottom of this dialog box. I
04:37do want to convert layers to Flash layers. I'm going to leave the layers at
04:42their original positions that they were in the Photoshop file, and I'm going to
04:46check Set Stage Size to the same size as the Photoshop canvas, so that the
04:51entire Photoshop composition fits on the stage in Flash, and then I'll click OK.
04:57Here on the stage, I can see all of the imported content, and if I look in the
05:01Timeline down here, I can see that each of my Photoshop layers is on a separate
05:05layer in the Timeline, and here in Flash I can add motion and interactivity to
05:10these layers of content.
Collapse this transcript
Conclusion
Goodbye
00:00It's really been a pleasure teaching you this course Photoshop CS4 for the web.
00:05Keep in mind that to absorb all the material here, you have really got to
00:08use it in your own work.
00:10So do continue to practice the skills that I have taught you here, and above all,
00:13enjoy yourself as you prepare images for the web in Photoshop CS4.
00:18Thanks for viewing!
Collapse this transcript


Suggested courses to watch next:

Photoshop CS5 for the Web (5h 59m)
Jan Kabili

Typography for Web Designers (6h 25m)
Laura Franz


Fireworks CS5 Essential Training (8h 51m)
Jim Babbage


Are you sure you want to delete this bookmark?

cancel

Bookmark this Tutorial

Name

Description

{0} characters left

Tags

Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading
cancel

bookmark this course

{0} characters left Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading

Error:

go to playlists »

Create new playlist

name:
description:
save cancel

You must be a lynda.com member to watch this video.

Every course in the lynda.com library contains free videos that let you assess the quality of our tutorials before you subscribe—just click on the blue links to watch them. Become a member to access all 98,695 instructional videos.

start free trial learn more

If you are already an active lynda.com member, please log in to access the lynda.com library.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Access to lynda.com videos

Your organization has a limited access membership to the lynda.com library that allows access to only a specific, limited selection of courses.

You don't have access to this video.

You're logged in as an account administrator, but your membership is not active.

Contact a Training Solutions Advisor at 1 (888) 335-9632.

How to access this video.

If this course is one of your five classes, then your class currently isn't in session.

If you want to watch this video and it is not part of your class, upgrade your membership for unlimited access to the full library of 1,899 courses anytime, anywhere.

learn more upgrade

You can always watch the free content included in every course.

Questions? Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com.

You don't have access to this video.

You're logged in as an account administrator, but your membership is no longer active. You can still access reports and account information.

To reactivate your account, contact a Training Solutions Advisor at 1 1 (888) 335-9632.

Need help accessing this video?

You can't access this video from your master administrator account.

Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com for help accessing this video.


site feedback

Thanks for signing up.

We’ll send you a confirmation email shortly.


By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

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.

By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

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

   
submit Lightbox submit clicked