Socket
Book a DemoInstallSign in
Socket

@cloudogu/react-img-editor

Package Overview
Dependencies
Maintainers
6
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudogu/react-img-editor

Simple react image editor

0.4.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
6
Weekly downloads
 
Created
Source

react-img-editor - Image Editor

react-img-editor is an image editor react component that supports image cropping, doodling, text editing, mosaic processing, and other operations, as well as custom plugins and flexible style configuration.

example

View our storybook for a live demo.

✨ Features

  • Support free brush, rectangle, circle, arrow, text, mosaic drawing
  • Support eraser, undo, screenshot and image download
  • Support custom plug-ins and toolbar configuration
  • Support stretching, dragging and deleting of rectangle, circle, arrow, text and other nodes
  • Support for multiple components on the same page at the same time

📦 Download

yarn add @cloudogu/react-img-editor

🔨 Introduce and use

import ReactImgEditor from '@cloudogu/react-img-editor'
import '@cloudogu/react-img-editor/lib/index.css'

;<ReactImgEditor src="https://www.w3schools.com/html/img_girl.jpg" />

🧰 API

| Properties | Description | Type | Default | | ----------------- | ----------------------------------------------------------------------------------------------------------------------- | -------------------- | ------------------------------------------------------------------------ | --------------------------------- | | src | image url | string | - | | width | board width | number? | 700 | | height | board height | number? | 500 | | style | styles | React.CSSProperties | - | | plugins | Custom plugins | Plugin[] | [] | | toolbar | toolbar configuration | { items: string[] } | {items: ['pen', 'eraser', 'arrow', 'rect', 'circle', 'mosaic', 'text', ' | ', 'repeat', 'download', 'crop']} | | getStage | Get the Stage object of KonvaJS, which can be used to download images, etc. | (stage: any) => void | | defaultPluginName | The default selected plugin name | string? | - | | crossOrigin | Handling cross-domain images | string? | - | | language | Editor language (de,en) | string? | en |

📝 TODO

  • Load images dynamically
  • Download image type configuration
  • Provide plugin configuration items configuration
  • Optimize free brush writing experience
  • Internationalization support

🤝 Contribute

Development

yarn run development

Credits

This project is a fork of react-img-editor

Keywords

react-img-editor

FAQs

Package last updated on 15 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.