https://github.com/interactivetraining/image-editor
:camera: Interactive.Training Component: image-editor
https://github.com/interactivetraining/image-editor
browser-based image-editor jimp stenciljs web-component
Last synced: 3 months ago
JSON representation
:camera: Interactive.Training Component: image-editor
- Host: GitHub
- URL: https://github.com/interactivetraining/image-editor
- Owner: InteractiveTraining
- Created: 2019-07-03T12:26:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-03T11:12:56.000Z (over 5 years ago)
- Last Synced: 2025-02-26T21:37:11.015Z (11 months ago)
- Topics: browser-based, image-editor, jimp, stenciljs, web-component
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@interactivetraining/image-editor
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README

# Demo
[codepen](https://codepen.io/adamlacombe/full/qzKMXZ)
# Example
```html
```
# Example 2
```html
```
```javascript
function addImageEditor() {
const editor = document.createElement('it-image-editor');
editor.addEventListener('save', (e) => {
console.log('save image', e.detail);
const image = new Image();
image.src = e.detail.base64;
window.open("", '_blank').document.write(image.outerHTML);
});
document.body.appendChild(editor);
}
if (document.readyState === "interactive") {
addImageEditor();
} else {
document.addEventListener('DOMContentLoaded', () => addImageEditor());
}
```