loading
A full image editor component, included

Images for Blazor, processed in C#

Load, crop, resize, adjust, annotate, redact and export images entirely on the user's device, from strongly typed C#. No server round trips, no base64, no JavaScript image library.

dotnet add package Bit.Bmage.Editor
Quick start

One pipeline, start to finish

That runs in the browser. The original file never leaves it, the phone's rotation is applied, the GPS coordinates are stripped, and the result is a WebP that fits the size budget you asked for.

C#
var result = await processor.ProcessAsync(    uploadedFile,    ImagePipeline.Create()        .AutoOrient()        .Cover(512, 512)        .Sharpen(0.3f),    new ImageExportOptions    {        Format      = ImageFormat.WebP,        Quality     = 0.82,        Metadata    = MetadataPolicy.StripSensitive,        MaxFileSize = 120 * 1024,    });
Why Bmage

The engine is C#, the browser does what only it can

The resampler, the rasteriser, the colour pipeline, the TrueType text engine and the PNG, JPEG, BMP and GIF codecs are implemented in the library. The browser is used for what only it can do: WebP and AVIF, the clipboard, the camera, and drawing pixels on screen.

.NET 8+ Targets .NET 8, 9 and 10
0 JavaScript image libraries
9 Worked workflows, with source
MIT Free and open source

Everything in the box:

CropSmart cropResizeRotateAdjustmentsFiltersAuto levelsAnnotationsRedactionTextDrawingUndo and redoWebPAVIFSize budgetsEXIFMetadata policiesBatchCapability probingHeadless
Documentation

Explore every page

16 pages, in the order they are meant to be read. Press Ctrl K anywhere on the site to jump straight to one.

Start processing

Bmage is part of bit platform, free and open source. The whole engine lives in the repository, so you can read it, file an issue against it, or send a pull request.

An unhandled error has occurred. Reload 🗙