anggaarie.com

Let's Learn n Share..

Different Formats
Their are four primary formats to choose from when optimizing images for the web. Each format is different in how it stores and compresses image information. These four main formats include PNG-8, PNG-24, GIF, and JPEG. Below we will discuss the different formats and what images they work best with.

GIF
The GIF format is a bit-mapped image format and is the most commonly used format for web graphics. It supports up to 256 colors, transparency, and animation. Typically the PNG-8 format compresses better for most web images, although for really small images, or images that require transparency or animation, GIF is an ideal choice.

JPEG
The JPEG format works will for photographs and other large images with many colors because of it's lossy compression algorithm. The degree of compression can be adjusted, allowing a select-able tradeoff between storage size and image quality. This often allows large images to be compressed more than any other format with little or no perceptible loss image quality

PNG-8
The Portable Network Graphics is a bit-mapped image format that uses a loss-less data compression algorithm. It was designed to be a replacement for the patented GIF's. This format does not support transparency, translucency, or animation. I end up using this format for the majority of my images and it is the best choice for most web graphics.

PNG-24
PNG-8 and PNG-24 are the same format, however when transparency, translucency, or more than 256 colors are used, 24 bits are used to represent each pixel instead of 8. This greatly increases the size of the image and make it a poor choice. If only transparency is required than use the GIF format instead. I also try to avoid translucency by flattening my images so that I can use an image format with less overhead.

Choosing the Right Format
Adobe Photoshop has a nice feature within the File -> Save for Web function. It allows a nice 4-up view where you can compare the file size of three different image settings and compare the quality with the original. First I'll compare the different formats GIF (with 256 colors), JPEG (high quality), or PNG-8 (with 256 colors) and decide which format is best suited for the given image based on the resulting image size. If JPEG is the best choice I try to further compress the image by reducing the quality to an acceptable level. Otherwise I try to compress the image further by reducing the number of colors used by the image. Often times you can reduce the number of colors considerably without any noticeable effect to the human eye.

Enter your email address:

Delivered by FeedBurner

Bookmark and Share

Subscribe in Bloglines Add to netvibes

Don't Forget to Read



20 comments

  1. Yudie  

    Nice info Sob... jadi ngerti deh sekarang...
    Kemarin2 bikin asal ada gambar aja.. hehehe..

    tengkyu Sob..

  2. merin  

    Anggarie, pa kbar?
    tengkyu udah komen di Hikmah dari Haramnya FB, so mer kasih friendly award buat semua yg udah komen di postingan mer...
    diambil dicini yah thx...

  3. ballwell  

    nice post. .

  4. kang dwi  

    wew. komplit

  5. Pixell  

    Nice info friend..
    very usefull
    thanks ya n comment back ...


  6. Timontius  

    Wew, that very useful information. I will try it..

  7. devianty  

    nice post, bikin web kita tambah maksimal nih...

  8. ponco  

    bannerku masuk gif ya..

  9. putra sigit  

    wo gitu to...jadi bisa dimengerti

  10. indoneter  

    sangat membantu, thanks..

  11. perry  

    posting yang berkualitas, tapi, sori, saya ga mudeng-mudeng amat....

    salam kenal dari saya, ta tunggu kunjugan baliknya lho....

  12. ardianz  

    yeah, with photoshop we can reduce the size of image file. I do this many times

  13. edylaw  

    info keren sob...
    biasa aku kompres pake cs3 dan pilih yang paling ringan untuk di save

  14. Newsoul  

    Hehe, sy juga kl upload gambar asal aja. Nice info neh, apalgi kl udah ditermahkan.

  15. nada  

    mendng ga usah pake gamabar
    bikin berat aja
    hihih

  16. leli  

    setuju sama nada
    kasian yg inetnya lemot
    hiihi

  17. anggaarie  

    @semua: terimakasih sudah berkomentar..sukses selalu buat semua

  18. mahisa'blog  

    nice info sob?

  19. squadkuna  

    wh, keren mas. .
    gitu toh rupanya, gw bru tw. .

  20. anggaarie  

    @squadkuna: yuk kita belajar sama2

Post a Comment

Best Friends

Translate in to your language

Recent Comments

Followers

Copyright © 2009 by anggaarie.com And Edited by anggaarie.com