SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru
    Join Date
    Nov 2008
    Posts
    622
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    png 8 or png 24 format image

    hi

    i would like to know that while slicing my psd design to html i export images as "png8" or "png24".

    I need to have transparent round corner images but they are big images so PNG is the prefered format but which is best and which will load faster.

    at present i m using 24bit format but its making file sizes larger.

    what format do you use in your html.

    vineet

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,096
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    If png8 works, I tend to use that. If not transparent, it works in IE6 too, which is handy.
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  3. #3
    SitePoint Addict AtSea webdesign's Avatar
    Join Date
    May 2010
    Location
    Newark, Delaware
    Posts
    283
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    transparent pngs won't work in IE6 at least because I believe it doesn't support the alpha channel.

    I think you can get around it with javascript but I've used a conditional comment to assign a replacement image and I know that works.

    For png I generally use 8bit. I do use 24bit when I'm using a color to transparent background.

    If IE7+ supports it then it should be less of an issue

  4. #4
    SitePoint Wizard bronze trophy Black Max's Avatar
    Join Date
    Apr 2007
    Posts
    4,029
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by webgypsy View Post
    If you can handle the filesizes I would go with png24 because of the better image quality over png8 even with 100% dithering.

    If I don't need transparency, then I always use jpeg with compression optimised for web display.
    What he said. And IE6 does not support transparency through the alpha channel, requiring fixes such as TwinHelix's.


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
  •