SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Why slice?

  1. #1
    SitePoint Addict TBanks's Avatar
    Join Date
    Jan 2003
    Location
    Earth:\USA\California
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why slice?

    I'm just learning about slicing images - or rather that that's what people do. Why slice an image? benefits? draw backs? and what's the alternative?

    Thanks

    Toni
    dare to Dream, dare to Be...
    www.eodweb.com

  2. #2
    Phil fillup07's Avatar
    Join Date
    May 2002
    Location
    Jacksonville, FL
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well many times a website design is done entirely in a graphics program like photoshop... and the only way for the design to work with tables and stuff is to cut it up (slice it). Also, it's faster to load smaller images than a huge one. An alternative is image mapping.

  3. #3
    SitePoint Enthusiast Sabretooth's Avatar
    Join Date
    Apr 2002
    Location
    Gettysburg, PA (USA)
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Other benefits include switching image formats at a spot where one format may be better to use than another (ex: JPG for sections with lots of colors, GIF for solid color and/or transparencies/or animation), maybe have one slice be a random image via a script.

  4. #4
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by fillup07
    Also, it's faster to load smaller images than a huge one. An alternative is image mapping.
    Humm, I'll contend with that only on the grounds that multiple images require multiple connections, multiple downloads, yadda, so it's actually slower. It only feels faster, because they're loading progressively (however, since JPG and Gif support progressive rendering natively, it's probably better to use that except were different formats are better suited). Another use for slicing is when you want one image to span across the page.

    But like was said earlier, it's pretty much a table method, and in CSS handling all those slices like you would with a table is more trouble than it's worth. :-)

    ~~Ian


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •