Can you save a round object as a JPEG?

Interesting…I did not know that. Learn something new every day. :slight_smile:

Actually, it works quite well.

You end up with a fringe around your actual object that is of a slightly different color. Eyes aren’t all that good at picking up a narrow 1 or 2 pixel wide fringe, and your end up with a fairly decent transition.

I also should mention that I usually use a small (5 x 5 pixel) gif to set the background color. There’s not any problem with color inconsistensies that way.

Thanks for all the info. I’ve decided to go with an image map instead of trying for a transparency.

I’ve used it. But, it’s not much different than the “jaggies” and worse if you are using different colors. For instance, these emoticons may end up on different backgrounds.

The trick, as Mort Furd says, is to use a repeated background image (in the same format as your other image - gif or jpg) instead of a browser-generated background colour. That will give a more reliable match. Layer jpgs on top of jpgs, and gifs on top of gifs. If you aren’t using graphics that need to match backgrounds, then browser colours are okay to use, but generally you should avoid using them if possible.

btw, never use a repeated background image that is busy or has a pattern on it - only use a plain colour or subtle gradient image, unless you really know what you’re doing.

Web developer checking in.

I’m with Hunter Hawk and his wet blanket approach on this one. Elevator buttons and other gimmicky metaphors are very 1997. Subtlety and minimalism are the wave of the future in web design. Plain HTML text or simple rendered text links will give your site a longer-lasting appeal. See The Weekly Standards for some outstanding examples of minimal design.

However, if you must use buttons that “look like buttons”, go with simple transparent GIFs. JPEGs don’t compress flat-color images well, and if your user has particularly high or low gamma settings they might see the little box around the image that others have mentioned. Don’t use PNGs; IE doesn’t play nice with them. Most attempts at transparency will result in an ugly grey box around the image.

Just my two cents.