{"id":18822939,"url":"https://github.com/morzhanov/react-media-editor","last_synced_at":"2025-04-14T01:25:01.322Z","repository":{"id":57334438,"uuid":"161205088","full_name":"morzhanov/react-media-editor","owner":"morzhanov","description":"React components library to edit Images and Video using canvas.","archived":false,"fork":false,"pushed_at":"2019-04-30T12:23:22.000Z","size":19127,"stargazers_count":26,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T15:22:13.284Z","etag":null,"topics":["editor","library","media","npm","react","react-library","screenshots"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/morzhanov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-10T16:37:46.000Z","updated_at":"2025-02-22T07:53:46.000Z","dependencies_parsed_at":"2022-08-31T15:42:02.359Z","dependency_job_id":null,"html_url":"https://github.com/morzhanov/react-media-editor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morzhanov%2Freact-media-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morzhanov%2Freact-media-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morzhanov%2Freact-media-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morzhanov%2Freact-media-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morzhanov","download_url":"https://codeload.github.com/morzhanov/react-media-editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248805808,"owners_count":21164391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["editor","library","media","npm","react","react-library","screenshots"],"created_at":"2024-11-08T00:52:10.101Z","updated_at":"2025-04-14T01:25:01.269Z","avatar_url":"https://github.com/morzhanov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Media Editor\n\n#### React components library to edit Images and Video using canvas.\n\n[![npm version](https://badge.fury.io/js/react-media-editor.svg)](https://badge.fury.io/js/react-media-editor)\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/morzhanov/react-media-editor/issues)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\u003cimg src=\"https://i.imgur.com/e3B8bRP.png\" alt=\"logo\" /\u003e\n\n## Description\n\nUse this library to add image/video editor to you React application.\n\nThis library contains drawing tools which you can use to draw graphical shapes on you image or video sources. Package contains ImageEditor and VideoEditor components.\n\n## Installation\n\n\nNPM package:\n```\nyarn i react-media-editor\n```\n\nAlso you can modify project files directly, project built using \u003ca href=\"https://rollupjs.org/guide/en\"\u003eRollupJS\u003c/a\u003e module bundler.\n\n#### Example\n\nTo run example: \n\n* go to /example folder\n* yarn i\n* yarn start\n* open \u003ca href=\"localhost:3000\"\u003elocalhost:3000\u003c/a\u003e\n\n## Demo\n\nYou can review how to use ImageEditor on codesandbox:\n\n[![Edit 5349lln724](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/5349lln724?view=preview)\n\n## Usage\n\nHere is an example how to use VideoEditor compoent within you application:\n\n```\nimport React from 'react'\nimport { SketchPicker } from 'react-color'\nimport { VideoEditor } from 'react-media-editor'\n\nconst Video = () =\u003e (\n  \u003cdiv className=\"page-wrapper editor\"\u003e\n    \u003cdiv className=\"container\"\u003e\n      \u003cVideoEditor\n        colorPicker={SketchPicker}\n        src=\"https://your.video.mp4\"\n      /\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n)\n\nexport default Video\n```\n\nResult: [Imgur](https://i.imgur.com/e3B8bRP.png)\n\nExample using ImageEditor:\n\n```\nimport React from 'react'\nimport { SketchPicker } from 'react-color'\nimport { ImageEditor } from 'react-media-editor'\nimport ExampleImage from '../assets/img/example.png'\n\nconst Image = () =\u003e (\n  \u003cdiv className=\"page-wrapper editor\"\u003e\n    \u003cdiv className=\"container\"\u003e\n      \u003cImageEditor colorPicker={SketchPicker} src={ExampleImage} /\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n)\n\nexport default Image\n```\n\nResult: [Imgur](https://i.imgur.com/hER5fN8.png)\n\n\n#### Notice\n\nIf you want to enable color change feature you should add \u003ca href=\"https://casesandberg.github.io/react-color/\"\u003ereact-color\u003c/a\u003e package to your project, and then pass it's component as colorPainter prop to Editor. Example:\n\n```\n...\nimport { SketchPicker } from 'react-color' // we will use SketchPicker\n...\n\n// somwhere in the React render() method\n \u003cVideoEditor\n   colorPicker={SketchPicker}\n   src=\"https://your.video.mp4\"\n /\u003e\n...\n```\n\n### ImageEditor and VideoEditor props\n\n\u003cb\u003ecolorPicker\u003c/b\u003e - react-color component to enable color pick feature.\n\n\u003cb\u003esrc\u003c/b\u003e - image or video source.\n\n## Main Technologies and libraries\n\n- \u003ca href=\"https://reactjs.org/\"\u003eReact\u003c/a\u003e\n- \u003ca href=\"https://casesandberg.github.io/react-color/\"\u003ereact-color\u003c/a\u003e\n- \u003ca href=\"https://rollupjs.org\"\u003eRollup.JS\u003c/a\u003e\n- \u003ca href=\"https://webpack.js.org/\"\u003eWebpack 4\u003c/a\u003e\n- \u003ca href=\"https://eslint.org/\"\u003eESLint\u003c/a\u003e\n- \u003ca href=\"https://github.com/prettier/prettier\"\u003ePrettier\u003c/a\u003e\n- \u003ca href=\"https://babeljs.io/\"\u003eBabel\u003c/a\u003e\n\n## More\n\nIf you would like to add comments to audio files please take a look on \u003ca href=\"https://github.com/morzhanov/react-audio-comments\"\u003ereact-audio-comments\u003c/a\u003e library.\n\n## Contributing\n\n1.  Fork it!\n2.  Create your feature branch: `git checkout -b my-new-feature`\n3.  Commit your changes: `git commit -am 'Add some feature'`\n4.  Push to the branch: `git push origin my-new-feature`\n5.  Submit a pull request :D\n\n## Author\n\nVlad Morzhanov\n\n## License\n\n#### (The MIT License)\n\nCopyright (c) 2018 Vlad Morzhanov.\nYou can review license in the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorzhanov%2Freact-media-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorzhanov%2Freact-media-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorzhanov%2Freact-media-editor/lists"}