Skip to content

SharePointPro/sppro-image-annote

Repository files navigation

sppro-image-annote

Image Annotation in React

Angular Version:

I have also created an angular version here: https://github.com/SharePointPro/sppro-ng-annote

Live Demo:

https://sharepointpro.github.io/sppro-image-annote/

Screenshot: Screen shot

NPM JavaScript Style Guide

Install

npm install --save sppro-image-annote

Usage

import React, { Component } from 'react'

import SpproImageAnnote from 'sppro-image-annote'

class Example extends Component {
  render () {
    return (
         <SpproImageAnnote url={roomImage} onSave={this.onSave} />
    )
  }
}

API

onSave : Return Base64 of edited image

url: URL of the image to be edited

Style overrides

Add the below style classes to your project to override default
.sppro-overlay //Background overlay styles
.sppro-toolbar //Toolbar styles

Special thanks

Thanks to https://konvajs.org/ for the great library

Dependencies

konva,
react-konva,
@fortawesome/fontawesome-svg-core,
@fortawesome/free-solid-svg-iconsm,
@fortawesome/react-fontawesome,
react-color

License

Simple react Image annotation library

744d6d373bd04f60d6f5be6339db61f68586ff6e

About

Simple react Image annotation library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published