Image Annotation in React
I have also created an angular version here: https://github.com/SharePointPro/sppro-ng-annote
https://sharepointpro.github.io/sppro-image-annote/
npm install --save sppro-image-annote
import React, { Component } from 'react'
import SpproImageAnnote from 'sppro-image-annote'
class Example extends Component {
render () {
return (
<SpproImageAnnote url={roomImage} onSave={this.onSave} />
)
}
}
onSave : Return Base64 of edited image
url: URL of the image to be edited
Add the below style classes to your project to override default
.sppro-overlay //Background overlay styles
.sppro-toolbar //Toolbar styles
Thanks to https://konvajs.org/ for the great library
konva,
react-konva,
@fortawesome/fontawesome-svg-core,
@fortawesome/free-solid-svg-iconsm,
@fortawesome/react-fontawesome,
react-color
MIT © SharePointPro
Simple react Image annotation library
744d6d373bd04f60d6f5be6339db61f68586ff6e