krasimir / gifffer

A tiny JavaScript library that prevents the autoplaying of the animated Gifs
MIT License
775 stars 92 forks source link

gif quality #12

Open fegg opened 8 years ago

fegg commented 8 years ago

hi, today i find this library. and write a demo, but I find gif image quality reduce.

My Code:

<img data-gifffer="./demo.gif">
<script type="text/javascript" src="gifffer.min.js"></script>
<script>
    Gifffer();
</script>

My gif real size is: 5.5MB

How to increase canvas gif quality?

krasimir commented 8 years ago

Hey @fegg,

Sorry for the late reply. Gifffer uses drawImage API which doesn't provide an option for quality. Do you mean that the preview looks bad or the actual gif animation. If it's the animation the problem is not in Gifffer because it simply runs it in a <img> tag.