Badgernet.Umbraco.WebPicAuto 1.0.0

Additional Details

This Package does currently not work properly when using uSync. Will investigate and provide new version that handles this problem.

There is a newer version of this package available.
See the version list below for details.
dotnet add package Badgernet.Umbraco.WebPicAuto --version 1.0.0                
NuGet\Install-Package Badgernet.Umbraco.WebPicAuto -Version 1.0.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="Badgernet.Umbraco.WebPicAuto" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Badgernet.Umbraco.WebPicAuto --version 1.0.0                
#r "nuget: Badgernet.Umbraco.WebPicAuto, 1.0.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 Badgernet.Umbraco.WebPicAuto as a Cake Addin
#addin nuget:?package=Badgernet.Umbraco.WebPicAuto&version=1.0.0

// Install Badgernet.Umbraco.WebPicAuto as a Cake Tool
#tool nuget:?package=Badgernet.Umbraco.WebPicAuto&version=1.0.0                

Badgernet.Umbraco.WebPicAuto

This package automatically converts uploaded pictures into .webp format. It also downscales images to desired size.

Installation

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

dotnet add package Badgernet.Umbraco.WebPicAuto

Settings

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

  "WebPicAuto": {
    "WpaEnableResizing": true,
    "WpaEnableConverting": true,
    "WpaConvertMode": "lossy",
    "WpaConvertQuality": 80,
    "WpaTargetWidth": 1920,
    "WpaTargetHeight": 1080,
    "WpaKeepOriginals": false,
    "WpaIgnoreKeyword": "wpaignore_"
  }
Enable/disable resizing.
"WpaEnableResizing": true
Enable/disable converting to .webp format
"WpaEnableConverting": true
Convert mode

Type of format conversion, possible values are "lossy" and "lossless"

"WpaConvertMode": "lossy"
Convert quality

Valid values are from 1 to 100

"WpaConvertQuality": 80
Target width in px
""WpaTargetWidth": 1920
Target height in px
"WpaTargetHeight": 1080
Flag if orignal images should be kept
"WpaKeepOriginals": false
Ignore keyword

Any images containing this keyword in their name will be ignored by this package. → "wpaignore_IMG01012024.png" will not get processed.

"WpaIgnoreKeyword": "wpaignore"

Credits

This project was inspired by @VirjdagOnline.ImageResizer 0 comments on commit 29cd6a8 @frytzl Comment

Leave a comment

Footer � 2024 GitHub, Inc. Footer navigation Terms Privacy Security Status Docs Contact Manage cookies Do not share my personal information Create README.md � frytzl/Badgernet.Umbraco.WebPicAuto@29cd6a8

Product 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. 
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.3 176 5/12/2024
1.1.2 187 2/5/2024
1.1.1 107 2/1/2024
1.0.1 129 1/14/2024
1.0.0 101 1/12/2024