/syncfusion-javascript:syncfusion-javascript-image-editorfrom Syncfusion JavaScript UI Controls
Implement the Syncfusion TypeScript Image Editor control for image editing, annotation, and manipulation. Use this when the user needs to add image editing capabilities, work with filters, transformations, cropping, or drawing features in TypeScript applications. Covers setup, image operations, annotations, filters, accessibility, and customization patterns.
Ships in Syncfusion JavaScript UI Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A comprehensive skill for implementing the Syncfusion Image Editor control in TypeScript applications. This skill covers initialization, image loading/saving, annotation tools, image manipulation (zoom, crop, rotate, transform), filtering, fine-tuning, accessibility, and customization patterns.
The Syncfusion Image Editor is a powerful, feature-rich component for professional image editing in web applications. Key capabilities include:
📄 Read: references/getting-started.md
📄 Read: references/core-operations.md
📄 Read: references/image-manipulation.md
📄 Read: references/annotation-tools.md
📄 Read: references/selection-cropping.md
📄 Read: references/filters-effects.md
📄 Read: references/undo-redo.md
📄 Read: references/layer-management.md
📄 Read: references/accessibility.md
📄 Read: references/customization.md
📄 Read: references/localization.md
📄 Read: references/how-to-guide.md
📄 Read: references/advanced-patterns.md
📄 Read: references/api.md
npm install @syncfusion/ej2-image-editor
Security: After installing, run
npm auditor verify the package via Socket.dev to confirm the supply-chain integrity of@syncfusion/ej2-image-editorbefore deploying to production.
import { ImageEditor } from '@syncfusion/ej2-image-editor';
// Create a new instance
const imageEditor = new ImageEditor({
width: '550px',
height: '330px',
toolbar: ['Open', 'Save', 'ZoomIn', 'ZoomOut', 'Crop', 'Rotate', 'Flip']
});
// Append to a container
imageEditor.appendTo('#imageeditor');
// Open an image — replace with a validated, trusted URL; never use URLs from third-party responses directly
imageEditor.open('url');
<div id="imageeditor"></div>
@import "@syncfusion/ej2-image-editor/styles/material.css";
import { ImageEditor } from '@syncfusion/ej2-image-editor';
const imageEditor = new ImageEditor({
width: '600px',
height: '400px',
toolbar: ['Open', 'Save', 'ZoomIn', 'ZoomOut', 'Crop',
'Rotate', 'Flip', 'Undo', 'Redo', 'Reset'],
created: () => {
// Replace 'url' with a validated, trusted image URL or local asset path
imageEditor.open('url');
}
});
imageEditor.appendTo('#imageeditor');
const dimension = imageEditor.getImageDimension();
imageEditor.drawText(
dimension.x + 50,
dimension.y + 50,
'Annotation Text',
'Arial', // font family
30, // font size
false, // bold
false, // italic
'blue', // text color
false, // selected
null, // rotation
'#FFFFCC', // fill color
'black' // stroke color
);
import { ImageEditor, ImageFilterOption } from '@syncfusion/ej2-image-editor';
// Apply brightness adjustment
imageEditor.finetuneImage('brightness', 30);
// Apply blur filter
imageEditor.applyImageFilter(ImageFilterOption.Blur);
// Apply multiple fine-tune effects
imageEditor.finetuneImage('contrast', 20);
imageEditor.finetuneImage('saturation', 15);
const dimension = imageEditor.getImageDimension();
// Step 1: Programmatically select a crop region
imageEditor.select('Custom', dimension.x, dimension.y, 500, 300);
// Step 2: Apply the crop
imageEditor.crop();
import { Dialog } from '@syncfusion/ej2-popups';
const dialog = new Dialog({
width: '600px',
height: '450px',
isModal: true,
visible: false
});
dialog.appendTo('#dialog');
const imageEditor = new ImageEditor({
width: '100%',
height: '100%'
});
imageEditor.appendTo('#imageeditor');
document.getElementById('openBtn').onclick = () => {
dialog.show();
// Replace 'url' with a validated, trusted image URL
imageEditor.open('url');
};
| Method | Purpose |
|---|---|
open(fileOrUrl) | Load an image from URL, File, or ImageData — always validate or sanitize URL inputs against a trusted allowlist in production; never pass URLs derived from third-party content to prevent SSRF and indirect injection |
export(type?, fileName?, imageQuality?) | Export/download image in specified format |
crop() | Execute crop based on current selection |
select(type, startX?, startY?, width?, height?) | Set crop selection area |
rotate(degree) | Rotate image (positive = clockwise, negative = anti-clockwise) |
flip(direction) | Flip image horizontally or vertically |
zoom(zoomFactor, zoomPoint?) | Zoom in/out to a factor and optional point |
pan(value, x?, y?) | Enable/disable panning or pan to x/y |
resize(width, height, isAspectRatio?) | Resize image dimensions |
straightenImage(degree) | Straighten image by small rotation angle |
drawText(x?, y?, text?, ...) | Add text annotation |
drawRectangle(x?, y?, width?, height?, ...) | Draw rectangle annotation |
drawEllipse(x?, y?, radiusX?, radiusY?, ...) | Draw ellipse annotation |
drawArrow(startX?, startY?, endX?, endY?, ...) | Draw arrow annotation |
drawLine(startX?, startY?, endX?, endY?, ...) | Draw line annotation |
drawPath(pointColl, ...) | Draw path/freehand annotation |
drawImage(data, x?, y?, width?, height?, ...) | Draw image annotation |
drawFrame(frameType, ...) | Draw decorative frame around image |
drawRedact(type?, x?, y?, width?, height?, value?) | Draw blur/pixelate redaction |
freehandDraw(value) | Enable/disable freehand drawing mode |
applyImageFilter(filterOption) | Apply a predefined image filter |
finetuneImage(finetuneOption, value) | Apply fine-tuning adjustment |
getShapeSettings() | Get all drawn shapes |
getShapeSetting(id) | Get single shape by id |
selectShape(id) | Select a shape by id |
updateShape(setting, isSelected?) | Update an existing shape |
deleteShape(id) | Delete a shape by id |
cloneShape(shapeId) | Duplicate a shape by id |
bringToFront(shapeId) | Move shape to front |
sendToBack(shapeId) | Move shape to back |
bringForward(shapeId) | Move shape forward one position |
sendBackward(shapeId) | Move shape backward one position |
getRedacts() | Get all redaction shapes |
selectRedact(id) | Select a redaction by id |
updateRedact(setting, isSelected?) | Update a redaction |
deleteRedact(id) | Delete a redaction by id |
undo() | Undo last action |
redo() | Redo last undone action |
canUndo() | Returns true if undo is available |
canRedo() | Returns true if redo is available |
reset() | Reset image to original state |
clearImage() | Clear the loaded image |
clearSelection(resetCrop?) | Clear current selection |
getImageDimension() | Get current image x, y, width, height |
getImageData() | Get canvas image as ImageData |
apply() | Apply pending annotation drawings |
discard() | Discard unapplied annotation changes |
enableShapeDrawing(shapeType, isEnabled?) | Enable/disable shape drawing |
enableTextEditing() | Enter text-edit mode on a text annotation |
| Property | Type | Default | Purpose |
|---|---|---|---|
width | string | '100%' | Editor container width |
height | string | '100%' | Editor container height |
toolbar | (string | ItemModel)[] | null | Toolbar items; null = default toolbar, [] = no toolbar |
toolbarTemplate | string | Function | null | Fully custom toolbar template (overrides toolbar) |
quickAccessToolbarTemplate | string | Function | null | Template for quick access toolbar |
showQuickAccessToolbar | boolean | true | Show/hide quick access toolbar |
theme | string | Theme | Theme.Bootstrap5 | UI appearance theme |
allowUndoRedo | boolean | true | Enable undo/redo operations |
disabled | boolean | false | Disable the component |
cssClass | string | '' | Custom CSS classes for styling |
imageSmoothingEnabled | boolean | false | Enable high-quality image smoothing |
locale | string | '' | Locale override for localization |
zoomSettings | ZoomSettingsModel | null | Zoom configuration (min, max, factor, trigger, point) |
finetuneSettings | FinetuneSettingsModel | — | Fine-tune controls configuration (brightness, contrast, etc.) |
selectionSettings | SelectionSettingsModel | null | Selection/crop appearance (fill, stroke, showCircle) |
uploadSettings | UploadSettingsModel | — | File upload constraints (extensions, min/max size) |
fontFamily | FontFamilyModel[] | — | Custom font families in text annotation dropdown |
| Event | Args Interface | When Triggered |
|---|---|---|
created | Event | After component is rendered |
destroyed | Event | After component is destroyed |
fileOpened | OpenEventArgs | After an image is opened |
beforeSave | BeforeSaveEventArgs | Before image is saved/exported |
saved | SaveEventArgs | After image is saved/exported |
editComplete | EditCompleteEventArgs | After any edit action completes |
cropping | CropEventArgs | While crop is in progress |
rotating | RotateEventArgs | While rotation is in progress |
flipping | FlipEventArgs | While flip is in progress |
resizing | ResizeEventArgs | While resize is in progress |
zooming | ZoomEventArgs | While zoom is in progress |
panning | PanEventArgs | While pan is in progress |
selectionChanging | SelectionChangeEventArgs | While crop selection changes |
shapeChanging | ShapeChangeEventArgs | While a shape is being changed |
shapeChange | ShapeChangeEventArgs | After a shape change completes |
imageFiltering | ImageFilterEventArgs | When a filter is applied |
finetuneValueChanging | FinetuneEventArgs | While a fine-tune value changes |
frameChange | FrameChangeEventArgs | While a frame is applied |
toolbarCreated | ToolbarEventArgs | After toolbar is created |
toolbarUpdating | ToolbarEventArgs | While toolbar is refreshed |
toolbarItemClicked | ClickEventArgs | On toolbar item click |
quickAccessToolbarOpen | QuickAccessToolbarEventArgs | When quick access toolbar opens |
quickAccessToolbarItemClick | ClickEventArgs | On quick access toolbar item click |
click | ImageEditorClickEventArgs | On click inside editor canvas |
Professional Image Editing Suite - Full-featured editor with all tools Annotation Workflow - Markup and redaction for documents Quick Crop Tool - Simplified UI focused on cropping Social Media Tool - Preset aspect ratios for platforms Screenshot Markup - Quick annotation on screenshots Document Processing - Straighten, crop, and export scans Dialog Integration - Modal image editing workflows
implementing-rich-text-editor - For text document editingimplementing-buttons - For control customizationimplementing-dialogs - For modal workflow integrationreferences/accessibility.md (opens in a new tab)references/advanced-patterns.md (opens in a new tab)references/annotation-tools.md (opens in a new tab)references/api.md (opens in a new tab)references/core-operations.md (opens in a new tab)references/customization.md (opens in a new tab)references/filters-effects.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/how-to-guide.md (opens in a new tab)references/image-manipulation.md (opens in a new tab)references/layer-management.md (opens in a new tab)references/localization.md (opens in a new tab)references/selection-cropping.md (opens in a new tab)references/undo-redo.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-javascriptOther plugins' skills for the same job
67 skills in this plugin
/syncfusion-javascript-3d-chartCreate interactive 3D charts in Syncfusion TypeScript and JavaScript. Immediately use this skill when user needs to build 3D visualizations, render 3D column/bar charts, configure 3D rotation and depth, visualize data in three dimensions, customize 3D chart appearance, handle 3D interactions, or implement advanced 3D features. Works with TypeScript (webpack/module-based) and JavaScript (CDN/ES5)./syncfusion-javascript-accordionBuild collapsible navigation panels with the Syncfusion TypeScript Accordion component. Use this skill when implementing vertical accordion menus, expanding/collapsing content panels, multi-step wizards, data-driven panels with dynamic content, tabbed navigation alternatives, or nested hierarchical content structures. Covers initialization, expand modes, animations, icons, templates, styling, data binding, and advanced use cases like form wizards./syncfusion-javascript-accumulation-chartImplements Syncfusion JavaScript accumulation charts (Pie, Doughnut, Funnel, Pyramid) for proportional and percentage-based visualizations. Use when displaying categorical or proportional data. Covers legend and label configuration, interactivity, accessibility, and customization. Works with TypeScript (modules) and JavaScript (CDN/ES5).