Token导航 LogoToken导航

Agent Skill · 图像处理

syncfusion-aspnetcore-image-editor(Synfusion aspnetcore 图像编辑器)

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

syncfusion-aspnetcore-image-editor 是图像处理类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有提醒项,按安装量在图像处理类的 1,562 个 Skill 里排第 1,514。

总安装 214周安装 9GitHub Stars 公开资料未说明下载 75核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-aspnetcore-image-editor(Synfusion aspnetcore 图像编辑器)
来源仓库:https://github.com/syncfusion/aspnetcore-ui-components-skills
仓库路径:skills/syncfusion-aspnetcore-image-editor
安装命令:
npx skills add https://github.com/syncfusion/aspnetcore-ui-components-skills --skill syncfusion-aspnetcore-image-editor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/aspnetcore-ui-components-skills --skill syncfusion-aspnetcore-image-editor

这个 Skill 是做什么的

图像处理类 Skill 处理生成、裁剪、压缩和批量转换图片的任务。

同步融合 ASP.NET Core 图像编辑器组件,支持图片裁剪旋转等基础处理。适用于用户头像上传、产品图片美化、文档插图管理等视觉场景。通过 GitHub 安装并集成图像处理管线,支持多种格式转换。使用前需确认图片版权归属,禁止处理受版权保护素材。大尺寸图像处理时应监控内存使用,防止服务崩溃。

来源仓库内路径:skills/syncfusion-aspnetcore-image-editor

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/syncfusion/aspnetcore-ui-components-skills --s…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

syncfusion-aspnetcore-image-editor 怎么安装?

在终端执行 npx skills add https://github.com/syncfusion/aspnetcore-ui-components-skills --skill syncf…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

syncfusion-aspnetcore-image-editor 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

syncfusion-aspnetcore-image-editor 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

syncfusion-aspnetcore-image-editor 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

syncfusion-aspnetcore-image-editor 用的人多吗?

公开数据是累计安装 214 次,近一周安装 9 次,下载 75 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

syncfusion-aspnetcore-image-editor 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理图像处理类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

图像处理类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
ai-image-generation

AI 图像生成 · Codex、Claude

4,365,552382调用外部服务未明确有提醒
openai-image-gen

OpenAI 图像生成 · OpenClaw

1,906,88432需要联网MIT-0有提醒
image

图像 · OpenClaw

525,99926需要联网MIT-0通过
baoyu-cover-image

宝玉封面图 · Codex、Claude

474,24016,779只读MIT有提醒
baoyu-image-gen

宝玉图像生成器 · Codex、Claude

468,00716,778接触敏感数据MIT通过
syncfusion-aspnetcore-image-editor

Synfusion aspnetcore 图像编辑器 · 本页

214—操作浏览器未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Implementing Syncfusion ASP.NET Core Image Editor

The Syncfusion EJ2 Image Editor provides a rich, interactive image editing experience directly in the browser. It supports opening, editing, and saving images in PNG, JPEG, SVG, WEBP, and BMP formats. All actions—including annotations, transformations, and filters—are tracked in a 16-step undo/redo history.

Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • NuGet installation and setup
  • Tag helper registration in _ViewImports.cshtml
  • Adding stylesheet and script references — local assets (recommended) or CDN with SRI hashes
  • Rendering the basic <ejs-imageeditor> tag
  • Container CSS for proper sizing

Opening & Saving Images

📄 Read: references/open-save.md

  • open() method — local file, base64, Blob, URL, File Uploader, File Manager
  • Opening with custom width/height via imageSettings
  • export() — save with format and quality options
  • getImageData() — retrieve image as base64 / Blob
  • clearImage() and reset() patterns
  • Rendering Image Editor inside a Dialog
  • Adding watermarks automatically on open
  • FileOpened, Saving, and BeforeSave events

Transformations (Rotate, Flip, Zoom, Pan)

