react-cropper
pikaso
Our great sponsors
react-cropper | pikaso | |
---|---|---|
1 | 5 | |
1,981 | 199 | |
1.4% | 6.0% | |
4.1 | 5.1 | |
8 months ago | 2 months ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-cropper
-
this.setState is not a function ( trying Upload Image) ReactJs
Reactjs Try create upload function with cropper component. But when I try set state it says that Uncaught TypeError: this.setState is not a function at FileReader.reader.onload Component import React, { Component, PropTypes } from 'react'import { Link, browserHistory } from 'react-router'import { connect } from 'react-redux'import Cropper from 'react-cropper';class HeadPortrait extends Component { constructor(props) { super(props) this.state = { image: '', } } clickadd(e) { document.getElementById('uploadfiles').click(); } loadFile(e) { e.preventDefault(); var reader = new FileReader(); reader.onload = function () { this.setState({ image: reader.result }) }; reader.readAsDataURL(e.target.files[0]); ; }; _crop() { // image in dataUrl console.log(this.refs.cropper.getCroppedCanvas().toDataURL()); } render() { return ( Add Image Save ) }}function mapStateToProps(state) { return { // stories: state.stories }}export default connect(mapStateToProps)(HeadPortrait) Trying do like in example https://github.com/roadmanfong/react-cropper/blob/master/example/src/Demo.jsx Answer link : https://codehunter.cc/a/reactjs/this-setstate-is-not-a-function-trying-upload-image-reactjs
pikaso
-
Pikaso now supports NodeJs
As of version 2.7.0, NodeJs is supported. This will enable collaboration between backend and frontend sides in creating images.
-
Pikaso v2.6 released
Pikaso v2.6 was released. The release contains a number of bug fixes and new features.
-
Pikaso v2.5.0 is released
Pikaso's full feature list is available at https://pikaso.app and https://github.com/pikasojs/pikaso
- Pikaso: Seamless and headless HTML5 Canvas library
-
The JS canvas editor Pikaso has been around for a year
It added a lot of new features to the core library in that release.
What are some alternatives?
chakra-ui - ⚡️ Simple, Modular & Accessible UI Components for your React Applications
Konva - Konva.js is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
react-easy-crop - A React component to crop images/videos with easy interactions
react-easy-crop - Ricardo fork of https://valentinh.github.io/react-easy-crop/
fxGlue - 💥 WebGL-based image effects library. (TypeScript)
reactour - Tourist Guide into your React Components
vue-konva - Vue & Canvas - JavaScript library for drawing complex canvas graphics using Vue.
rsuite - 🧱 A suite of React components .
react-diagrams - a super simple, no-nonsense diagramming library written in react that just works
modern-screenshot - 📸 Quickly generate image from DOM node using HTML5 canvas and SVG