Token导航 LogoToken导航TokenDH.com
图像处理需要联网github未标认证来源可访问许可证需确认审计通过

syncfusion-blazor-image-editorSyncfusion Blazor 图像编辑器

Agent Skill

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

总安装

906

周安装

37

GitHub Stars

公开资料未说明

下载量

290
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

图像处理组件,支持裁剪、旋转、滤镜和图层混合操作。

  • 适合头像上传、商品图片美化或设计稿在线编辑场景。
  • 所有编辑操作在客户端完成,原始文件不上传到服务器。
  • 处理大图时应限制最大尺寸,防止浏览器内存溢出崩溃。
  • 版权素材使用时需确保授权范围覆盖最终用途。syncfusion-blazor-image-editor 属于图像处理类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing the Syncfusion Blazor Image Editor Component

The Syncfusion Blazor Image Editor is a powerful, feature-rich component for building image editing capabilities into your Blazor applications. It provides a complete toolkit for image manipulation, annotation, transformation, and export with an intuitive UI and extensive API.

Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation of NuGet packages (Syncfusion.Blazor.ImageEditor, Syncfusion.Blazor.Themes)
  • Blazor WebAssembly and Web App setup
  • Import namespaces and register services
  • Add stylesheet and script references
  • Render the basic component
  • NEW: Component properties (AllowUndoRedo, IsReadOnly, Enabled, Theme, CssClass, EnableImageSmoothing)

Core Operations

📄 Read: references/core-operations.md

  • Open/load images from file explorer
  • NEW: Complete OpenAsync signature with all 6 parameters (resetChanges, fillColor, width, height, isAspectRatio)
  • Save and export images (PNG, JPEG, SVG, WEBP formats)
  • Image quality settings for JPEG export
  • Undo and redo operations with keyboard shortcuts (CanUndoAsync, CanRedoAsync)
  • Reset image to original state
  • NEW: Apply and Discard changes, Clear image, Get image data methods

Image Transformations

📄 Read: references/image-transformations.md

  • Crop images with custom, circle, square, or ratio selections
  • Rotate left, right, and arbitrary angles
  • Flip horizontally and vertically
  • Straighten images with slider control
  • NEW: StraightenImageAsync method for precise angle adjustment (-45 to +45 degrees)
  • Resize images to specific dimensions
  • Pan images within the canvas

Annotations

📄 Read: references/annotations.md

  • Add text annotations with customization (font, size, color, bold, italic, underline, strikethrough)
  • NEW: Complete DrawTextAsync with underline and strikethrough parameters
  • Create multiline text annotations
  • Enable freehand drawing with stroke control
  • Draw shapes (rectangles, ellipses, arrows, paths, lines)
  • Insert image annotations (watermarks, logos, decorative elements)
  • NEW: Annotation z-order management (BringToFrontAsync, SendToBackAsync, BringForwardAsync, SendBackwardAsync)
  • NEW: Clone annotations with CloneShapeAsync
  • NEW: Enable/disable annotation modes (EnableActiveAnnotationAsync, DisableActiveAnnotationAsync)
  • NEW: Enable text editing mode
  • Delete and manage annotations using ShapeSettings and IDs

Annotation Styling

📄 Read: references/annotation-styling.md

  • Customize stroke width, color, and fill colors
  • Apply font styling for text annotations
  • Use ShapeChanging event for dynamic customization
  • Configure default stroke colors and styles
  • Work with ShapeSettings properties

Adjustments, Filters & Effects

📄 Read: references/adjustments-filters-effects.md

  • Apply fine-tuning adjustments (brightness, contrast, saturation, hue, blur, etc.)
  • Use slider controls for adjustment preview
  • Apply filters to images (predefined effects)
  • Add frame effects to images
  • Commit or preview changes before applying

Redaction

📄 Read: references/redaction.md NEW

  • Draw redactions with blur or pixelate effects
  • RedactType enum (Blur, Pixelate)
  • Control blur intensity and pixel size
  • Get, select, update, and delete redactions
  • RedactSettings class properties
  • Privacy protection and GDPR compliance use cases

Frames

