开发者

what are the algorithm differences between JPEG and GIF?

I am currently doing an assigment and cannot find the answer to 开发者_Go百科this question..as Algorithm is supposed to mean (solving problems as such)


The main difference is that JPEG uses a lossy algorithm, and GIF uses a losless algorithm (LZW). In addition, GIF is limited to 256 colors, while JPEG is truecolor (8 bits per color per pixel)


Some info is here.

Basically, JPEG is good for real life images, and GIF is good for computer generated images with solid areas or when you need some text to not be blurred (JPEG is lossy, GIF is not). There are many other differences too.

See also Wikipedia:

GIF

JPEG

For bonus points in your assignment you might want to mention other commonly used standards such as PNG.


i found a very good web site that explains about the difference between gif and jpeg plus it shows image examples of several scenarios. enjoy.

http://www.siriusweb.com/tutorials/gifvsjpg/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