Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save m-alikhizar/6972733e0e8868f2c40c04b25bcae807 to your computer and use it in GitHub Desktop.
Save m-alikhizar/6972733e0e8868f2c40c04b25bcae807 to your computer and use it in GitHub Desktop.
Best Image formats
There is no best image format.
JPEG
* Can display about 16.8 million colors
* Lossy Compression
* Cannot be animated
* Great for still images and photographs
GIF
* Can display 256 colors
* Lossless Compression
* Supports transparency
* Great for simple animations
* Good for graphics with flat colors and graphics without gradients
PNG
* PNG-8:Can display 256 colors
* PNG-24:Can display millions of colors
* Lossless Compression
* Better transparency than GIF
* Cannot be animated
* Good for icons;Can be used when an SVG format is not available
SVG
* Very scalable and great for responsive design
* Can be modified using CSS and JavaScript
* Smaller file size; depends on how complex the image is
* Can be animated
* Great for logos, icons, maps, flags, charts etc.
* Not so good for photographs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment