• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Which image is loading Fastly .jpg or .gif?

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
In my site there are so manu images which need to be load fast. I am not understanding both are taking same time, and I did not get correct answer. Please let me know.
Thank you
Anupama
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Anu,
GIF compression is usually used to compress Computer Generated Graphics like icons and clip arts.
JPEG compression is generally used to compress photographs.
Now there are several parameters that can influence compression.
For GIF files, compression is improved if you reduce the number of colors that composes the image. Computer Graphics usually contain few colors, that's why it is better.
If you are using mainly computer graphics, try to scale, re-arrange or reuse images accross the HTML page, to reach your goal.
For JPEG files, compression is improved if you decrease the quality factor (or compression factor). It is usually a value from 0 to 100 (0 = maximum compression, 100 = best compression).
You need to use a Imaging Editing Application to be able to set these parameters (or use an image processing API). For static images, I prefer to use Adobe Photoshop, but you might prefer PaintshopPro or some other tool.
For photographic pictures, JPEG gives the best compression. To give you an example, I am trying to compress a photograph of dolphins under water whose size is 576x432 (I'm using Photoshop)
GIF 256 colors = 82K (quality of resulting image = OK)
GIF 128 colors = 60K (quality of resulting image = OK)
GIF 64 colors = 45K (quality of resulting image = poor)
GIF 32 colors = 31K (quality of resulting image = low)
GIF 16 colors = 22K (quality of resulting image = very low)
under that the image is difficult to see
JPEG 100% = 63K (quality of resulting image = perfect)
JPEG 80% = 31K (quality of resulting image = perfect)
JPEG 50% = 14K (quality of resulting image = near perfect)
JPEG 30% = 8K (quality of resulting image = OK)
JPEG 15% = 5.5K (quality of resulting image = poor)
JPEG 0% = 4K (quality of resulting image = low)
Hope this helps,
 
Anu Sri
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Beno�t
Thank you for replying my query. I got some idea on images.
Thank you
Anupama
 
reply
    Bookmark Topic Watch Topic
  • New Topic