This package will resize your images when you upload them in Umbraco.
It can also convert them to .webp format to save additional storage space.
Currently only local files are supported.
Umbraco Cloud / Azure Blob Storage support may be added in later releases.
Simply add the package by using dotnet add package to install the latest version:
dotnet add package Badgernet.Umbraco.WebPicAuto
dotnet remove package Badgernet.Umbraco.WebPicAuto
After uninstalling the package, make sure to delete the folder "App_Plugins/Badgernet.Umbraco.WebPicAuto",
otherwise the dashboard may still be displayed in the backoffice.
This package will also process any images imported using the uSync import feature.
Be sure to turn off the converter / resizer (via the dashboard) if you do not want them to be processed.
- Adds support for processing existing image files
- Fix: Plays nice with uSync
- Fix: Adjusted namespace to "Badgernet.WebPicAuto" to prevent conflicts.
- Fix: Removed "WpaSettings.json" from the package.
- Converter now enabled by default
- Backoffice dashboard
- Added option to downscale images without keeping aspect ratio
- Provide target dimensions in filename -> "wparesize_800_600_ImageName.png"
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"
Turns image resizing on or off
Resizer will scale images down to fit max width value
Resizer will scale images down to fit max height
By default, resizing will maintain image aspect ratio.
Turns image converting on or off
"Lossy" mode will produce smaller file size images. <- this is the preferred / default mode
"Lossless" mode will produce better quality images.
Quality of conversion, lower value will produce smaller file size images but image quality will also be worse.
If turned on, original images will not be deleted (wwwroot/media/***)
Any images containing this keyword in its filename will be ignored by this package. -> "wpaignore_IMG01012024.png" would not get processed.
Thanks to everybody at @Our Umbraco Forum for their helpful tips.
This project was inspired by @VirjdagOnline.ImageResizer