bensonruan / webcam-easy

javascript access webcam stream and take photo
https://bensonruan.com/how-to-access-webcam-and-take-photo-with-javascript
MIT License
240 stars 110 forks source link

Removed the need for a canvas element to use the snap function #9

Closed Leone25 closed 1 year ago

Leone25 commented 3 years ago

What the title says

Leone25 commented 3 years ago

Rigth i also forgot to mention that now when doing snap you can pass as an argument which format you'd like your image to be made into, currently i've tested and it accepts "image/png"(default and fallback in case of wrong input), "image/jpeg" and "image/webp" and possibly whatever other format the toDataURL function accepts