GIF IconsThe problems with GIF icons and backgroundsOr, How to make your GIF images look great anywhere you use themby Susan Pichotta, July 2007 SQUARE PIXELS, CURVY IMAGES Many of the problems in making GIF icons look great (or any icons, for that matter) are based on this one simple fact: Pixels are square. Curves are not. Every computer display screen is made up of pixels - and pixels are square. It's very easy to make straight lines with squares, that's a no-brainer. But to make circles and curves out of nothing but squares is a bit more of a challenge. But wait, you say, I've seen pretty circles and curvy things displayed on monitors. If curves are so difficult, how is that done? Quite simply, you fool the eye. We use different shades of a color to make the eye think you are looking at a smooth curve, when actually you are looking at a whole bunch of little squares. And the larger (more pixels) an image contains, the easier it is to do. CIRCLES IN A SQUARE
Let's look at some examples. We'll start by working with a 24x24 size grid - which happens
to be the size, in pixels, of many toolbar icons.
We'll put a solid red circle in our white square, using only one color of red (at left). How does that look? Not too good, as you can see. The edges are ragged and "jaggy". It's not a smooth, pretty curve, is it? Without too much trouble, you can see that the circle is made of squares - you see little square corners. Not good.
Now, let's make
Easy, right? Not entirely - there are a few other things you need to consider. TRANSPARENT PIXELS
When we create our GIF icons, we start with a square. In our example, the square is 24x24 white pixels,
with a red circle in the center. If you were to use this circle icon on your website or in your software,
you would want it to look like the circle was placed directly on the website or
software background, in this case, a woodgrain background ("Good" example).
In GIF icons, there are two levels of transparency: ON or OFF. Either a pixel is transparent, or it's not. Simple, right? If our image has nothing but straight edges, it is simple. But once again, what about those curves? BACKGROUND COLORS AND CURVES When we create a curved edge in a GIF image, the background color is important - because it shows through around the edges of curves. And remember, with GIFs, a pixel is either transparent or it's not. Yes/no. No other choice. And this can be a problem with curves. Since a picture is worth a thousand words, let's take a look at two more examples. We'll use two images from our Glasso Icon Set. The square icon has mostly straight edges, while the round icon has all curved edges. We'll look at these images in the 32x32 pixel size (another common size for icons).
HALOS AND GIFS
To see what I mean, look at our two GIF images displayed on a black background
(above left, and enlarged at right). See those
Page 1 Page 2 |
| |
| ||