GIF and PNG both are a type of image format to store images. GIF and PNG both are pixel based image formats. Both uses lossless compression algorithms and supports transparency. GIF images supports animation as well.
Following are the important differences between GIF and PNG.
Sr. No. | Key | GIF | PNG |
---|---|---|---|
1 | Stands for | GIF stands for Graphical Interchange Format. | PNG stands for Portable Network Graphics. |
2 | Animation | GIF images support animation. | PNG images do not support animation. |
3 | MIME Type | GIF images are represented as image/gif. | PNG images are represented as image/png. |
4 | File Size | GIF file is larger than than png image for same image. | PNG images is smaller in size. |
5 | Transparency | One bit transparency is supported. | PNG images supports a high level of transparency. |
6 | Extensions | GIF images use .gif extension. | PNG images use .png extension. |
7 | Usage | GIF images are used when animation is needed. | PNG images are generally used in image creation. |