VrijdagOnline.ImageResizer 1.1.0

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

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

VrijdagOnline.ImageResizer

This project is based on @prjseal's SmallerImages but rewritten for Umbraco 11+.

Reduce image size that is being uploaded to the back-office by setting a maximum width and height with the idea to save disk space and improve page speed.

NuGet

Installation

Simply add the package by using donet add package to install the latest version:

dotnet add package VrijdagOnline.ImageResizer

Settings

You can change these default settings by adding the section to the appsettings.json file and overwrite the values.

"ImageResizer": {
    "ImageResizeDisabled": false,
    "ImageResizeWidth": 1920,
    "ImageResizeHeight": 1080,
    "ImageResizeSuffix": "_resized",
    "ImageResizeKeepOriginal": false,
    "ImageResizeUpscale": false,
    "ImageResizePreviewWidth": 240,
    "ImageResizePreviewHeight": 136,
    "ImageResizePreviewSuffix": "_preview",
    "ImageResizeKeepPreview": false,
    "ImageResizeMaintainRatio": true,
    "ImageResizeApplyToExistingImages": false
}

FAQ

Does is work with original images?

Change the ImageResizeApplyToExistingImages value to true in appsettings.json

"ImageResizeApplyToExistingImages": true,

I want to keep the original image

Change the ImageResizeKeepOriginal value to true in appsettings.json

"ImageResizeKeepOriginal": true,

I want to turn on image crop preview

Change the ImageResizeKeepPreview value to true in appsettings.json

"ImageResizeKeepPreview": true,

Changelog

1.1.0

  • Fixed an issue where the cropper would ignore maxWidth when both maxWidth and maxHeight are set while cropping

1.0.5

  • Changed deprecated IScopeProvider to ICoreScopeProvider

1.0.4

  • Added umbraco-marketplace.json config

1.0.3

  • Added the Umbraco Marketplace tag
  • Added a changelog section to the README

1.0.2

  • Fixed an issue where the notification handler kept looping while cropping the image if ImageResizeKeepOriginal was turned on

1.0.1

  • Changed Umbraco version to 11+

1.0.0

  • Initial package

Credits

To @prjseal who originally created the repo.

Product Compatible and additional computed target framework versions.
.NET 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.1.0 314 10/30/2023
1.0.5 243 5/31/2023
1.0.4 138 5/26/2023
1.0.3 137 5/26/2023
1.0.2 131 5/25/2023
1.0.1 140 5/25/2023
1.0.0 170 5/24/2023