Syncfusion.AspNetCore.ImageEditor
34.2.8
Prefix Reserved
dotnet add package Syncfusion.AspNetCore.ImageEditor --version 34.2.8
NuGet\Install-Package Syncfusion.AspNetCore.ImageEditor -Version 34.2.8
<PackageReference Include="Syncfusion.AspNetCore.ImageEditor" Version="34.2.8" />
<PackageVersion Include="Syncfusion.AspNetCore.ImageEditor" Version="34.2.8" />
<PackageReference Include="Syncfusion.AspNetCore.ImageEditor" />
paket add Syncfusion.AspNetCore.ImageEditor --version 34.2.8
#r "nuget: Syncfusion.AspNetCore.ImageEditor, 34.2.8"
#:package Syncfusion.AspNetCore.ImageEditor@34.2.8
#addin nuget:?package=Syncfusion.AspNetCore.ImageEditor&version=34.2.8
#tool nuget:?package=Syncfusion.AspNetCore.ImageEditor&version=34.2.8
Syncfusion ASP.NET Core ImageEditor Component
A component providing a rich set of tools to edit, annotate, and transform images directly in the browser without requiring server-side processing. Includes cropping, drawing, text annotations, filters, and more.
Using this package with an AI coding agent
Before generating Syncfusion code, ask your AI coding agent to run the Syncfusion setup using the following prompt:
Set up this project for Syncfusion before generating code. Fetch and follow the official instructions at https://ai.syncfusion.com, then report the detected platform, installed skill pack, MCP status, and any required licensing action.The setup detects your project's platform and loads the appropriate Syncfusion skill pack. No Syncfusion account or MCP key is required to install or read Syncfusion agent skills.
Platform reference: https://ai.syncfusion.com/aspnet-core/llms.txt
Key Features
- Crop, rotate, flip, zoom, and resize images
- Draw shapes: rectangles, ellipses, arrows, paths, and freehand
- Add text annotations with font and color customization
- Finetune adjustments: brightness, contrast, hue, saturation, opacity, and sharpness
- Supports image filters: default, chrome, cold, warm, grayscale, sepia, etc.
- Undo/redo and reset functionality
- Save/export edited image as PNG, JPEG, or SVG
Common Setup
All Syncfusion ASP.NET Core controls share the same foundational setup steps:
1. Install NuGet Package
Install the ImageEditor package and the themes package, which provides the stylesheets referenced below:
Install-Package Syncfusion.AspNetCore.ImageEditor
Install-Package Syncfusion.AspNetCore.Themes
2. Register Tag Helper
Add the following to ~/Pages/_ViewImports.cshtml or ~/Views/_ViewImports.cshtml:
@addTagHelper *, Syncfusion.AspNetCore.Base
@addTagHelper *, Syncfusion.AspNetCore.ImageEditor
3. Add Stylesheet & Script References
In your layout file (~/Pages/Shared/_Layout.cshtml):
<head>
<link rel="stylesheet" href="_content/Syncfusion.AspNetCore.Themes/styles/fluent2.css" />
<script src="_content/Syncfusion.AspNetCore.ImageEditor/scripts/sf-image-editor.min.js"></script>
</head>
4. Register Script Manager
In your layout file (~/Pages/Shared/_Layout.cshtml), At the end of your <body> tag:
<ejs-scripts></ejs-scripts>
Quick Start
Step 1: Create a PageModel
Create ~/Pages/Index.cshtml.cs:
using Microsoft.AspNetCore.Mvc.RazorPages;
public class IndexModel : PageModel
{
public string ImageUrl { get; set; } = "/images/sample.jpg";
public void OnGet()
{
// Initialize image editor
}
}
Step 2: Create the View
Create ~/Pages/Index.cshtml:
@page
@model IndexModel
<div class="container-fluid mt-5">
<h2>Image Editor Demo</h2>
<ejs-imageeditor id="imageeditor" toolbar="@(new List<string> { "Crop", "Rotate", "Flip", "Straighten", "Resize", "Undo", "Redo" })" created="onCreated">
</ejs-imageeditor>
</div>
<script>
function onCreated() {
const imageEditor = document.getElementById('imageeditor').ej2_instances[0];
imageEditor.open("/images/sample.jpg");
}
</script>
Step 3: Run the Application
Press Ctrl+F5 to run the application in your browser.
Documentation
Add Stylesheet and Script References
To use the Syncfusion ASP.NET Core Image Editor component, add the following references to your layout file:
For ASP.NET Core (Razor Pages) App:
Add these to Pages/Shared/_Layout.cshtml.
For ASP.NET Core (MVC) App:
Add these to Views/Shared/_Layout.cshtml.
<head>
<link rel="stylesheet" href="_content/Syncfusion.AspNetCore.Themes/styles/fluent2.css" />
<script src="_content/Syncfusion.AspNetCore.ImageEditor/scripts/sf-image-editor.min.js"></script>
</head>
Support
License
This is a commercial product and requires a paid license for possession or use. Review the Syncfusion EULA
About Syncfusion
Syncfusion provides 1600+ UI components and frameworks for web, mobile, and desktop development across multiple platforms:
Web: Blazor | ASP.NET Core | ASP.NET MVC | JavaScript | Angular | React | Vue
Desktop: WinForms | WPF | WinUI
Learn more at www.syncfusion.com
sales@syncfusion.com | Toll Free: 1-888-9-DOTNET
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Newtonsoft.Json (>= 13.0.4)
- Syncfusion.AspNetCore.Base (>= 34.2.8)
- Syncfusion.AspNetCore.Inputs (>= 34.2.8)
- Syncfusion.AspNetCore.Lists (>= 34.2.8)
- Syncfusion.AspNetCore.Navigations (>= 34.2.8)
- Syncfusion.AspNetCore.Popups (>= 34.2.8)
- Syncfusion.AspNetCore.SplitButtons (>= 34.2.8)
- Syncfusion.Licensing (>= 34.2.8)
-
net8.0
- Newtonsoft.Json (>= 13.0.4)
- Syncfusion.AspNetCore.Base (>= 34.2.8)
- Syncfusion.AspNetCore.Inputs (>= 34.2.8)
- Syncfusion.AspNetCore.Lists (>= 34.2.8)
- Syncfusion.AspNetCore.Navigations (>= 34.2.8)
- Syncfusion.AspNetCore.Popups (>= 34.2.8)
- Syncfusion.AspNetCore.SplitButtons (>= 34.2.8)
- Syncfusion.Licensing (>= 34.2.8)
-
net9.0
- Newtonsoft.Json (>= 13.0.4)
- Syncfusion.AspNetCore.Base (>= 34.2.8)
- Syncfusion.AspNetCore.Inputs (>= 34.2.8)
- Syncfusion.AspNetCore.Lists (>= 34.2.8)
- Syncfusion.AspNetCore.Navigations (>= 34.2.8)
- Syncfusion.AspNetCore.Popups (>= 34.2.8)
- Syncfusion.AspNetCore.SplitButtons (>= 34.2.8)
- Syncfusion.Licensing (>= 34.2.8)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Syncfusion.AspNetCore.ImageEditor:
| Package | Downloads |
|---|---|
|
Syncfusion.AspNetCore.FormRenderer
Syncfusion® ASP.NET Core FormRenderer package provides a comprehensive suite of FormRenderer control. This control offer extensive customization options such as RTL support, accessibility compliance, and theme support. They are designed to deliver a consistent and interactive user interface across all modern browsers in ASP.NET Core applications. |
GitHub repositories
This package is not used by any popular GitHub repositories.