Skip to content

Releases: Json-exe/Blazor.CropperWrapper

V0.5.0

12 Aug 11:54

Choose a tag to compare

Release Notes

New Features and Changes

  • UI Test Project Removal and Recreation

    • The old UI test project was removed and a new one created based on .NET 9.
    • View commit
  • Deprecation and New Methods

    • .NET 7 support removed.
    • New methods added:
      • GetCroppedAreaBlobUri
      • DestroyBlobs
    • View commit
  • CropperJS Update

    • CropperJS updated to version 1.6.2, now using the minified version.
    • View commit
  • .NET 9.0 Support, Documentation & Type Definitions

    • Added support for .NET 9.0.
    • Improved documentation and type definitions.
    • View commit

Important

The recommended way to retrieve a cropped image is using the BlobURI method (GetCroppedCanvasAsUri). When using this method you dont have to increase your SignalR connection size. Be sure to call DisposeAsync at the end to revoke all remaining blob uris.

Release V0.4.0

13 Jan 14:32

Choose a tag to compare

This release adds the last options and removes the GoBack method that was marked as Obsolete

The following options are new:

  • Preview
  • CropBoxMovable
  • CropBoxResizable
  • MinContainerWidth
  • MinContainerHeight
  • MinCanvasWidth
  • MinCanvasHeight
  • MinCropBoxWidth
  • MinCropBoxHeight

Additional Changes:

  • Removed GoBack method
  • Add package Icon
  • Add target framework for .NET8
  • GetCroppedArea now has a Overload for passing own CropCanvasOptions

Release V0.3.0

04 Jan 16:13

Choose a tag to compare

New Events, New Method, updated getCroppedCanvas, GoBack Obsolete

Events:

The following events are new:

  • OnZoom, returns a ZoomEvent object
  • OnCrop, returns a CropEvent that extends the CropData Class

Methods:

The following methods are new:

  • GetData(), returns a CropData object

The following methods have been updated:

  • GetCroppedCanvas() now optionally accepts a CropCanvasOptions object where you can define some additional options. Read more in the official CropperJS documentation

Additional Changes:

Deprecated Feature:

GoBack Method Obsolete: I have decided to make the GoBack method obsolete due to its issues it caused. This method will no longer be developed or supported in future updates.

Guidance for Changes:
To accommodate the removal of GoBack, I recommend implementing your own GoBack function. I have updated the README with a new example showing how you can achieve this.

V0.2.1

03 Jan 23:14

Choose a tag to compare

Hotfix

  • Replace method has been fixed and works again
  • GoBack() did not work as expected and has been fixed

Release V0.2.0

03 Jan 22:48

Choose a tag to compare

Add new Methods and first event

The following events and methods are now implemented:

Methods

  • Reset()
  • Clear()
  • Replace()
  • Enable()
  • Disable()
  • Zoom()
  • ZoomTo()

Events

  • Ready