📄 Read: references/transform.md

  • rotate() — clockwise/anti-clockwise in degrees
  • flip() — Horizontal or Vertical
  • straightenImage() — ±45° range for alignment
  • zoom() — magnify with optional zoom point
  • ZoomSettings — minZoomFactor, maxZoomFactor
  • Panning behavior when image exceeds canvas
  • Rotating, Flipping, Zooming, Panning events

Selection & Cropping

📄 Read: references/selection-cropping.md

  • select() — custom, square, circle, aspect ratio types
  • crop() — execute crop on selected region
  • Maintaining original image size during cropping (preventScaling)
  • SelectionChanging event — programmatic selection adjustments
  • Locking selection area to prevent resizing
  • Custom ratio cropping via public methods

Annotations

📄 Read: references/annotation.md

  • drawText() — text with font, size, bold, italic, underline, strikethrough, fill, stroke
  • Multiline text using \n in text content
  • drawRectangle(), drawEllipse(), drawLine(), drawArrow(), drawPath()
  • drawImage() — overlay images, logos, watermarks
  • freehandDraw() — enable/disable freehand drawing mode
  • deleteShape() / getShapeSetting() — manage annotations
  • FontFamily property — add custom font families
  • Z-order management (bring forward, send backward, bring to front, send to back)
  • ShapeChanging / ShapeChange events

Fine-Tune & Filters

📄 Read: references/finetune-filter.md

  • finetuneImage() — brightness, contrast, saturation, hue, exposure, blur, opacity
  • FinetuneSettings property for configuring available fine-tune options
  • applyImageFilter() — cold, warm, chrome, sepia, grayscale, invert
  • FinetuneValueChanging event
  • ImageFiltering event with cancel support

Resize & Redact

📄 Read: references/resize-redact.md

  • resize() — width, height, aspect ratio control
  • Resizing event with before/after dimensions
  • drawRedact() — blur or pixelate sensitive areas
  • selectRedact(), deleteRedact(), updateRedact(), getRedacts()

Toolbar & Quick Access Toolbar

📄 Read: references/toolbar-quickaccess.md

  • Built-in toolbar items list (Open, Undo, Redo, Crop, Annotate, Filter, Save, etc.)
  • Toolbar property — add, remove, or hide toolbar items
  • ToolbarTemplate — replace entire toolbar with custom HTML
  • ToolbarUpdating event — customize contextual toolbars
  • ShowQuickAccessToolbar — toggle quick access toolbar
  • QuickAccessToolbarOpen event — add custom items to quick access toolbar
  • ToolbarCreated / ToolbarItemClicked events

Frames, Localization, Accessibility & Undo-Redo

📄 Read: references/frames-localization-accessibility.md

  • drawFrame() — mat, bevel, line, hook, inset frame types
  • UploadSettings — restrict file extensions and file sizes
  • Locale property — internationalization with translation objects
  • WCAG 2.2 AA compliance, keyboard shortcuts
  • undo() / redo() methods and AllowUndoRedo property (16-step history)

API Reference

📄 Read: references/api.md

  • All properties: AllowUndoRedo, CssClass, Disabled, Height, Width, Theme, Locale
  • Complex settings objects: ZoomSettings, FinetuneSettings, SelectionSettings, UploadSettings, FontFamily
  • All events with their argument types
  • Client-side JavaScript methods

Quick Start

1. Install NuGet Package

Install-Package Syncfusion.EJ2.AspNet.Core

2. Register Tag Helper (~/Pages/_ViewImports.cshtml)

@addTagHelper *, Syncfusion.EJ2

3. Add CSS & Script (~/Pages/Shared/_Layout.cshtml)

Local Assets Only (Required for Security Compliance)

Download the Syncfusion EJ2 distribution from the official release and host locally:

<head>
     <!-- CSS hosted locally in wwwroot/lib/ej2/ -->
     <link rel="stylesheet" href="/lib/ej2/fluent2.css" />
