When creating a website, sending images to a friend or uploading them on your favorite picture sharing platform you have many options to chose from when it goes to image standards or formats. Each of these formats is a little bit different and you have probably heard about some or all of them but they are all basically algorithms that somehow compress those images as they are simply made from pixels and each individual pixel needs a different color. This means a lot of information has to go inside one individual image but on the web the best thing is smaller size as everything need to be downloaded and we need some mechanisms to compress these images, so here come in these image formats or standards. There are three main image formats and I will try to briefly explain what they are:
GIF stands for Graphics Interchange Format and it is a file format specially designed for images on the WEB. This format uses only 256 colors and that means that it will hugely decrease your typical image size. GIF format is one of the most popular image standards on the web and it has a great bonus that allows you to create transparent images or rather it keeps the transparency when you convert to GIF format.
Joint Photographic Experts Group is one of the best file formats to use for photographs and other images that need to retain the full color spectrum as JPG uses RGB color scale and that means millions of colors can be used. JPG is still a web format and that means it uses a algorithm that selectively combines pixels and their colors to reduce the overall file size. Because JPG is a very widely used format when transforming your images in this format you can use various compression algorithms by selecting the quality of your image and if you select lower quality more of that file reduction will be done and your image will become increasingly smaller in size.
PNG or Portable Network Graphics is a file format that was specially created for the world wide web and it is a somewhat in-between format between JPG and GIF as it also has a transparency option but it allows to create images in million of colors. PNG images are smaller than JPG and they can have the same quality but another benefit is that transparency that can come in handy in various different websites and other usages.