Question: why gif is better than jpeg?
Answer: JPEG is far better for photographs, while GIF is great for computer generated images, logos and line-art with limited palettes. A GIF will never lose its data. It uses lossless compression. ... It uses 'lossy' compression which means some quality is lost when the image is compressed.