Gathering detailed insights and metrics for tui-image-editor-teng
Gathering detailed insights and metrics for tui-image-editor-teng
Gathering detailed insights and metrics for tui-image-editor-teng
Gathering detailed insights and metrics for tui-image-editor-teng
🍞🎨 Full-featured photo image editor using canvas. It is really easy, and it comes with great filters.
npm install tui-image-editor-teng
Typescript
Module System
JavaScript (90.1%)
Stylus (4.44%)
HTML (3.38%)
TypeScript (0.97%)
CSS (0.79%)
Vue (0.33%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
611 Commits
2 Branches
1 Contributors
Updated on Apr 26, 2023
Latest Version
8.1.0
Package Id
tui-image-editor-teng@8.1.0
Unpacked Size
3.39 MB
Size
742.65 kB
File Count
310
Published on
May 30, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
Full featured image editor using HTML5 Canvas. It's easy to use and provides powerful filters.
TOAST UI ImageEditor applies Google Analytics (GA) to collect statistics on the use of open source, in order to identify how widely TOAST UI ImageEditor is used throughout the world. It also serves as important index to determine the future course of projects. location.hostname (e.g. > “ui.toast.com") is to be collected and the sole purpose is nothing but to measure statistics on the usage. To disable GA, use the following usageStatistics
option when creating the instance.
1var options = {
2 //...
3 usageStatistics: false
4}
5
6var imageEditor = new tui.ImageEditor('#tui-image-editor-container', options);
Or, include tui-code-snippet
(v1.4.0 or later) and then immediately write the options as follows:
1tui.usageStatistics = false;
![]() | ![]() | ![]() | ![]() | ![]() |
---|---|---|---|---|
Yes | 10+ | Yes | Yes | Yes |
Crop | Flip | Rotation | Drawing | Shape |
---|---|---|---|---|
![]() | ![]() | ![]() | ![]() | ![]() |
Icon | Text | Mask | Filter | |
![]() | ![]() | ![]() | ![]() |
Grayscale | Noise | Emboss | Pixelate |
---|---|---|---|
![]() | ![]() | ![]() | ![]() |
Sepia | Sepia2 | Blend-righten | Blend-diff | Invert |
---|---|---|---|---|
![]() | ![]() | ![]() | ![]() | ![]() |
Multifly | Tint | Brightness | Remove-white | Sharpen |
---|---|---|---|---|
![]() | ![]() | ![]() | ![]() | ![]() |
1var imageEditor = new tui.ImageEditor('#tui-image-editor-container', {
2 includeUI: {
3 menu: ['shape', 'crop']
4 ...
5 },
6 ...
Widely supported in browsers including IE10.
Option to support various display sizes. (allows you to use the editor features on your web pages at least over 550 * 450 sizes)
black - top | black - bottom | white - left | white - right |
---|---|---|---|
![]() | ![]() | ![]() | ![]() |
The TOAST UI products can be installed by using the package manager or downloading the source directly. However, we highly recommend using the package manager.
You can find TOAST UI producs via npm and bower package managers. Install by using the commands provided by each package manager. When using npm, be sure Node.js is installed in the environment.
1$ npm install --save tui-image-editor # Latest version 2$ npm install --save tui-image-editor@<version> # Specific version
fabric.js
dependency module does not go smoothlyTo solve the problem, you need to refer to Some Steps to solve the problem.
1$ bower install tui-image-editor # Latest version 2$ bower install tui-image-editor#<tag> # Specific version
TOAST UI products are available over the CDN powered by TOAST Cloud.
You can use the CDN as below.
1<link rel="stylesheet" href="https://uicdn.toast.com/tui-image-editor/latest/tui-image-editor.css"> 2<script src="https://uicdn.toast.com/tui-image-editor/latest/tui-image-editor.js"></script>
If you want to use a specific version, use the tag name instead of latest
in the URL.
The CDN directory has the following structure.
tui-image-editor/
├─ latest/
│ ├─ tui-image-editor.js
│ ├─ tui-image-editor.min.js
│ └─ tui-image-editor.css
├─ v3.1.0/
│ ├─ ...
Add the container element where TOAST UI ImageEditor will be created.
1<body> 2... 3<div id="tui-image-editor"></div> 4... 5</body>
Add dependencies & initialize ImageEditor class with given element to make an image editor.
1var ImageEditor = require('tui-image-editor'); 2var FileSaver = require('file-saver'); //to download edited image to local. Use after npm install file-saver 3var blackTheme = require('./js/theme/black-theme.js'); 4var locale_ru_RU = { // override default English locale to your custom 5 'Crop': 'Обзрезать', 6 'Delete-all': 'Удалить всё' 7 // etc... 8}; 9var instance = new ImageEditor(document.querySelector('#tui-image-editor'), { 10 includeUI: { 11 loadImage: { 12 path: 'img/sampleImage.jpg', 13 name: 'SampleImage' 14 }, 15 locale: locale_ru_RU, 16 theme: blackTheme, // or whiteTheme 17 initMenu: 'filter', 18 menuBarPosition: 'bottom' 19 }, 20 cssMaxWidth: 700, 21 cssMaxHeight: 500, 22 selectionStyle: { 23 cornerSize: 20, 24 rotatingPointOffset: 70 25 } 26});
Or ~ UI
1var ImageEditor = require('tui-image-editor'); 2var instance = new ImageEditor(document.querySelector('#tui-image-editor'), { 3 cssMaxWidth: 700, 4 cssMaxHeight: 500, 5 selectionStyle: { 6 cornerSize: 20, 7 rotatingPointOffset: 70 8 } 9});
Can find more details in this document.
If you using TypeScript, You must import module = require('module')
on importing.
export =
and import = require()
1import ImageEditor = require('tui-image-editor'); 2var FileSaver = require('file-saver'); //to download edited image to local. Use after npm install file-saver 3 4const instance = new ImageEditor(document.querySelector('#tui-image-editor'), { 5 cssMaxWidth: 700, 6 cssMaxHeight: 500, 7 selectionStyle: { 8 cornerSize: 20, 9 rotatingPointOffset: 70 10 } 11});
See details for additional informations.
The TOAST UI products are open-source. After fixing issues, create a pull request(PR). Run npm scripts and develop with the following process.
Fork master
branch into your personal repository.
Clone to local computer.
Install node modules.
Before starting development, check for any errors.
1$ git clone https://github.com/{username}/tui.image-editor.git 2$ cd tui.image-editor 3$ npm install 4$ npm run test
1$ npm run serve
No vulnerabilities found.
No security vulnerabilities found.