How to save an image with Webcam.js?

654 views Asked by At

I want to save an image that is recently captured using the WebCam. I'm using Webcam.js, it returns an image in a string format. I want to save this image inside the local directory.

        // Capure and save Image
        var data = Webcam.snap(function (data_uri) {
           console.log('Image Save',typeof data_uri)
        });
1

There are 1 answers

0
dubiousa On

there is a nice (deprecated) wordpress plugin WP_Snapcam which is based on webcam.js, here the code for saving the photo on server in PHP/JS: hier