JPG, PNG or GIF? Which image format should you be using in your digital design?

By Brendan Johnson, Design Intern at GovDelivery

As government communicators, often we have to work with design in all formats, especially digital design. But when you need to throw a picture up on your website, into an email, or send out in a social media post, is it a quick and easy process? Do you know the different effects something as simple as a file format can have on the look and feel of your communications?

We’ve compiled some background on the ins and outs of the three major image formats for Web design to help you do your job quicker and easier.

When dealing with digital design, there are only a handful of file formats we have to concern ourselves with. The three main file types used for digital use are .PNG, .JPG, and .GIF. There are some pretty big differences as to which file type would be appropriate for your current project, and choosing the right one can make all the difference in the world. Knowing which format to use can save a lot of time and prevent you from having to make any changes after the file is sent or uploaded.

.JPG

The standard “go to” file format at the moment is .JPG. However, the uses in which .JPG would be preferable over a .PNG are a lot more limited. The .JPG format is best used in the case of complex images with no text. By its nature, .JPG reduces loading times by selectively deleting elements of a photo. This is great for large detailed photographs that would otherwise take very long to load. When done to an image with elements that utilize sharp and straight edges, pixilation around these areas become very apparent, making text range from unpleasant to unreadable depending on the size. To avoid this, stick to using .JPG for very detailed images that don’t feature text or other hard-edged graphics.

.PNGPNGvJPG_image

The .PNG file format is what we would most often use in digital design projects. The .PNG, or Portable Network Graphic, tends to have a larger file size than the other two formats, but it also preserves hard edges and can handle a high amount of colors while keeping the load time fast enough to use online. Another interesting capability is that it can be saved on a transparency. This means we can utilize the important elements of an image without needing to change things like a background color if we placed it on transparency. This is a big reason why most major sites create their logo as a .PNG, so it doesn’t need to change whenever their site is updated. Best uses for .PNG include images that contain text, graphics with hard edges, and elements that require transparent backgrounds like logos.

.GIF

The .GIF file format is essentially the faster loading cousin of .PNG with one catch—the image needs to be under exactly 256 colors. This limits designers a lot more than you’d think. You should only use this file format for low-resolution images. So elements like photographs or graphics that use gradients would immediately be out of the question for the .GIF format. But elements like solid color buttons or banners are ideal as these will (usually) load faster than the .PNG version, while keeping all the cool features like transparencies and preserving hard edges. Another awesome feature that only .GIFs can utilize is animation. So you can create a graphic that utilizes a short looping or single play animation, which does not require any plug-ins since it’s only an image file.

There’s your short and sweet guide to images in your digital design. If you have a question, let us know in the comments section.

 

« - previous | next -