📄 Read: references/frames.md NEW

  • Apply decorative frames to images
  • FrameType enum (Mat, Bevel, Line, Inset, Hook)
  • Customize frame colors, gradients, sizes
  • FrameLineStyle for Line frames (Solid, Dashed, Dotted)
  • Configure inset, offset, border radius, and line count
  • Professional photo presentation examples

Events Reference

📄 Read: references/events-reference.md NEW

  • Complete ImageEditorEvents documentation
  • Lifecycle events (Created, Destroyed)
  • File operation events (FileOpened, Saving)
  • Transformation events (Cropping/Cropped, Rotating/Rotated, Flipping/Flipped)
  • Shape events (ShapeChanging/ShapeChanged, resize/drag start/end)
  • Adjustment events (ImageFiltering/Filtered, FinetuneValueChanging/Changed, FrameChanging/Changed)
  • User interaction events (Zooming/Zoomed, OnPanStart/End, Clicked)
  • Toolbar events (ToolbarUpdating, ToolbarItemClicked, QuickAccessToolbarOpening)
  • History events (HistoryChanged)
  • Event arguments reference for all events

Toolbar Customization

📄 Read: references/toolbar-customization.md

  • Reference of built-in toolbar items (Open, Crop, Rotate, Annotation, Filters, etc.)
  • Add custom toolbar items and buttons
  • Show/hide entire toolbar or specific items
  • Enable/disable toolbar items conditionally
  • Customize contextual toolbars using ToolbarUpdating event
  • Create custom toolbar templates

User Interactions

📄 Read: references/user-interactions.md

  • Zoom methods (toolbar buttons, pinch gesture, mouse wheel, keyboard shortcuts)
  • Pan/move images across the canvas
  • Selection types for cropping
  • Get image dimensions and coordinates
  • Keyboard shortcuts reference (Ctrl+Z, Ctrl+Y, Ctrl+S, etc.)

Accessibility & Localization

📄 Read: references/accessibility-localization.md

  • WCAG compliance and accessibility features
  • Keyboard navigation support
  • Screen reader compatibility
  • ARIA attributes
  • Color contrast standards
  • Localization and RTL support

Setup Modes & Deployment

📄 Read: references/setup-modes.md

  • WebAssembly app setup (Visual Studio, VS Code,.NET CLI)
  • Web App setup with interactive render modes (Auto, WebAssembly, Server)
  • Theme configuration (Bootstrap5, Fluent2, Material3, Tailwind3)
  • Static Web Assets vs CDN references
  • Script references and dependencies

Quick Start Example

@using Syncfusion.Blazor.ImageEditor

<SfImageEditor @ref="ImageEditor" Height="500px" Width="100%">
    <ImageEditorEvents Created="OnCreated"></ImageEditorEvents>
</SfImageEditor>

@code {
    SfImageEditor ImageEditor;

    private async void OnCreated()
    {
        // Load an image when component is ready
        await ImageEditor.OpenAsync("path/to/image.png");
    }
}

Setup steps:

  1. Install NuGet packages: Syncfusion.Blazor.ImageEditor and Syncfusion.Blazor.Themes
  2. Add imports in _Imports.razor: @using Syncfusion.Blazor.ImageEditor
  3. Register service in Program.cs: builder.Services.AddSyncfusionBlazor();
  4. Add theme stylesheet to index.html or App.razor
  5. Add the component and load an image in the Created event

Key Capabilities

FeaturePurposeReference
Image LoadingOpen JPEG, PNG, JPG, WEBP, BMP filescore-operations.md
Text AnnotationsAdd labels, captions, watermarks with underline/strikethroughannotations.md
Shape AnnotationsDraw rectangles, ellipses, arrows, paths with z-order controlannotations.md
Freehand DrawingSketch and draw directly on imagesannotations.md
RedactionHide sensitive info with blur/pixelate for privacy complianceredaction.md
FramesApply decorative borders (Mat, Bevel, Line, Inset, Hook)frames.md
Crop & TransformCrop with multiple selection types, rotate, flip, straightenimage-transformations.md
Filters & EffectsApply fine-tuning and predefined filtersadjustments-filters-effects.md
Zoom & PanMultiple zoom methods and image panninguser-interactions.md
ExportSave as PNG, JPEG, SVG, WEBP with quality controlcore-operations.md
Undo/RedoFull history of operationscore-operations.md
Events30+ lifecycle, transformation, shape, and interaction eventsevents-reference.md
ToolbarBuilt-in or custom toolbar with eventstoolbar-customization.md
AccessibilityKeyboard navigation, screen readers, RTL, localizationaccessibility-localization.md

