aaharu / gifken

JavaScript library that can reverse and split animated GIFs
MIT License
25 stars 3 forks source link

GifPresenter class is not exported #15

Closed GMartigny closed 4 years ago

GMartigny commented 4 years ago

Hi,

The GifPresenter class is not part of the gifken exports. According to the documentation, I should be be doing:

    newimg.src = gifken.GifPresenter.writeToDataUrl(newgif.writeToArrayBuffer());
aaharu commented 4 years ago

Hi, thanks for this report.

GifPresenter class is included only gifken.umd.js, because it uses Blob and btoa. I'll fix the documentation 😃

GMartigny commented 4 years ago

Ok, thanks. With the advent of ESM as the common import format you might want to consider adding it to your ESM build. Now, you'll have issue with Node.js, I know we all wonder how to work this out ^^.