Lossless means that the image is made smaller, but at no detriment to the quality. Lossy means the image is made (even) smaller, but at a detriment to the quality. If you saved an image in a Lossy format over and over, the image quality would get progressively worse and worse.
- Lossless means that the image is made smaller, but at no detriment to the quality.
- Lossy means the image is made (even) smaller, but at a detriment to the quality. If you saved an image in a Lossy format over and over, the image quality would get progressively worse and worse.
There are also different colour depths (palettes): Indexed color and Direct colorDirect color.
With Indexed it means that the image can only store a limited number of colours (usually 256) that are chosen by the image author, with Direct it means that you can store many thousands of colours that have not been chosen by the author.
- Indexed means that the image can only store a limited number of colours (usually 256), controlled by the author, in something called a Color Map
- Direct means that you can store many thousands of colours that have not been directly chosen by the author
SVG - Lossless / IndexedVector
A filetype that is currently growing in popularity is SVG, which is a very unusual graphics format compared todifferent than all the rest, as it can be createdabove in a text editor. It's also unusual becausethat it's the onlya vector file format here(the above are all raster). This means that is Vectorit's actually comprised of lines and curves instead of Rasterpixels. With Vector imagesWhen you can zoom in all you want, and it will never get pixelated. This is because, instead of the image saying, "colour the first pixel red, the second pixel blue, the third yellow", etc. SVGs say, "this ison a circle filled with bluevector image, this isyou still see a curve in red, this isor a straight line in green". When you zoom in, you're just zooming in on a curveraster image, not a pixelyou will see pixels.
Because of this, SVGs are greatFor example:
This means SVG is perfect for simple shapes, like icons, to be used on Retina displays,logos and especially shapes likeicons you wish to animate basedretain sharpness on user input (like graphs, for example)Retina screens or at different sizes.
W3Schools has a bad reputationAdditionally, but I'm going to link to a very simple SVG example to show you how simple and effective they can be:
http://www.w3schools.com/svg/tryit.asp?filename=trysvg_ellipses
SVGsfiles are very tricky to work withwritten using XML, and so most people just find usingcan be opened and edited in a traditional raster format (like PNG or GIF) works well enough. If you wish to do advanced animations on your sitetext editor, that it can changebe manipulated on use inputthe fly, then SVGs are perfectif you wish. For example, you could use JavaScript to change the colour of an SVG icon on a website much like you would some text (ie. no need for a second image).