Naughty Platypus Memorabilia
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    minimgpublic

    minimg

    Scale your images in browser before upload.

    <input id="image" type="file" accept="image/*" capture="camera" />
    <script src="minimg.js"></script>
    <script>
      document.getElementById('image').onchange = function() {
        minimg(this, 600, 400, function(canvas) {
          console.log(canvas.toDataURL('image/jpeg'));
        });
      };
    </script> 

    Keywords

    none

    install

    npm i minimg

    Downloadslast 7 days

    0

    version

    0.2.2

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar