项目作者: garpunkal

项目描述 :
Umbraco 8 - ImageProcessor/TinyPNG menu optimiser
高级语言: JavaScript
项目地址: git://github.com/garpunkal/punkOptimise.git
创建时间: 2019-12-22T16:21:33Z
项目社区:https://github.com/garpunkal/punkOptimise

开源协议:MIT License

下载


punkOptimise

NuGet release

A package for Umbraco that allows you to optimise your media using different providers.

Usage

  • Install the package via nuget.

  • Add .AddOptimise() in your startup file:

  1. services
  2. .AddUmbraco(_env, _config)
  3. .AddBackOffice()
  4. .AddWebsite()
  5. .AddOptimise()
  6. .Build();
  • Add the following configuration element to your appsettings.json
  1. "Optimise": {
  2. "Quality": 60,
  3. "TinyPng": {
  4. "ApiKey": "",
  5. }
  6. }

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.

Nuget

Install-Package punkOptimise

https://www.nuget.org/packages/punkOptimise/

Compatibility

  • Umbraco 10.4+

Screenshots

Action

Screenshot

Context Menu

Screenshot

Contact

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.