Fanu2 commited on
Commit
7355628
·
1 Parent(s): 3f21198

Switch to static Space with Toast UI image editor

Browse files
Files changed (2) hide show
  1. README.md +7 -7
  2. index.html +25 -0
README.md CHANGED
@@ -1,12 +1,12 @@
1
  ---
2
- title: Image Editor
3
- emoji: 🎨
4
- colorFrom: blue
5
  colorTo: purple
6
- sdk: gradio
7
- sdk_version: 5.38.0
8
- app_file: app.py
9
  pinned: false
10
  ---
11
 
12
- Your app description here.
 
 
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>