Common Patterns

Pattern 1: Load Image and Enable Annotations

<SfImageEditor @ref="ImageEditor" Height="500px">
    <ImageEditorEvents Created="OnCreated"></ImageEditorEvents>
</SfImageEditor>

@code {
    SfImageEditor ImageEditor;
    private string ImageUrl = "YOUR_IMAGE_URL";

    private async void OnCreated()
    {
        await ImageEditor.OpenAsync(ImageUrl);
    }

    private async Task AddTextAnnotation()
    {
        ImageDimension dim = await ImageEditor.GetImageDimensionAsync();
        await ImageEditor.DrawTextAsync(dim.X.Value, dim.Y.Value, "Important", "Arial", 24);
    }
}

Pattern 2: Custom Toolbar

<SfImageEditor @ref="ImageEditor" Toolbar="@CustomToolbar" Height="500px">
    <ImageEditorEvents Created="OnCreated" ToolbarItemClicked="OnToolbarClick"></ImageEditorEvents>
</SfImageEditor>

@code {
    private List<ImageEditorToolbarItemModel> CustomToolbar = new()
    {
        new ImageEditorToolbarItemModel { Name = "Open" },
        new ImageEditorToolbarItemModel { Name = "Crop" },
        new ImageEditorToolbarItemModel { Name = "Annotation" },
        new ImageEditorToolbarItemModel { Name = "Save" }
    };
}

Pattern 3: Export Image with Quality Control

private async Task ExportImage()
{
    // Export as PNG (lossless, default)
    await ImageEditor.ExportAsync("edited-image.png");

    // Export as JPEG with quality control (0.0 to 1.0)
    await ImageEditor.ExportAsync("photo.jpg", ImageEditorFileType.JPEG, 0.85);

    // Export as WEBP (modern format)
    await ImageEditor.ExportAsync("image.webp", ImageEditorFileType.WEBP);

    // Export as SVG (vector format)
    await ImageEditor.ExportAsync("graphic.svg", ImageEditorFileType.SVG);

    // Or press Ctrl+S to open export dialog with format selection
}

Pattern 4: Privacy Redaction Workflow

<SfImageEditor @ref="ImageEditor" Height="500px">
    <ImageEditorEvents Created="OnCreated"></ImageEditorEvents>
</SfImageEditor>

@code {
    SfImageEditor ImageEditor;

    private async Task RedactSensitiveInfo()
    {
        // Draw blur redaction over sensitive areas
        await ImageEditor.DrawRedactAsync(
            RedactType.Blur,
            startX: 100, startY: 100,
            width: 200, height: 50,
            value: 30  // Blur intensity
        );

        // Draw pixelate redaction over other areas
        await ImageEditor.DrawRedactAsync(
            RedactType.Pixelate,
            startX: 400, startY: 200,
            width: 200, height: 50,
            value: 20  // Pixel size
        );

        // Export redacted image
        await ImageEditor.ExportAsync("redacted-document.png");
    }
}

Pattern 5: Professional Photo Framing

<SfImageEditor @ref="ImageEditor" Height="500px">
    <ImageEditorEvents Created="OnCreated"></ImageEditorEvents>
</SfImageEditor>

@code {
    SfImageEditor ImageEditor;

    private async Task ApplyPhotoFrame()
    {
        // Load portrait image
        await ImageEditor.OpenAsync("portrait.jpg");

        // Apply classic mat frame with gradient
        await ImageEditor.DrawFrameAsync(
            FrameType.Mat,
            color: "#FFFFFF",
            gradientColor: "#F5F5DC",
            size: 50,
            inset: 20
        );

        // Export framed image
        await ImageEditor.ExportAsync("framed-portrait.png");
    }
}

Related Skills


Note: All code examples use Blazor component syntax. Refer to the Getting Started guide for setup instructions specific to your Blazor hosting model (WebAssembly, Web App, Server).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.04%
按下载量换算99

Claude

33.5%
按下载量换算97

Cursor

17.45%
按下载量换算51

Gemini CLI

10.71%
按下载量换算31

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills