Photoshop
  Home arrow Photoshop arrow Page 5 - Slicing and Saving Graphics in Photoshop f...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHOTOSHOP

Slicing and Saving Graphics in Photoshop for Use on the Web
By: James Murray
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 25
    2004-07-27

    Table of Contents:
  • Slicing and Saving Graphics in Photoshop for Use on the Web
  • Butcher your Graphics
  • I Like my Graphics Sliced Thin
  • Functional Formats
  • Please, Save Me!
  • Last Words

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Slicing and Saving Graphics in Photoshop for Use on the Web - Please, Save Me!


    (Page 5 of 6 )

    The save dialog settings are very important when you plan on using your images in a webpage. I’ve found that while Photoshop will produce the html you need to use your images, it’s usually best to use the html version that it produces to build a new html version in, on your own in your html editor. Generally it also adds in a lot of junk code that you don’t need; it also makes it so that you have a static layout that you have no place to put content, and of course that’s not a very good page.

    The first thing you want to do is change the “Save as type” to “HTML and Images” then set the “Slices” to “All User Slices”. This way we’ll only get the User Slices I talked about, which makes them easier to work with so you don’t get them confused with the saved and unneeded Non-User Slices.

    Next in the “Settings” dropdown, select “Other…”. You’ll notice a new dialog that will pop up. The first part of this is where you’ll set how the naming of your slices work. I usually like to make the first parameter the name of the website, then an underscore then the slice number with leading zeros, then the extension.

    After you’ve set up your image naming, click the “Next” button on the right to set up the HTML output. On the HTML output section, I always use the same settings. I set it to use XHTML, and then indent with tabs. The rest I leave as default; go ahead and click the next button again. This is where you set up the slice output, I always have it generate a table instead of CSS, this way you have a more editable and solid layout. Also, I tell it to use “NoWrap, TD W&H” for empty cells, that way it won’t make any spacer images. Then I set the TD W&H as “Always” and the Spacer Cells to “Always (bottom)”, that way your cells will always have the width and height hard coded in so it’s a little easier to edit.

    That’s just about all you have to do to set up the save options; go ahead and click OK, then find the directory you want to save your files to and click the save button.

    More Photoshop Articles
    More By James Murray


       · Why are the 1 pixel tall/wide slices created in the tutorial?
       · because they can be tiled to fill in large areas of the image that are the same. ...
       ·  How do you do that? Good artical. I followed it pretty well.
       · the article was excellent written, it clearly explains the types of images, but it...
     

    PHOTOSHOP ARTICLES

    - The Critically Important Color and Gamma Cal...
    - Using Adobe Photoshop CS, Part 2
    - Using Adobe Photoshop CS, Part 1
    - 20 Things About Photoshop You Have to Know
    - Photoshop Tricks, Part 2
    - Photoshop Tricks, Part 1
    - Keeping Up Appearances: Techniques for Retou...
    - Navigation Menus in Photoshop
    - Slicing and Saving Graphics in Photoshop for...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    Stay green...Green IT