BPT

BptImageEditor

A browser-based image editor inspired by desktop design tools. Features drawing tools (pencil, shapes, text), multi-layer support with blend modes, image adjustments (brightness/contrast, color balance, hue/saturation, invert, grayscale), undo/redo, crop, pan/zoom, and export to PNG, JPEG, WebP, or SVG. Supports image analysis (Sobel, Canny, Contour, Skeleton), web component mockups, and a BannerEditor mode for multi-format ad banner templates.

Image Editor Parameters

Enabled Tools (leave all unchecked = all enabled)
Current Configuration
📋 [+]
<BptImageEditor
    Width="100%"
    Height="80vh"
    OnExport="HandleExport"
    OnSave="HandleOnSave" />

@code {
@using Bpt.Components.Tools

// Fields
private string _width = "100%";
private string _height = "80vh";
private bool _enableLayers = true;
private bool _enableAdjustments = true;

// Event handlers
private void HandleExport(ImageEditorExportResult result)
{
    // result.Data, result.MimeType, result.Format, result.Width, result.Height
}

private void HandleOnSave(ImageEditorSaveResult result)
{
    // result.Data, result.FileName, result.FileId, result.IsNew, result.FileExtension
}
}
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.