From collectibles to cars, buy and sell all kinds of items on eBayWelcome! Sign in or register.
aAdvanced Search

Reviews & Guides

Write a guide

GIF or JPG image formats? Which should I use?

by: shipscript( 20Feedback score is 10 to 49) Top 1000 Reviewer
16 out of 21 people found this guide helpful.
Guide viewed: 2740 times Tags: Image formats | Image hosting | Auction photos | Logos | Banners


GIF or JPG image formats? Which should I use?

GIF is a compression scheme that will preserve dots and sharp boundary contrasts, as on text. When an image is cartoonish with a few colors (4, 16, 64), GIF compression can tremendously shrink the file size, without losing crispness, by reducing the GIF color palette from 256 to the smallest reasonable number of colors.

The GIF format is also used to drop out the background to make it transparent. The image can then be overlaid on a patterned or colored background. The JPG format does not support a transparent layer.

JPG
compression is generally used with photographic images where there are thousands of minute color changes across the image and where all those colors need to be there for a smooth transition. The compression algorithm shrinks file sizes by averaging out and blending some colors, so the image will be fuzzier and color boundaries may blur some. The smoothing effect is generally desirable in photos.

JPG compression can greatly reduce the file size of large images, depending on the amount of compression that is applied.

Examples:

Below are visual examples of the differences between GIF and JPG. Beside each image is a blowup of the details to show the pixels.

Images that should use the GIF format:


Icons, buttons, logos, banners, cutouts, text.

Look at these two examples of a text image saved with GIF compression and with JPG compression. The text is just a little crisper in the GIF image, while the JPG file is considerably larger. In the blowup, notice all the random dots that are now part of the JPG image as a result of color blending. Those dots are part of the reason the JPG file is so much larger, and they obviously don't enhance the image appearance.




2K GIF image (2-color)






17K JPG image (80% Quality)


Images that should use the JPG format:



Now look at a photographic image with some suble hue shifts or gradients. The GIF compression, even at its best quality, is blotchier and produces a larger file size than the JPG compression. In photographic images, the JPG color blending creates more desirable results and a smaller file size. Because the image below is bland, the JPG compression scheme can also crunch it into a much smaller file than it could a busy image.


 
20K GIF image (256-color)


 
5K JPG image (80% Quality)

Design Considerations

There are some design considerations for saving images in the wrong format (not recommended for displaying images on the web). A photographic image that should be saved as a JPG, but that is saved as a GIF image, can usually be converted to a JPG image (without suffering too much in appearance) if no palette compression is used when saving the GIF (all 256 colors are available). A graphic that should be saved as a GIF, but that is saved in the JPG format, can be converted to a GIF (without blurry edges) if no compression is used (or 100% quality is selected) when saving the JPG file.

 

copyright © 2006 shipscript Free Tools for Better Auctions
Please see my other guides for Auction Template help, Page Design Basics, Blog help, and useful tidbits.
The latest craze - Templettes - mini auction templates that fit into eBay "inserts".
Shipscript can be found on the eBay
help forums and maintains help pages and free scripts for eBay sellers.

 


Guide ID: 10000000001711934Guide created: 09/02/06 (updated 10/02/08)

 
Was this guide helpful? Report this guide

Ready to share your knowledge with others? Write a guide



 


eBay Pulse | eBay Reviews | eBay Stores | Half.com | Reseller Marketplace | Austria | France | Germany | Italy | Spain | United Kingdom | Popular Searches
Kijiji | PayPal | ProStores | Apartments for Rent | Shopping.com | Skype | Tickets


About eBay | Announcements | Security Center | eBay Toolbar | Policies | Government Relations | Site Map | Help
Copyright © 1995-2008 eBay Inc. All Rights Reserved. Designated trademarks and brands are the property of their respective owners. Use of this Web site constitutes acceptance of the eBay User Agreement and Privacy Policy.
eBay official time