title: Encode Animated GIF to Base64
body: <p>I've been searching for a way to encode animated GIF's from a given URL to base64 without using external libraries like jquery (I will use it if absolutely necessary). I have <a href="https://stackoverflow.com/a/20285053/1220338">found results</a> to encode static images to base64, but they all use the <code>canvas</code>, and <code>canvas.toDataURL()</code> will only encode a single frame of an animated GIF. Is there a way to encode animated GIF's (or any image for that matter) to base64 without using the <code>canvas</code>?</p>