Skip to content

Orchard Core module for compressing media files when they're uploaded to media library.

License

Notifications You must be signed in to change notification settings

EtchUK/Etch.OrchardCore.TinyPng

Repository files navigation

Etch.OrchardCore.TinyPNG

Orchard Core module that uses TinyPNG to optimise images uploaded to media library.

Build Status

NuGet

Orchard Core Reference

This module is referencing a stable build of Orchard Core (1.7.2).

Installing

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.

Usage

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.

Packaging

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).

About

Orchard Core module for compressing media files when they're uploaded to media library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published