Created
July 7, 2021 22:16
-
-
Save m-alikhizar/6972733e0e8868f2c40c04b25bcae807 to your computer and use it in GitHub Desktop.
Best Image formats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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