Spaces:
Running
Running
Switch to static Space with Toast UI image editor
Browse files- README.md +7 -7
- index.html +25 -0
README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title: Image Editor
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: purple
|
| 6 |
-
sdk:
|
| 7 |
-
|
| 8 |
-
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Toast UI Image Editor
|
| 3 |
+
emoji: "🖼"
|
| 4 |
+
colorFrom: pink
|
| 5 |
colorTo: purple
|
| 6 |
+
sdk: static
|
| 7 |
+
app_file: index.html
|
|
|
|
| 8 |
pinned: false
|
| 9 |
---
|
| 10 |
|
| 11 |
+
A full-featured image editor built with Toast UI, deployed as a static Space.
|
| 12 |
+
|
index.html
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<title>Toast UI Image Editor</title>
|
| 6 |
+
<link rel="stylesheet" href="https://uicdn.toast.com/tui-image-editor/latest/tui-image-editor.css">
|
| 7 |
+
</head>
|
| 8 |
+
<body>
|
| 9 |
+
<div id="tui-image-editor-container"></div>
|
| 10 |
+
<script src="https://uicdn.toast.com/tui-image-editor/latest/tui-image-editor.js"></script>
|
| 11 |
+
<script>
|
| 12 |
+
new tui.ImageEditor('#tui-image-editor-container', {
|
| 13 |
+
includeUI: {
|
| 14 |
+
menu: ['crop', 'flip', 'rotate', 'draw', 'shape', 'text', 'filter'],
|
| 15 |
+
initMenu: 'filter',
|
| 16 |
+
uiSize: { width: '1000px', height: '700px' },
|
| 17 |
+
menuBarPosition: 'bottom'
|
| 18 |
+
},
|
| 19 |
+
cssMaxWidth: 700,
|
| 20 |
+
cssMaxHeight: 500,
|
| 21 |
+
usageStatistics: false
|
| 22 |
+
});
|
| 23 |
+
</script>
|
| 24 |
+
</body>
|
| 25 |
+
</html>
|