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

Saving web graphics from Photoshop

From: Create Navigation Menus with jQuery and Dreamweaver

Video: Saving web graphics from Photoshop

Now to create the graphics for our layout, let's come up to the folder 2, Art Templates inside of the exercise files. Let's open up template_items.psd. Now inside of the Layers Panel, I have a layer at the bottom called fpo. This is simply just a gray layer, but since we have some semi-transparent artwork on the stage here, this is going to make it easier for us to see that artwork. So I am going to zoom up here on the individual slices. Now to get to the Slice tool, we are going to come over here to the Cropping tool, click and hold, and we will see two Slice Tools here, the Slice Creation tool, and the Slice Selection tool.

Saving web graphics from Photoshop

Now to create the graphics for our layout, let's come up to the folder 2, Art Templates inside of the exercise files. Let's open up template_items.psd. Now inside of the Layers Panel, I have a layer at the bottom called fpo. This is simply just a gray layer, but since we have some semi-transparent artwork on the stage here, this is going to make it easier for us to see that artwork. So I am going to zoom up here on the individual slices. Now to get to the Slice tool, we are going to come over here to the Cropping tool, click and hold, and we will see two Slice Tools here, the Slice Creation tool, and the Slice Selection tool.

I am going to select the Slice Selection tool, double-click on logo. And here we can see the slice settings, the Name is logo, the Width is 120, the Height is 70. This is the semi-transparent ping file that's used inside of the IE7 and 8 CSS file. We'd use a semi-transparent ping here since IE7 and 8 don't support semi-transparency with CSS 3, and this is set to 15 x 15. And if I zoom up even further, we can see the two small arrows, we are going to use as indicators for our menu.

This is the down arrow set to 7 x 5, and the right arrow set to 10 x 7. Then lastly, if I zoom out we see this large graphic across the top. This has named banner, and it's set to 980 x 150 pixels. So before we save these out, let's come back to the Layers panel. Let's turn off the fpo layer, and let's come under the File menu and come down and choose Save for Web. If you're using Photoshop CS2 to Photoshop CS 5.5, this menu item will say Save for Web and Devices.

In Photoshop CS6, which is what I am using here, Adobe changed the name now to just Save for Web. When you select this, this is going to bring up the dialog box giving us all of the optimization settings for these slices. So if I select this slice right here, the very top one, I can see this is set to a JPEG file, 75% Quality. And in the lower left-hand area, I can see that this is going to take up 32 kilobytes. If I select the logo, this is going to be saved as a 24-bit PNG, which is going to give us all of that semi-transparency as well. And this slice here, 24-bit PNG for the ie_transparency, and then the tiny little slices here for the arrow indicators, and I can zoom up on those as well.

Now all of these optimization settings have been saved into this Photoshop file, so all of these slices will retain these settings. Let's come down and hit Save. Now from this Save As dialog box, let's come under the Slices. Make sure All User Slices is selected. This tells Photoshop that any slice that we have created will get saved out. All of the additional slices that Photoshop creates to complete the canvas will be ignored. Let's come up here and choose myMenu. Let's pick the images directory, let's hit Save. Now move my document out of the way, come back to the operating system, and now inside of the images directory, we can see all of those individual slices from the Photoshop canvas are saved as individual graphics.

I have arrow_down and arrow_right saved out as GIF files, banner.jpg, ie_transparency and logo are saved out as PNG files. Now that we have generated our graphics, let's come back to the index.html file. Let's open this up in a browser. So in here we can see that our CSS rules are kicking in and locking onto those graphics, our logo is here in the upper left-hand corner. And we can see the graphic in the background that's being applied to that header element inside of our HTML file. So now that we have all of the graphics in place, in the next movie we will start working on the HTML markup that we are going to have our jQuery plug-in conform into a menu.

Show transcript

This video is part of

Image for Create Navigation Menus with jQuery and Dreamweaver
 

Start learning today

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

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

What are exercise files?

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

Can I take this course without the exercise files?

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

Become a member Download sample files See plans and pricing

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

Exercise files video

How to use exercise files.

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


Exercise files

Exercise files video

How to use exercise files.

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

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

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

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


Mark all as unwatched Cancel

Congratulations

You have completed Create Navigation Menus with jQuery and Dreamweaver.

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


OK
Become a member to add this course to a playlist

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

Get started

Already a member?

Become a member to like this course.

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

Get started

Already a member?

Exercise files

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

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

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

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

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

Continue to classic layout Stay on new layout
Exercise files

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

Mark videos as unwatched

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

Control your viewing experience

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

Interactive transcripts

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

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


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

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

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

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

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

   
submit Lightbox submit clicked
Terms and conditions of use

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