Web Graphic Formats (2024)

Back to Class Five page »

Purpose

  • Visual/Aesthetic Appeal — maintains visitor interest and attention
  • Create Visual Structure — clarify information hierarchy (think typography and hierarchy here)
  • Communicate ideas visually

Our sites are usually quite boring without the use of graphics.

Web Graphics Guidelines

  • Web graphics should fit in with the purpose, organization and style of the site
  • Large (file size) graphics add load time to a page — avoid.
  • Graphics should help focus visitor’s attention on what’s important on the page
  • Avoid annoying images, animations, gratuitous effects — they get old fast without purpose.
  • Graphics should never be used for text content, except if a header necessitates including a logo.. This diminishes search engine indexing, accessibility, etc.
  • Make graphics accessible with alternate text.
  • Make sure there is sufficient contrast when using text in graphics so they are legible. This is especially important when using background images.

Web Graphic Formats

There are three file formats for graphics used on the web: JPG, GIF, and PNG. Each of these file formats are designed with a specific purpose in mind, so it is important to understand the differences when we use them in our websites.

JPG

The JPG image format was designed to efficiently store and compress realistic images and artwork (both in color and greyscale). The JPG format does a very good job of compressing images with lots of colors and gradations in colors. Think of a JPG as a highly compressed photograph.

The JPG format is not capable of saving any transparencies. If transparency is needed in the background of your image, you must choose a different format.

When saving images in the JPG format, you can choose the level of compression to balance the file size and image quality. File size is directly related to the actual size (in pixels) of the image. A larger pixel size will always result in a larger file size.

Examples of images that should be saved in the JPG format:

Web Graphic Formats (1)Web Graphic Formats (2)

GIF and PNG

The GIF and PNG image formats use what is called "index-color". They store a minimized color palette in the image file and keys to where those colors should be located in the image. File size for GIF and PNG images is generally related to the number of colors used. Commons numbers of colors are: 2, 4, 8, 16, 32, 64, 128, 256.

The GIF and PNG image formats are ideal for images with flat colors (no gradients) and hard edges. Common examples of these types of images are logos, logotypes, and illustrations without gradients.

Web Graphic Formats (3) Web Graphic Formats (4)

Transparency

The GIF and PNG formats also both support transparency. If you need any level of transparency in your image, you must use either a GIF or a PNG.

GIF images (and also PNG) support 1-color transparency. This basically means that you can save your image with a transparent background.

Let's use the Good Food logo as an example. This has to be an image file because we're using fancy type and also a graphic of an apple in place of the a. We want our logo to sit on a light green background color. Here's our background color we're saving the logo on.

If we saved the logo as a JPG, we'd be stuck with some kind of background color.

Web Graphic Formats (5)

JPG will not give us transparency

Obviously, having a background color in this situation is not ideal. If we save the image as a GIF, we can use a transparent background color.

Web Graphic Formats (6)

The GIF give us a transparent background. Notice the ring around the text.

Using a GIF image with a transparent background allowed us to put our image on a different color background. Notice the white ring around the image though. This is because GIF images can only use 1-color transparency. We cannot slowly fade to transparency. There will always be a colored ring around the image. We can change the color of the ring, but this means we must know ahead of time what color background we are going to be using.

Variable Transparency

The PNG file format is capable of saving variable levels of transparency. This is known as the alpha channel. Using variable transparency, we can actually use transparencies as a gradient.

The easiest way to demonstrate variable transparency is through an example. Below is the same image twice, on two different background colors.

Web Graphic Formats (7)Web Graphic Formats (8)

Notice how the background color simply fades into the picture.This will work less well if you save as png8. Be sure to save as png24.

Going back to our Good Food logo, we can use the same technique to make sure our logo blends to any background color.

Web Graphic Formats (9)Web Graphic Formats (10)Web Graphic Formats (11)Web Graphic Formats (12)

GIF vs. PNG

You might be wondering at this point how to know when to use a GIF or a PNG. GIF is an older file format going back to the early 1990's. We used to use it for really obnoxious image animations (in fact, we still do). GIF is the only file format that can accomplish this. But, unless you're planning on doing something for Facebook or MySpace, you probably do not want to use an animated GIF.

