Cropper.Blazor 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Cropper.Blazor --version 1.1.0
NuGet\Install-Package Cropper.Blazor -Version 1.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cropper.Blazor" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cropper.Blazor --version 1.1.0
#r "nuget: Cropper.Blazor, 1.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Cropper.Blazor as a Cake Addin
#addin nuget:?package=Cropper.Blazor&version=1.1.0

// Install Cropper.Blazor as a Cake Tool
#tool nuget:?package=Cropper.Blazor&version=1.1.0

Cropper.Blazor

Cropper.Blazor is a component element that wraps around Cropper.js

Build and run test Deploy to GitHub Pages coverage GitHub GitHub

Demo

Prerequisites

Installation

dotnet add package Cropper.Blazor

Usage

Import Custom Element:

@using Cropper.Blazor.Components

Add the following to index.html (client-side) or _Host.cshtml (server-side) in the head

<link href="_content/Cropper.Blazor/cropper.css" rel="stylesheet" />

Add the following to index.html or _Host.cshtml in the body

<script src="_content/Cropper.Blazor/cropper.js"></script>

Add the following to the relevant sections of Program.cs

using Cropper.Blazor.Extensions;
builder.Services.AddCropper();

And then use it in Razor file (for example):

<CropperComponent
  Class="cropper-demo"
  ErrorLoadImageClass="cropper-error-load"
  @ref="cropperComponent"
  OnCropStartEvent="OnCropStartEvent"
  OnCropEndEvent="OnCropEndEvent"
  OnCropEvent="OnCropEvent"
  OnZoomEvent="OnZoomEvent"
  OnCropMoveEvent="OnCropMoveEvent"
  OnReadyEvent="OnCropReadyEvent"
  OnLoadImageEvent="OnLoadImageEvent"
  Src="@Src"
  Loading="lazy"
  ErrorLoadImageSrc="@ErrorLoadImageSrc"
  IsErrorLoadImage="@IsErrorLoadImage"
  OnErrorLoadImageEvent="OnErrorLoadImageEvent"
  Options="options">
</CropperComponent>

And then use it in *.razor.cs file

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.2 687 3/30/2024
1.3.1 3,524 2/2/2024
1.3.0 4,526 11/18/2023
1.2.7 311 11/9/2023
1.2.6 1,262 10/8/2023
1.2.5 1,028 9/12/2023
1.2.4 824 7/24/2023
1.2.3 246 7/15/2023
1.2.2 490 6/23/2023
1.2.1 113 6/22/2023
1.2.0 3,580 5/1/2023
1.1.4 1,678 4/1/2023
1.1.3 752 2/27/2023
1.1.2 617 2/3/2023
1.1.1 560 11/24/2022
1.1.0 313 11/12/2022
1.0.2 429 11/3/2022
1.0.1 314 11/2/2022