</head>
<body>
    ...
    <!-- JavaScript hosted locally in wwwroot/lib/ej2/ -->
    <!-- IMPORTANT: Do NOT load from external CDN — use local assets only -->
    <script src="/lib/ej2/ej2.min.js"></script>
    <ejs-scripts></ejs-scripts>
</body>
⚠️ Security Policy: External CDN loading is not permitted. All Syncfusion runtime assets must be hosted locally in your application.

4. Render Image Editor (~/Pages/Index.cshtml)

<div class="e-img-editor-sample">
    <ejs-imageeditor id="image-editor"></ejs-imageeditor>
</div>

<style>
    .e-img-editor-sample {
        height: 80vh;
        width: 100%;
    }
</style>

Common Patterns

Open an Image Programmatically

Option A: Local Image File (Recommended)

<ejs-imageeditor id="image-editor" created="onCreated"></ejs-imageeditor>

<script>
function onCreated() {
    var imageEditor = document.getElementById('image-editor').ej2_instances[0];
    // Reference local image in wwwroot/images/
    imageEditor.open('/images/nature.png');
}
</script>

Option B: User-Uploaded Image (Base64)

<ejs-uploader id="fileUpload" selected="onFileSelected"></ejs-uploader>
<ejs-imageeditor id="image-editor"></ejs-imageeditor>

<script>
function onFileSelected(args) {
    if (args.filesData.length > 0) {
        var reader = new FileReader();
        reader.onload = function() {
            // Pass base64-encoded local data (no external fetch)
            var imageEditor = document.getElementById('image-editor').ej2_instances[0];
            imageEditor.open(reader.result);
        };
        reader.readAsDataURL(args.filesData[0].rawFile);
    }
}
</script>

Export / Save Image

<button onclick="saveImage()">Save</button>
<ejs-imageeditor id="image-editor" created="onCreated"></ejs-imageeditor>

<script>
function onCreated() {
    var imageEditor = document.getElementById('image-editor').ej2_instances[0];
    // Load local image
    imageEditor.open('/images/nature.png');
}

function saveImage() {
    var imageEditor = document.getElementById('image-editor').ej2_instances[0];
    imageEditor.export('PNG');  // saves as PNG to local device
}
</script>

Handle FileOpened Event

<ejs-imageeditor id="image-editor" fileOpened="onFileOpened"></ejs-imageeditor>

<script>
function onFileOpened(args) {
    console.log('Opened file:', args.fileName, 'Type:', args.fileType);
}
</script>

Restrict Upload File Types

<ejs-imageeditor id="image-editor">
    <e-imageeditor-uploadsettings allowedExtensions=".jpg, .png, .webp"
                                  minFileSize="10000"
                                  maxFileSize="5000000">
    </e-imageeditor-uploadsettings>
</ejs-imageeditor>

Key Properties at a Glance

PropertyTypeDefaultPurpose
heightstring"100%"Editor height
widthstring"100%"Editor width
allowUndoRedobooltrueEnable undo/redo (16 steps)
disabledboolfalseDisable the control
showQuickAccessToolbarbooltrueShow annotation quick access toolbar
themeThemeBootstrap5Shape selection appearance theme
localestring"en-US"Localization culture
imageSmoothingEnabledboolfalseHigh-quality rendering smoothing
toolbarobjectdefault itemsToolbar items array
toolbarTemplatestringnullCustom toolbar template selector

Security & Trust Boundary

⚠️ CRITICAL: Never Load External URLs

DO NOT use imageEditor.open() or drawImage() with external/untrusted URLs:

// ❌ FORBIDDEN — Loads remote content from untrusted sources
imageEditor.open('https://untrusted-external-cdn.com/bridge.png');
imageEditor.open('https://example.com/user-uploads/image.jpg');  // Arbitrary external URL
imageEditor.drawImage('https://external-site.com/logo.png', 10, 10, 100, 50);