The PNG format is the newer and better format. We used to use GIF for compatibility reasons, but by now, any browser that does not support PNG is a really old browser. The PNG format uses a better compression scheme than GIF so the file sizes are generally smaller. Additionally, PNG images can be further compressed using a compression tool like Smush.it.

Image Format Summary

JPG
Used for photographs or any type of image with smooth transitions between colors. Does not support transparency.
PNG
Used for images with flat colors and hard edges, such as logos, logotypes, and illustrations without gradients. Can have either single or multiple levels of transparency.
GIF
Older format. Don't generally need to use it, but know that it exists.

Back to Class Five page »

Web Graphic Formats (2024)

FAQs

What is web graphics format? ›

There are three file formats for graphics used on the web: JPG, GIF, and PNG.

Is it better to use JPEG or PNG for a website? ›

JPEG's smaller, compressed file size gives it an edge for website use, as faster loading times contribute to a smoother user experience and improved SEO ranking. However, PNG's support for transparency can make it the ideal choice for including graphics, such as logos and icons, on websites.

What file type is best for web graphics? ›

Choosing the Right Format

For detailed photographs: Use JPEG, but avoid multiple edits. For graphics with text or transparent backgrounds: PNG is your friend. For logos and scalable elements: SVG ensures crisp visuals at any size. For simple animations: GIF works wonders.

What kind of file formats are .GIF, .JPG, .PNG, and tif? ›

File type comparison of PNG, JPEG, GIF, and TIFF
Use
PNGGraphics, small images that maintain original quality and transparency
JPEGPhotos on the web
GIFSmall, simple graphics with limited color
TIFFEditing and storage
Mar 14, 2024

Which format is used for web? ›

HTML is probably the most widely used and recognised web document format. It offers universal mark-up language for websites and enables users to format text, create links, add graphics, as well as input forms, tables and frames.

What is format graphics? ›

In this context, the term "graphics" refers to a visual representation, and "format" pertains to the structure of the data within the file. There are graphic formats in which data is stored in points, pixels, or grids, and there are formats that work with vectors.

Is it better to use SVG or PNG on website? ›

If you're working with simple graphics, icons, or logos, SVG may be the better choice due to its smaller file sizes and ability to be scaled without losing quality. However, if you're dealing with complex images or photographs, a PNG may be more appropriate due to its lossless compression and support for transparency.

What is the most efficient image format for web? ›

Support: Chrome, Edge, Firefox, IE, Opera, Safari. PNG is preferred over JPEG for more precise reproduction of source images, or when transparency is needed. WebP/AVIF provide even better compression and reproduction, but browser support is more limited. Support: Chrome, Edge, Firefox, IE, Opera, Safari.

Is WebP better than PNG? ›

WebP uses lossy and lossless compression, whereas PNG only supports lossless compression. This means WebP can achieve smaller file sizes without compromising image quality, making it an ideal choice for web use. PNG's lossless compression, on the other hand, results in higher-quality images but larger file sizes.

What is the alternative to WebP? ›

If achieving the best image quality with the smallest possible file size is your goal, especially for high-resolution photos, AVIF is the superior choice. Its advanced compression techniques preserve more detail and color fidelity than WebP.

What is the best image format for web 2024? ›

Universal Compatibility: For projects that need to support all browsers, including very old ones that might not support AVIF, PNG is still the safest choice. Lossless Images: When absolute lossless quality is required, PNG remains the go-to format.

What is the most basic image format? ›

