Skip to main content
Rollback to Revision 4
Source Link
zzzzBov
  • 904
  • 6
  • 14

When to use JPG

  • photographic imagery
  • when compression doesn't matter

When to use PNG

  • when you need transparency
  • when you have patterning (backgrounds)

When to use GIF

  • when you need backwards compatible animation*
  • when an image is primarily comprised of just a handful of colors (2-16)**
  • when you don't need transparency and have patterning (although png is preferred)

When to use SVG

  • whenever you can as it's typically the smallest file size and resolution independent meaning it can handle any device pixel ratio (retina screens, for example)
  • when your art is suitable for vector file formats (icons in particular)
  • when you have the luxury of only having to target modern browsers (SVG support is relatively new for some browsers)

When to use icon fonts

  • when you need an extensive set of icons
  • when, like SVG, you want the benefits of vector file formats
  • when you have the luxury of only having to target modern browsers (web font support is relatively new for some browsers)

* With the rise of CSS animation as a viable option for nearly all browsers the use of the .GIF format is less and less the go-to format for web animation. .jpg, .png, and .gif can all be set to have an "animated" feature with the use of CSS. Although animated gifs may be used attractively in web design in certain case scenarios, exceptions are rare, so it tends to be best to just avoid them.

** (.gif images are restricted to only 256 colors within their palette.)

When to use JPG

  • photographic imagery
  • when compression doesn't matter

When to use PNG

  • when you need transparency
  • when you have patterning (backgrounds)

When to use GIF

  • when you need backwards compatible animation*
  • when an image is primarily comprised of just a handful of colors (2-16)**
  • when you don't need transparency and have patterning (although png is preferred)

When to use SVG

  • whenever you can as it's typically the smallest file size and resolution independent meaning it can handle any device pixel ratio (retina screens, for example)
  • when your art is suitable for vector file formats (icons in particular)
  • when you have the luxury of only having to target modern browsers (SVG support is relatively new for some browsers)

When to use icon fonts

  • when you need an extensive set of icons
  • when, like SVG, you want the benefits of vector file formats
  • when you have the luxury of only having to target modern browsers (web font support is relatively new for some browsers)

* With the rise of CSS animation as a viable option for nearly all browsers the use of the .GIF format is less and less the go-to format for web animation. .jpg, .png, and .gif can all be set to have an "animated" feature with the use of CSS. Although animated gifs may be used attractively in web design in certain case scenarios, exceptions are rare, so it tends to be best to just avoid them.

** (.gif images are restricted to only 256 colors within their palette.)

When to use JPG

  • photographic imagery
  • when compression doesn't matter

When to use PNG

  • when you need transparency
  • when you have patterning (backgrounds)

When to use GIF

  • when you need backwards compatible animation*
  • when an image is primarily comprised of just a handful of colors (2-16)**
  • when you don't need transparency and have patterning (although png is preferred)

* With the rise of CSS animation as a viable option for nearly all browsers the use of the .GIF format is less and less the go-to format for web animation. .jpg, .png, and .gif can all be set to have an "animated" feature with the use of CSS. Although animated gifs may be used attractively in web design in certain case scenarios, exceptions are rare, so it tends to be best to just avoid them.

** (.gif images are restricted to only 256 colors within their palette.)

Added SVG and Font info
Source Link
DA01
  • 50.2k
  • 3
  • 78
  • 160

When to use JPG

  • photographic imagery
  • when compression doesn't matter

When to use PNG

  • when you need transparency
  • when you have patterning (backgrounds)

When to use GIF

  • when you need backwards compatible animation*
  • when an image is primarily comprised of just a handful of colors (2-16)**
  • when you don't need transparency and have patterning (although png is preferred)

When to use SVG

  • whenever you can as it's typically the smallest file size and resolution independent meaning it can handle any device pixel ratio (retina screens, for example)
  • when your art is suitable for vector file formats (icons in particular)
  • when you have the luxury of only having to target modern browsers (SVG support is relatively new for some browsers)

When to use icon fonts

  • when you need an extensive set of icons
  • when, like SVG, you want the benefits of vector file formats
  • when you have the luxury of only having to target modern browsers (web font support is relatively new for some browsers)

* With the rise of CSS animation as a viable option for nearly all browsers the use of the .GIF format is less and less the go-to format for web animation. .jpg, .png, and .gif can all be set to have an "animated" feature with the use of CSS. Although animated gifs may be used attractively in web design in certain case scenarios, exceptions are rare, so it tends to be best to just avoid them.

** (.gif images are restricted to only 256 colors within their palette.)

When to use JPG

  • photographic imagery
  • when compression doesn't matter

When to use PNG

  • when you need transparency
  • when you have patterning (backgrounds)

