Tell me more ×
Answers OnStartups is a question and answer site for entrepreneurs looking to start or run a new business. It's 100% free, no registration required.

I'm building my marketing website to promote a SaaS product to be launched later this year. I'll have a small number of grahics on the website homepage. What's a better format to use (.jpeg, .png, .gif) for the graphics?

share|improve this question

3 Answers

Gif's are best for vector-style images - blocks of color and text. They aren't good for photos or gradients. These days you'll usually use a png instead, unless you need transparency.

Jpg's are best for photos.

Png's can sometimes cover the best of both. Try doing one of the others, and then a png and use whatever is smallest and/or looks the best.

share|improve this answer
PNG is the newest and best of the formats, but is not fully supported in older browsers, such as Internet Explorer 6. Depending on your audience, it may be safer to stick with GIF or JPG for now. – DThrasher Oct 28 '09 at 12:51
Good info guys. Thanks. – Kevin Adams Oct 28 '09 at 13:02
The expand on @DThrasher's comment, PNGs will be displayed by all modern browsers, however the alpha transparency features are not supported in IE 6 and earlier. That means you won't get the nice, clean, clipped look. – Rob Allen Oct 28 '09 at 13:18

The non-answer is to let a designer take care of it, it's a complex issue with many tradeoffs depending on the context.

The answer is that you should always use the file that comes out smallest for a given set of requirements:

  • pixel-fidelity: JPEG is lossy so you won't use it for line art or text, etc
  • color fidelity: 8-bit PNG and GIF can't render a continuous tone image, use 24-bit PNG or JPEG instead, depending on how acceptable compression artifacts are
  • transparency: only GIF and PNG can do transparency, and only 24-bit PNG has a full 8-bit alpha channel (for partial transparency)
  • animation: only GIF can do animation, with some limitations

So in general you'll use a JPEG with an acceptable compression for a picture, a PNG for a screenshot or small inline images or template graphics, and a GIF when you need animation.

share|improve this answer
+1 - I like your summary and the suggestion about talking to a designer. – James Black Oct 28 '09 at 13:27

GIF or PNG should be used for web graphics. If you're showing screenshots of your actual application, you might go with JPEG or PNG.

share|improve this answer
I apprecciate the tips. I hadn't thought of screenshots. Good info. – Kevin Adams Oct 28 '09 at 13:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.