🏠 Games Tutorials Dev blog JS code golf Other projects

MiniPhotoBooth

June 2019

A 250 bytes app allowing to take a picture from your webcam.

Click the "Pic" button to take the photo, then save it on your computer.

- Github

- Demo

<button onclick=c.drawImage(v,0,0)>Pic</button><p><video id=v autoplay src onerror="navigator.mediaDevices.getUserMedia({audio:1,video:{width:640,height:480}}).then(s=>v.srcObject=s);c=a.getContext`2d`"muted></video><canvas id=a width=640 height=480>