Ever come across an image on the internet and wondered, "What is that called?" Well, you might have stumbled upon a Portable Network Graphics, or PNG for short. But what exactly is a PNG, and what makes it different from other image formats like JPEG or GIF? Let's dive in to explore the world of PNGs and why they're often denoted simply as 'png' when it comes to file names.

PNGs were born out of a necessity to replace the Graphics Interchange Format (GIF) due to patent concerns. The PNG Specification version 1.0 was approved by the Internet Engineering Task Force in 1996, and since then, PNGs have carved a niche for themselves in the digital imagery landscape.

Understanding PNGs
At their core, PNGs are a bitmapped image format that uses lossless compression. This means that when you compress an image to a PNG file, the original image data remains unchanged when the file is decompressed. This is unlike JPEG files, which use lossy compression, resulting in some data loss with each compression-decompression cycle.

PNGs support a wide range of color depths and color spaces, making them suitable for various types of images. They're particularly useful for graphics with large areas of uniform color, like logos, icons, and illustrations. Moreover, PNGs can support transparency, which makes them a popular choice for web graphics where you might want to overlay one image onto another without covering up the background.
PNG and Transparency

PNG's support for transparency is one of its most compelling features. It allows you to create images with a transparent background, making them blend more naturally with the website or application they're used in. This is particularly useful for logos and other graphical elements that need to be placed on top of other content without hiding it.
In a PNG file, transparency is represented using the alpha channel. The alpha channel is an additional forth channel in the PNG file that controls the opacity of the individual pixels. A value of 0 in the alpha channel means the pixel is fully transparent, while a value of 255 means it's fully opaque. This allows for a smooth gradient of transparency between these two extremes.
PNG Interlacing

Another unique feature of PNGs is their support for interlacing. Interlacing allows an image to be displayed progressively, starting with a low-resolution version of the image and gradually adding more detail until the final, high-resolution image is displayed. This can be particularly useful for images that are displayed on slow connections, as it gives the viewer something to look at while the rest of the image is being downloaded.
PNG interlacing works by dividing the image into passes. Each pass contains a subsampled version of the final image, with each subsequent pass adding more detail. This allows the browser or image viewer to display the image using far less data than would be required to display the full resolution image.
The case for 'png' in file names

Now that we've explored what PNGs are, let's discuss why files in this format are typically saved simply as 'png'. The short answer is simplicity and consistency. When saving files in a particular format, it's common practice to use the format's name as the file extension. So, a PNG image would naturally be saved with the .png extension.
Using 'png' as the file extension does more than just identify the file's format. It also tells other users or systems that interact with the file what they can expect. It clues them in that the file is a bitmap image that uses lossless compression and possibly supports features like transparency and interlacing.








png vs. jpg vs. gif: Why not use the full term?
You might wonder why we don't use the full term 'PNG' when referring to the file extension. Partly, it's due to brevity and typical file naming conventions. In computing, file extensions are typically short and to the point. Using 'png' is more straightforward than typing out 'PNG' every time we want to refer to a file in this format.
Moreover, there are other file formats that end with 'png', such as the older Portable any-map file format, or even Apple's Next Pixel Map file format. Using the term 'PNG' could potentially cause confusion with these other file types, so sticking with the lowercase 'png' helps to avoid any ambiguity.
Why lowercase 'png'?
In the computing world, file extensions are typically written in all lowercase. This is a carryover from early computing systems that were case-sensitive, and using uppercase letters could cause issues with file handling.
While modern systems are often not case-sensitive, the practice of using lowercase letters for file extensions has been maintained for consistency and compatibility. Using uppercase 'PNG' for file extensions could potentially cause issues with older systems or scripts that expect the file extension to be in lowercase.
In conclusion, while we often refer to images in the PNG format simply as 'png', there's a lot more to these files than meets the eye. From their unique features like lossless compression and support for transparency to their impact on file naming conventions, PNGs hold a significant place in the world of digital imagery. So the next time you're saving a bitmap image or come across one on the internet, you might have a newfound appreciation for the humble 'png' file.