We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The JavaScript Image Editor is a UI control for editing and enhancing images. With built-in support for cropping, rotating, flipping, zooming, and applying filters, this component makes it easy to fine-tune your edits to achieve the desired results. Additionally, the Angular Image Editor allows users to annotate images with shapes such as rectangles, ellipses, lines, and text, as well as freehand drawings.


Selection and cropping

The JavaScript Image Editor makes it easy to get a perfect crop every time using multiple selection options, including square, circle, and customizable aspect ratios. Easily drag and resize the selection region to precisely crop the desired area of the image.

Custom selection

Allows users to draw a custom selection rectangle on an image that can be repositioned by dragging and resizing it to get the desired selection.

JavaScript Image Editor custom selection

JavaScript Image Editor square selection

Square selection

Crop images into perfect square regions or maintain the aspect ratios of the images.

Circle selection

Crop images into perfect circular regions.

JavaScript Image Editor circle selection

JavaScript Image Editor ratio selection

Predefined aspect ratios

Customize selection regions for cropping your images according to predefined aspect ratios, including 4:3, 7:5, 16:9, and more.


Annotations

The Image Editor has multiple annotation tools, including text, freehand drawings, images, and shapes like rectangles, ellipses, and lines.

Text annotation

Users can add a text to an image using the text annotation tool, which allows them to add captions, labels, or other types of text-based information. The text annotation can be inserted anywhere on the image and customized by changing its color, font family, font size, and font styles such as bold and italic.

JavaScript Image Editor text shape

JavaScript Image Editor freehand drawing

Freehand drawing annotation

Add hand-drawn content to an image using a mouse or touch. With the freehand drawing annotation, users can customize the pen color and stroke width to suit their needs. Also, the freehand drawing annotation can be used in combination with other annotation tools, such as text and shapes, to create rich, annotated images.

Shapes annotation

Add shapes, such as rectangles, ellipses, and lines, to an image. With the shape annotation tool, customize the border color, fill color, and border width of the shapes.

JavaScript Image Editor shapes

JavaScript Image Editor Image annotation

Image annotation

This feature allows users to insert and display multiple images in addition to the main image they are editing. These image annotations can be used for different purposes, such as adding logos, watermarks, or decorative elements to the image.


Transform images

The Image Editor has built-in support for transforming images in various ways, including rotating, flipping, and zooming.

Rotate an image

Users can rotate images with annotations clockwise or counterclockwise.

JavaScript Image Editor rotate

JavaScript Image Editor flip

Flip an image

Flip images with annotations horizontally or vertically useful for creating a mirror image of the original image.


Undo and redo

The Image Editor provides an option to undo and redo changes made to an image. The undo option helps reverse the last action performed and the redo option reverses the last undo action performed with the Image Editor.


Zoom in/out images

Users can adjust the size of an image by zooming in or out to fine-tune their edits. The pan tool can also be used to reveal hidden areas of an image.

JavaScript Image Editor zoom

Pinch zoom

Pinch zoom is a technique for zooming in and out an image by using your fingers. On touch-enabled devices, you can use two fingers to pinch and zoom in or out.

Mouse wheel zoom

Mouse wheel zoom is a method of zooming in and out an image using your mouse. To zoom in, press the ctrl key and roll your mouse wheel forward, and to zoom out, roll your mouse wheel backward.

Keyboard zoom

To zoom in, hold down the Ctrl key and press the + button and to zoom out, hold down Ctrl and press the - button. This will adjust the size of the image on your screen making it either larger or smaller depending on your needs.


JavaScript Image Editor

Loading an image initially

Easily load an image into the JavaScript Image Editor using a base 64 string or URL, with support for PNG, JPEG, and SVG image formats.


Image Editor toolbar

Offers a wide range of tools for annotating, selecting, cropping, zooming, panning, rotating, flipping, filtering, and more, enabling users to fully edit and manipulate their images. Additionally, users can customize the toolbar by defining their own items or the entire toolbar.

JavaScript Image Editor Toolbar


JavaScript Image Editor Export

Exporting and saving images

Save the image as a base 64 string, or choose from PNG, JPEG, or SVG formats.


Quick access toolbar

This feature enhances the Image Editor control by showing a toolbar when you select annotations like rectangle, ellipse, line, arrow, text, and freehand draw. It offers quick-access options such as clone, delete, and edit text.

JavaScript Image Editor quick access toolbar


JavaScript Image Editor path

Path support

This feature enables manipulation of paths. Users can create, modify, and manipulate custom shapes within an image using paths. Paths are editable curves consisting of anchor points connected by control handles, allowing precise control over object boundaries.


Arrow support

This feature provides the ability to draw and customize arrows with precision. Arrows can be created, modified, and personalized according to user preferences. By highlighting objects or drawing attention to specific details, arrows effectively communicate the intended focal point.

JavaScript Image Editor Arrow


JavaScript Image Editor Frame

Frame support

Allows users to add decorative borders or frames around images. Frames can enhance the visual appeal of an image.


Resize support

Users can adjust the size and dimensions of an image to suit their needs, such as printing, web display, or other purposes, even if the description is lengthy.

JavaScript Image Editor Resize


Localization

Localize user interface strings of the JavaScript Image Editor control using the localization (l10n) library.

JavaScript Image Editor Localization


Touch-friendly editing

For a seamless experience on all devices, the JavaScript Image Editor includes a responsive mode that adapts the UI for mobile devices and offers a great user experience on phones, tablets, and desktops.

Developer-friendly APIs

With its extensive set of APIs, developers can control the appearance and behaviors of the Image Editor to suit their needs.

Built-in themes

The JavaScript Image Editor features built-in themes such as Bootstrap 5, Tailwind CSS, Fluent, high contrast, and more. Users can customize these themes or create their own using SASS variables or the Theme Studio application to achieve the desired look and feel.


Other supported frameworks

In addition to JavaScript, the Image Editor component is also available for the React, Vue, and Angular frameworks. You can access the component on these platforms using the links below.


JavaScript Image Editor Code Example

Easily get started with the JavaScript Image Editor using a few simple lines of HTML and TS code example as demonstrated below. Also explore our JavaScript Image Editor Example that shows you how to render and configure a Image Editor in JavaScript.

<div class="col-lg-12 control-section e-img-editor-sample">
<div id="imageeditor">
</div>
</div>
import { ImageEditor } from '@syncfusion/ej2-image-editor';

/**
* Default image editor sample
*/

// tslint:disable-next-line

let imageEditorObj: ImageEditor = new ImageEditor({
    height: '550px'
});
imageEditorObj.appendTo('#imageeditor');



80+ JAVASCRIPT UI CONTROLS

Frequently Asked Questions

  • Built-in support to crop, rotate, flip, zoom, and annotate.
  • Convert images to base64 and download images in JPEG, PNG, and SVG formats.
  • Flexible and completely customizable user interface.
  • One of the best JavaScript Image Editors in the market that offers a feature-rich UI to interact with the software.
  • Built-in support for access control.
  • Simple configuration and APIs.
  • Supports all modern browsers.
  • Mobile-touch friendly and responsive.
  • Expansive learning resources such as demos and documentation to let you get started quickly with JavaScript Image Editor.

You can find our JavaScript Image Editor demo, which demonstrates how to render and configure the Image Editor.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.

A good place to start would be our comprehensive getting started documentation.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version Download Free Trial

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon
Live Chat Icon For mobile