0.1.8 • Published 7 years ago

react-picture-cropper v0.1.8

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

React picture cropper is a React component for picture cropping and uploading from the front-end.

Example Usage

  • 1.Install the package:
npm install react-picture-cropper
  • 2.Import the component to your code as a normal React component:
import PicCropper from "react-picture-cropper"
import { render } from "react-dom"
import React from "react"
function App(){
    return(
        <PicCropper action="path"/>
    )
}
render(
    App(),
    document.getElementById("root")
)

action: The path you upload your image

Demo

  • 1.Enter the root directory of the module(in node_modules)
  • 2.Run the demo
npm run demo1
  • 3.Visit http://localhost:8080/index.html in your browser
  • 4.Select one pic and upload it the your local server, you'll find the uploaded picture at /demo/upload/ as "fileData.png"
0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago