jnordberg / gif.js

JavaScript GIF encoding library
http://jnordberg.github.io/gif.js/
MIT License
4.76k stars 668 forks source link

fix crop for webcam captures #37

Closed nikopol closed 2 years ago

nikopol commented 9 years ago

hi, when a video tag is used to display a capture from your webcam, the image data is in the original resolution of your webcam, no matter what size you gave to your video element. so, calling addFrame with the video element will crop the image instead of resizing it using the default or the given width/height.