Orchard Core module that uses TinyPNG to optimise images uploaded to media library.
This module is referencing a stable build of Orchard Core (1.8.3
).
This module is available on NuGet. Add a reference to your Orchard Core web project via the NuGet package manager. Search for "Etch.OrchardCore.TinyPNG", ensuring include prereleases is checked.
Alternatively you can download the source or clone the repository to your local machine. Add the project to your solution that contains an Orchard Core project and add a reference to Etch.OrchardCore.TinyPNG.
Enable "TinyPNG" feature within the admin dashboard. Next you'll need an API key from TinyPNG by registering with your name and email address. Under the "Configuration" menu option will be "TinyPNG", which is where you can set your API key. Once configured, any JPG or PNG files uploaded to the media library will be compressed by TinyPNG.
When the module is compiled (using dotnet build
) it's configured to generate a .nupkg
file (this can be found in \bin\Debug\
or \bin\Release
).