// ✅ SAFE — Use only local/trusted sources
imageEditor.open('/images/local-image.png');  // Local file in wwwroot
imageEditor.open(base64DataUrl);              // Base64 encoded (local data)
imageEditor.open(blobUrl);                    // Blob URL from File input
imageEditor.drawImage('/images/company-logo.png', 10, 10, 100, 50);  // Local asset

External URLs create supply-chain and injection risks that cannot be fully mitigated.


Runtime & Content Security

CRITICAL POLICY: This skill requires all runtime code and content to be sourced locally.

Requirement 1: Local Runtime Assets Only (W012)

The Syncfusion EJ2 runtime library MUST be hosted locally:

  • ✅ Download from official Syncfusion release
  • ✅ Host in wwwroot/lib/ej2/
  • ✅ Reference as /lib/ej2/ej2.min.js (local path only)
  • ❌ DO NOT load from any external CDN or remote URL
**Requirement 2: Local Content Only (W011)
Content Security Practices
1. Load Images as Base64 or Blob (Recommended)

Load user-uploaded files locally and pass as base64 or Blob to avoid any external fetches:

// ✅ SAFE: Load user file locally as base64
function selected(args) {
    if (args.filesData.length > 0) {
        var reader = new FileReader();
        reader.onload = function() {
            imageEditor.open(reader.result);  // Base64 data, not URL
        };
        reader.readAsDataURL(args.filesData[0].rawFile);
    }
}
2. Server-Side Image Validation

Validate all image uploads server-side before processing:

// ASP.NET Core controller
[HttpPost]
public IActionResult ValidateImage(IFormFile file)
{
    // Whitelist allowed MIME types only
    var allowedTypes = new[] { "image/png", "image/jpeg", "image/webp", "image/bmp" };
    if (!allowedTypes.Contains(file.ContentType))
        return BadRequest("Invalid image format");

    // Enforce file size limits (e.g., max 5MB)
    if (file.Length > 5 * 1024 * 1024)
        return BadRequest("File too large");

    return Ok();
}
3. Local Assets Only for Overlays

When using drawImage() for logos or watermarks, reference only local assets:

// ✅ SAFE: Local asset in wwwroot/images/
imageEditor.drawImage('/images/company-logo.png', 10, 10, 100, 50);

// ❌ FORBIDDEN: External URLs not permitted
// imageEditor.drawImage('https://external-site.com/logo.png', ...);
4. Implement Content Security Policy

Restrict all content sources to local/trusted origins:

<!-- Enforce local-only content loading -->
<meta http-equiv="Content-Security-Policy"
      content="script-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline';">

Trust Assessment

FactorAssessment
VendorSyncfusion Inc. — established enterprise component vendor, widely adopted
ProtocolAll CDN resources served over HTTPS with certificate pinning possible
TransparencyRegular security updates and CVE disclosures via Syncfusion support channels
MonitoringCheck Syncfusion security bulletins and NuGet package advisory database
Undo/Redo16-step history is local-only; no cloud sync or external telemetry

Best Practices

✅ Runtime Asset Security

  • Host all Syncfusion runtime assets locally in wwwroot/lib/ej2/
  • Never load from external CDN or remote servers
  • Update to latest stable version regularly
  • Monitor Syncfusion security advisories
  • Verify package integrity using NuGet package signatures

✅ Content & Image Security

  • Load all images as base64 or Blob (local data only)
  • Validate file type, size, and content server-side
  • Never trust user-supplied URLs directly
  • Reference only internal assets for overlays (logos, watermarks)
  • Use wwwroot/images/ for all application images

✅ Compliance & Monitoring

  • Implement strict CSP: script-src 'self'; img-src 'self' data:
  • Perform security scans during CI/CD pipeline
  • Audit dependencies with snyk, dotnet list package --vulnerable, etc.
  • Maintain inventory of all local hosted assets
  • Test security updates in staging before production deployment

Related Skills

平台分布

Codex

33.96%
按下载量换算25

Claude

28.06%
按下载量换算21

Cursor

18.53%
按下载量换算14

Gemini CLI

9.63%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills