punkCropperStyles 10.6.1

dotnet add package punkCropperStyles --version 10.6.1
NuGet\Install-Package punkCropperStyles -Version 10.6.1
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="punkCropperStyles" Version="10.6.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add punkCropperStyles --version 10.6.1
#r "nuget: punkCropperStyles, 10.6.1"
#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 punkCropperStyles as a Cake Addin
#addin nuget:?package=punkCropperStyles&version=10.6.1

// Install punkCropperStyles as a Cake Tool
#tool nuget:?package=punkCropperStyles&version=10.6.1

punkCropperStyles

NuGet release

Nuget

Install-Package punkCropperStyles

https://www.nuget.org/packages/punkCropperStyles/

Compatibility

  • Umbraco 10+

Summary

I've always though that the image cropper in Umbraco, looked a little messy and the view for the main image wasn't large enough.

Default Cropper

So I decided to tweak the CSS and see if I can tidy it up:

Improved Cropper

I think this looks better and it gives the main image 100% of the area to use!

Manual install

1 - Create the following structure in your site under app_plugins

Folder

2 - Add a package.manifest with this code:

{
  "css": [
    "~/app_plugins/tweaks/cropper.css"
  ]
}

3 - Add this CSS in a file called: cropper.css

.imagecropper {
  display: block;
}

.imagecropper .umb-sortable-thumbnails {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
  overflow: auto;
  max-height: 300px;
}

.imagecropper .umb-sortable-thumbnails li {
  display: flex;
  flex-wrap: wrap;
  width: 10%;
  align-items: flex-start;
}

.imagecropper .umb-sortable-thumbnails li .crop-information {
  align-items: flex-start;
}

4 - Restart the Umbraco website, and the image cropper should be updated 😃

If you need any help, give me a shout on twitter.

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 was computed.  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
10.6.1 267 7/14/2023
10.4.5 1,510 3/17/2023
10.4.4 186 3/17/2023
10.4.3 264 2/6/2023
10.4.2 277 1/25/2023
10.4.1 265 1/25/2023
10.1.2 396 9/26/2022
10.1.1 388 9/26/2022
10.1.0 398 9/26/2022