photo-snapper-react

1.1.1 • Public • Published

Photo Snapper

A npm package for REACT that allows users to take photos directly from the web and save it on their computers. Future functionality will allow users to edit and modify their photos directly from the browser. Also allows user to toggle camera if used in a mobile web browser. You can test it out here: https://photo-snapper.herokuapp.com/.


Installation guide:

Make sure you have npm installed on your computer. Execute the following command to get photo-snapper:

npm i photo-snapper-react

Once you have it installed, you can import it in your react code as follows:
import Photosnapper from 'photo-snapper-react'

All you need are these two lines of code in your body of html file inorder for camera to work:

    <Photosnapper size={[string:hieght, string:width]} />

Compatibility

For Desktop:
Browser Chrome Safari Opera Firefox Edge
Compatibility yes yes yes yes yes
Mobile:
Browser Chrome Safari Opera Firefox Edge
Compatibility yes yes ? yes yes

Features

  • Allows users to take photo directly through a web browser
  • Uses adapter software design pattern to create a polyfill such that the camera can work on mobile phone
  • Allows users to directly edit their photos through the web browser and safe on their browsers (in progress).

NOTE: For request any issues or request for new features, please email at mj.akhtar@outlook.com.

Package Sidebar

Install

npm i photo-snapper-react

Weekly Downloads

0

Version

1.1.1

License

none

Unpacked Size

33.2 kB

Total Files

7

Last publish

Collaborators

  • javaad