JPEG (.

JPEG files are very common on the Internet and JPEG is a popular format for digital cameras - making it ideal for web use and non-professional prints. Special Attributes: Can choose amount of compression when saving in image editing programs like Adobe Photoshop or GIMP.

What is the smallest image format? ›

On the web, JPG is the clear choice for photo images (smallest file, with image quality being less important than file size), and GIF is common for graphic images, but indexed color is not normally used for color photos (PNG can do either on the web).

What image type is the highest quality? ›

RAW files are the highest quality image format. They are loved by photographers as RAW format records all data from the sensor of the camera. Since RAW is an uncompressed format, it gives immense creative liberty to the photographers during post-processing.

What is not a valid extension for a graphic file? ›

Expert-Verified Answer

GUI is not a valid extension for a graphics file. Graphics are the visual elements that are used to point some particular information to the viewers or readers.

What do you mean by web graphics? ›

Web graphics are images, icons, logos, banners, animations, and other visual elements that enhance the appearance and functionality of a website. They can also convey information, create mood, and attract attention.

What format should web images be? ›

Photos should use a JPG file format whereas logos and simple illustrations should use PNG or SVG files. Keep in mind, JPG and PNGs can also have the same quality and smaller file size with the lesser-known format, WebP.

What is better than WebP? ›

Prioritize AVIF for top-tier quality with smaller file sizes

If achieving the best image quality with the smallest possible file size is your goal, especially for high-resolution photos, AVIF is the superior choice. Its advanced compression techniques preserve more detail and color fidelity than WebP.

Which browsers support WebP images? ›

Which web browsers natively support WebP?
  • Google Chrome (desktop) 17+
  • Google Chrome for Android version 25+
  • Microsoft Edge 18+
  • Firefox 65+
  • Opera 11.10+
  • Native web browser, Android 4.0+ (ICS)
  • Safari 14+ (iOS 14+, macOS Big Sur+)

Top Articles
7 Legal and Financial Steps to Closing Your Small Business
Airbnb Taxes|7 Deductions to Maximize your Profit
Katie Nickolaou Leaving
Radikale Landküche am Landgut Schönwalde
Swimgs Yuzzle Wuzzle Yups Wits Sadie Plant Tune 3 Tabs Winnie The Pooh Halloween Bob The Builder Christmas Autumns Cow Dog Pig Tim Cook’s Birthday Buff Work It Out Wombats Pineview Playtime Chronicles Day Of The Dead The Alpha Baa Baa Twinkle
Lexi Vonn
Washu Parking
Mrh Forum
What to Serve with Lasagna (80+ side dishes and wine pairings)
Bucks County Job Requisitions
Jefferson County Ky Pva
Edgar And Herschel Trivia Questions
Craigslist Estate Sales Tucson
Maxpreps Field Hockey
Wnem Radar
Jc Post News
2021 Lexus IS for sale - Richardson, TX - craigslist
979-200-6466
Jinx Chapter 24: Release Date, Spoilers & Where To Read - OtakuKart
Urban Airship Expands its Mobile Platform to Transform Customer Communications
V-Pay: Sicherheit, Kosten und Alternativen - BankingGeek
라이키 유출
Ac-15 Gungeon
Hannaford To-Go: Grocery Curbside Pickup
Best Sports Bars In Schaumburg Il
Jordan Poyer Wiki
What Individuals Need to Know When Raising Money for a Charitable Cause
Inter Miami Vs Fc Dallas Total Sportek
Scott Surratt Salary
Wbap Iheart
Ihs Hockey Systems
How to Use Craigslist (with Pictures) - wikiHow
Tokioof
James Ingram | Biography, Songs, Hits, & Cause of Death
The Latest: Trump addresses apparent assassination attempt on X
Delta Rastrear Vuelo
Miss America Voy Board
Pokemmo Level Caps
Hattie Bartons Brownie Recipe
De beste uitvaartdiensten die goede rituele diensten aanbieden voor de laatste rituelen
Space Marine 2 Error Code 4: Connection Lost [Solved]
SF bay area cars & trucks "chevrolet 50" - craigslist
The Transformation Of Vanessa Ray From Childhood To Blue Bloods - Looper
Topos De Bolos Engraçados
Sabrina Scharf Net Worth
How to Get a Better Signal on Your iPhone or Android Smartphone
Kutty Movie Net
Love Words Starting with P (With Definition)
877-552-2666
Iron Drop Cafe
Santa Ana Immigration Court Webex
Craigslist Indpls Free
Latest Posts
Article information

Author: Rev. Porsche Oberbrunner

Last Updated:

Views: 5463

Rating: 4.2 / 5 (53 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Rev. Porsche Oberbrunner

Birthday: 1994-06-25

Address: Suite 153 582 Lubowitz Walks, Port Alfredoborough, IN 72879-2838

Phone: +128413562823324

Job: IT Strategist

Hobby: Video gaming, Basketball, Web surfing, Book restoration, Jogging, Shooting, Fishing

Introduction: My name is Rev. Porsche Oberbrunner, I am a zany, graceful, talented, witty, determined, shiny, enchanting person who loves writing and wants to share my knowledge and understanding with you.