Jpg Vs Svg. So which should you use. Jpeg is a raster image format and uses lossy compression algorithm and image may lost some of its data whereas svg is a text based image format and uses mathematical structures to represent a image and is highly scalable.
When you zoom in on a raster image you will see pixels. Sometimes the differences in file formats are subtle and sometimes they are vast but this brief explanation should give you a better understanding of each format and help you know when to use each them. Jpeg images are used in photography applications and svg is used when high resolution images are required.
The w3c standards are present here along with dom and xsl with proper recommendations.
Jpeg this is probably the most common file format that beginners and professionals use. This post can be viewed as a beginner s guide to the differences between a jpg gif png and svg. Svg s can be animated support transparency and any combinations of colors or gradients. The animation is available for all segments of svg files.