A package for Umbraco that allows you to optimise your media using different providers.
-
Install the package via nuget.
-
Add .AddOptimise() in your startup file:
services
.AddUmbraco(_env, _config)
.AddBackOffice()
.AddWebsite()
.AddOptimise()
.Build();
- Add the following configuration element to your appsettings.json
"Optimise": {
"Quality": 60,
"TinyPng": {
"ApiKey": "",
}
}
Update the ApiKey property with your API key from https://tinypng.com/developers
- Run Umbraco and there will be a new tree node action on media items to optimise.
Install-Package punkOptimise
https://www.nuget.org/packages/punkOptimise/
- Umbraco 10.4+
This project is maintained by Gareth Wright and contributors. If you have a question or issue, please get in touch on Twitter, or by raising an issue on GitHub.