Jump to main content.


Making Web Graphics Smaller

What does it mean when your graphics are "too big"? This page describes image size and file size, how big your graphics should be, and how to make your web graphics smaller.

Web graphics - terminology

EPA Web standards for graphics

File format: use GIF or JPG. Do not use PNG on the Web.

File size: there is no formal standard. However, an EPA web page should add up to about 40-50 KB total – that is, all the text and all the graphics total no more than 50 KB. If you are creating your pages in Dreamweaver you'll see an estimated file size for the page in the status bar (visible in Design view). You can also estimate the file size by adding up the .HTML file size and all the associated graphics and other files. Remember that the EPA seal is about 2.5 KB, as is the top banner and the other graphic elements on a standard web page, so add 7 KB to your page size.

Image size: the total width of everything in the content section of an EPA page can't be more than 450 pixels. That includes graphics, table borders, and text. As a starting point for images intended to expand on text, OPA recommends a width of 200 pixels and whatever height is appropriate to that width.

Why compress?

Compress to make the file size smaller. Compression alone does not affect how big the image looks on the screen, but the smaller file size will load into the visitor's browser quicker, so reducing (compressing) file sizes is important.

Compression formats

GIF – best for graphics with areas of flat color, permits transparency, limits colors. GIF is a commonly used file format that compresses images with areas of single colors, as well as line drawings, very well. Licenses to use GIF format are built into many commercial applications, but some applications do not have licenses with Unisys ... PNG (portable network graphics) was developed to take the place of GIF. It is patent-free, and seems to work well but inconsistently on the web, and is currently not permitted on EPA sites.

JPG – best for photographs or complex illustrations, “lossy” compression means some information is discarded to make the image smaller. JPG handles colors well and is great for compressing photographs so they'll load fast, and still look good.

For more information on compression types Link to EPA's External Link Disclaimer:
http://www.webstyleguide.com/graphics/formats.html
http://www.w3.org/Graphics/

How to reduce image size - how big it looks

Reduce the amount of real estate the graphic uses - do this before compressing the image by cropping the picture or reducing its pixel width and height.

Using Photoshop - open the image and select Image>Image Size... and change the pixel dimensions to the appropriate size. Also set the resolution to 72 pixels/inch.

Or, set the resolution to 72, then draw a rectangle around the part of the image you want to use with the marquee tool, select Image>Crop. Then compress the image.

Using Fireworks - open the image and select Modify>Canvas>Image Size... (to reduce the entire image) or Modify>Canvas>Canvas Size... (to crop the image). Or you can use the crop tool and select the part of the image you want to use. Then compress the image.

How to compress graphics

Step 1: Always save a copy of the original file. Why?

Step 3b: How to compress a graphic in Fireworks.

Step 3c: How to compress a graphic in Paint Shop Pro.


Local Navigation


Jump to main content.