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 8,055 8/4/2024
1.3.2 14,576 3/30/2024
1.3.1 10,591 2/2/2024
1.3.0 6,406 11/18/2023
1.2.7 1,063 11/9/2023
1.2.6 2,858 10/8/2023
1.2.5 1,082 9/12/2023
1.2.4 859 7/24/2023
1.2.3 319 7/15/2023
1.2.2 534 6/23/2023
1.2.1 144 6/22/2023
1.2.0 4,354 5/1/2023
1.1.4 1,739 4/1/2023
1.1.3 885 2/27/2023
1.1.2 649 2/3/2023
1.1.1 597 11/24/2022
1.1.0 344 11/12/2022
1.0.2 500 11/3/2022
1.0.1 345 11/2/2022