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

Saving slices for the web

From: Preparing CMS Web Graphics and Layouts Using Open Source Tools

Video: Saving slices for the web

Now that we have our footer and our header all sliced out of the larger comp, we need to save this out in file formats that are compatible for the web. Right now, these are in the PSD format, Photoshop Document, and PSDs are not readable by web browsers. Web browsers read three types of images: one is called GIF, one is called PNG, and one is called JPEG. GIF files are actually a proprietary format.

Saving slices for the web

Now that we have our footer and our header all sliced out of the larger comp, we need to save this out in file formats that are compatible for the web. Right now, these are in the PSD format, Photoshop Document, and PSDs are not readable by web browsers. Web browsers read three types of images: one is called GIF, one is called PNG, and one is called JPEG. GIF files are actually a proprietary format.

They have a fixed number of colors. 256 being the maximum and 2 being the least. You can reduce your file size with the GIF by reducing the number of colors that are available. GIFs also support transparency, if you'd like to have a transparent background on your image, and they also support animation. GIF formats work best for saving images that are cartoon-like: drawings, logos, and those types of images. PNG, which stands for Portable Network Graphic, is the open source format similar to GIF.

Once again, it has a fixed number of colors. The PNG 8 format has 256 colors, whereas the PNG 24 format has many more than that. Again PNGs are very good for saving out logos and drawings such as we see here. It also supports transparency. And since it's the open source format, we are going to use PNG in all likelihood to save out these images. Finally, JPEG, which stands for the Joint Photographic Experts Group, is the format used for saving out photographs.

It supports millions and millions of colors and it can be compressed to make your file sizes smaller for the web. Be careful not to compress you JPEGs too far or they will start to look blocky and distorted. So to save these images for the web here in GIMP, what we're going to do is we're going to go to File and note, Windows people, that the menu is associated with each individual graphic. There is no menu across the top. This is actually a little bit more Mac- like in the placement of where the menus are for the software.

We're going to go to File and we're going to go to Save As. In your Save As dialog box, what we're going to do is type in the name for the file. We're going to call this footer.png. If you're not sure what file formats are available, you can look at it under Select File Type (By Extension) underneath, which will show you all of the extensions that GIMP supports. Here's GIF, here's JPEG and here's PNG.

The other file formats that are in here are used for print or they are used for other various applications. We want a PNG though, so we are going to save our file as footer.png and I am going to click the Save button. After doing that, I'm going to get a series of dialog boxes asking me how I want that PNG to be optimized. First of all, it warns me that a PNG does not handle layers, which no graphic for the web does handle layers. I can either flatten the image or merge the visible layers.

I am going to go ahead and just merge the visible layers and click Export. Then it's going to ask me a series of questions about what additional features I might want to include with this PNG. I am just going to leave all of the default values set. Note that the Compression Level is set all the way to 9 as a default. That's a high compression level for a small file size. Click the Save button and your file is saved. Now we have footer.png.

I'll go ahead and repeat the process here for the header. So once again, File > Save As. I am going to call this one header.png and I'll click the Save button. I am going to merge the visible layers and export. I am going to leave all the default settings and click Save. Those of you who are familiar with Photoshop might find those dialog boxes for saving out these files rather different than what you're accustomed to.

Fortunately, there's some alternatives to make GIMP a little bit more Photoshop like in that regard. But what I have just showed you is the default way of saving out these images for the web with GIMP.

Show transcript

This video is part of

Start learning today

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

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

What are exercise files?

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

Can I take this course without the exercise files?

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

Become a member Download sample files See plans and pricing

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

Exercise files video

How to use exercise files.

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


Exercise files

Exercise files video

How to use exercise files.

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

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

Join now "Already a member? Log in

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

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


Mark all as unwatched Cancel

Congratulations

You have completed Preparing CMS Web Graphics and Layouts Using Open Source Tools.

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.