Badgernet.Umbraco.WebPicAuto
1.1.1
This Package does currently not work properly when using uSync. Will investigate and provide new version that handles this problem.
See the version list below for details.
dotnet add package Badgernet.Umbraco.WebPicAuto --version 1.1.1
NuGet\Install-Package Badgernet.Umbraco.WebPicAuto -Version 1.1.1
<PackageReference Include="Badgernet.Umbraco.WebPicAuto" Version="1.1.1" />
paket add Badgernet.Umbraco.WebPicAuto --version 1.1.1
#r "nuget: Badgernet.Umbraco.WebPicAuto, 1.1.1"
// Install Badgernet.Umbraco.WebPicAuto as a Cake Addin #addin nuget:?package=Badgernet.Umbraco.WebPicAuto&version=1.1.1 // Install Badgernet.Umbraco.WebPicAuto as a Cake Tool #tool nuget:?package=Badgernet.Umbraco.WebPicAuto&version=1.1.1
Badgernet.Umbraco.WebPicAuto
Resizes and converts your images to .webp format on upload.
Installation
Simply add the package by using dotnet add package to install the latest version:
dotnet add package Badgernet.Umbraco.WebPicAuto
Changelog
Version 1.1.1
- Fix: Adjusted namespace to "Badgernet.WebPicAuto" to prevent conflict.
- Fix: Removed "WpaSettings.json" from the package.
- Converter now enabled by default
Version 1.1.0 (unlisted)
- Backoffice dashboard
Version 1.0.1
- Added option to downscale images without keeping aspect ratio
- Provide target dimensions in filename → "wparesize_800_600_ImageName.png"
Settings
You can change these default settings by accessing the "Converter/Resizer" dashboard in the Media section in backoffice. Settings are stored in a file: "App_Plugins/Badgernet.Umbraco.WebPicAuto/Backoffice/WpaSettings.json"
Resizer enabled
Turns image resizing on or off
Max width
Resizer will scale images down to fit max width value
Max height
Resizer will scale images down to fit max height
Ignore aspect ratio
By default, resizing will maintain image aspect ratio.
Converter enabled
Turns image converting on or off
Convert mode
Image encoding type
"Lossy" mode will produce smaller file size images. ← this is the preferred / default mode
"Lossless" mode will produce better quality images.
Convert quality
Value from 1 to 100
Quality of conversion, lower value will produce smaller file size images but image quality will also be worse.
Keep original images
If turned on, original images will not be deleted (wwwroot/media/***)
Ignore keyword
Any images containing this keyword in its filename will be ignored by this package. → "wpaignore_IMG01012024.png" would not get processed.
Credits
Thanks to everybody at @Our Umbraco Forum for their helpful tips.
This project was inspired by @VirjdagOnline.ImageResizer
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. |
-
net8.0
- Umbraco.Cms (>= 13.0.0 && < 14.0.0)
- Umbraco.Cms.Web.BackOffice (>= 13.0.0 && < 14.0.0)
- Umbraco.Cms.Web.Website (>= 13.0.0 && < 14.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.