title: Sphinx Doc - How do I render an animated GIF when building for HTML but a PNG when building for latexpdf?
body: <p>As title states, I'm using sphinx-doc and I really want to conditionally render static PNGs when the build output is latexpdf and animated GIFs when built for the web.</p>
  
  <p>Ideally, it would be nice to be able to do this in the rst file itself somehow... semantically a:</p>
  
  <p>if builder == html:
    .. image: blah blah
  elif builder == latexpdf:
    .. image: blah blah</p>