When to use GIF

  • when you need backwards compatible animation*
  • when an image is primarily comprised of just a handful of colors (2-16)**
  • when you don't need transparency and have patterning (although png is preferred)

* With the rise of CSS animation as a viable option for nearly all browsers the use of the .GIF format is less and less the go-to format for web animation. .jpg, .png, and .gif can all be set to have an "animated" feature with the use of CSS. Although animated gifs may be used attractively in web design in certain case scenarios, exceptions are rare, so it tends to be best to just avoid them.

** (.gif images are restricted to only 256 colors within their palette.)

When to use JPG

  • photographic imagery
  • when compression doesn't matter

When to use PNG

  • when you need transparency
  • when you have patterning (backgrounds)

When to use GIF

  • when you need backwards compatible animation*
  • when an image is primarily comprised of just a handful of colors (2-16)**
  • when you don't need transparency and have patterning (although png is preferred)

When to use SVG

  • whenever you can as it's typically the smallest file size and resolution independent meaning it can handle any device pixel ratio (retina screens, for example)
  • when your art is suitable for vector file formats (icons in particular)
  • when you have the luxury of only having to target modern browsers (SVG support is relatively new for some browsers)

When to use icon fonts

  • when you need an extensive set of icons
  • when, like SVG, you want the benefits of vector file formats
  • when you have the luxury of only having to target modern browsers (web font support is relatively new for some browsers)

* With the rise of CSS animation as a viable option for nearly all browsers the use of the .GIF format is less and less the go-to format for web animation. .jpg, .png, and .gif can all be set to have an "animated" feature with the use of CSS. Although animated gifs may be used attractively in web design in certain case scenarios, exceptions are rare, so it tends to be best to just avoid them.

** (.gif images are restricted to only 256 colors within their palette.)

added 19 characters in body
Source Link
zzzzBov
  • 904
  • 6
  • 14

###When to use JPG

When to use JPG

  • photographic imagery
  • when compression doesn't matter

###When to use PNG

When to use PNG

  • when you need transparency
  • when you have patterning (backgrounds)

###When to use GIF

When to use GIF

  • when you need animationneed backwards compatible animation*
  • when an image is primarily comprised of just a handful of colors (2-16)
    • (.GIF images are restricted to only 256 colors within their palette.)
    **
  • when you don't need transparency and have patterning (although png is preferred)


update 3/11/14: With the rise of css animation as a viable option for nearly all browsers (http://caniuse.com/#feat=css-animation) the use of the .GIF format is less and less the go-to format for web animation. .jpg, .png, .gif can all be set to have an "animated" feature with the use of css.* With the rise of CSS animation as a viable option for nearly all browsers the use of the .GIF format is less and less the go-to format for web animation. .jpg, .png, and .gif can all be set to have an "animated" feature with the use of CSS. Although animated gifs may be used attractively in web design in certain case scenarios, exceptions are rare, so it tends to be best to just avoid them.

Although animated gifs may be used attractively in web design in certain case scenarios, exceptions are very rare, so it's best to just avoid them.** (.gif images are restricted to only 256 colors within their palette.)

###When to use JPG

  • photographic imagery
  • when compression doesn't matter

###When to use PNG

  • when you need transparency
  • when you have patterning (backgrounds)

###When to use GIF

  • when you need animation
  • when an image is primarily comprised of just a handful of colors (2-16)
    • (.GIF images are restricted to only 256 colors within their palette.)
  • when you don't need transparency and have patterning (although png is preferred)


update 3/11/14: With the rise of css animation as a viable option for nearly all browsers (http://caniuse.com/#feat=css-animation) the use of the .GIF format is less and less the go-to format for web animation. .jpg, .png, .gif can all be set to have an "animated" feature with the use of css.

Although animated gifs may be used attractively in web design in certain case scenarios, exceptions are very rare, so it's best to just avoid them.

When to use JPG

  • photographic imagery
  • when compression doesn't matter

When to use PNG

  • when you need transparency
  • when you have patterning (backgrounds)

When to use GIF

  • when you need backwards compatible animation*
  • when an image is primarily comprised of just a handful of colors (2-16)**
  • when you don't need transparency and have patterning (although png is preferred)

* With the rise of CSS animation as a viable option for nearly all browsers the use of the .GIF format is less and less the go-to format for web animation. .jpg, .png, and .gif can all be set to have an "animated" feature with the use of CSS. Although animated gifs may be used attractively in web design in certain case scenarios, exceptions are rare, so it tends to be best to just avoid them.

** (.gif images are restricted to only 256 colors within their palette.)

Reduced heading sizes per request
Source Link
zzzzBov
  • 904
  • 6
  • 14
Loading
Source Link
zzzzBov
  • 904
  • 6
  • 14
Loading