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 (1)

Showing the top 1 NuGet packages that depend on Cropper.Blazor:

Package Downloads
Jarvis.Blazor.Mud

Biblioteca de componentes para MudBlazor.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.4 3,046 8/4/2024
1.3.2 12,305 3/30/2024
1.3.1 9,800 2/2/2024
1.3.0 6,251 11/18/2023
1.2.7 907 11/9/2023
1.2.6 2,392 10/8/2023
1.2.5 1,077 9/12/2023
1.2.4 858 7/24/2023
1.2.3 293 7/15/2023
1.2.2 531 6/23/2023
1.2.1 143 6/22/2023
1.2.0 4,341 5/1/2023
1.1.4 1,736 4/1/2023
1.1.3 884 2/27/2023
1.1.2 648 2/3/2023
1.1.1 594 11/24/2022
1.1.0 343 11/12/2022
1.0.2 493 11/3/2022
1.0.1 342 11/2/2022