1.0.16 • Published 1 year ago

simple-canvas-image-editor v1.0.16

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Canvas image edit

Installation

yarn add simple-canvas-image-editor

How to use in react

  • you can use this with useEffect in react
 const [canvasImage, setCanvasImage] = useState<CanvasImageEdit | null>(null)
  useEffect(() => {
    const loader = new CanvasImageEdit("/wall.jpg")
    const canvas = document.getElementById("canvas") as HTMLCanvasElement

    loader.ImageLoader(canvas)
    loader.result?.brightness(10).render(canvas)

    setCanvasImage(loader)
  }, [])
  • with canvas component
    <canvas id="canvas" style={{ width: "100%", height: "auto" }} />
  • For full example see in folder example

Build

npm run build

Feature

  • Exposure
  • Brightness
  • Hightlight
  • Shadow
  • White
  • Black
  • Temperature
  • Tint
  • Saturationrgb
  • Contrast
  • Clarity
  • Sharpness
1.0.16

1 year ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago