Are they any library to do so?

AFAIK dataToURL('image/gif') isn't supported by any browser

Edit
Report