A simple tool for squashing PNG and JPEG files using the TinyPNG API.
Can compress all the PNG or JPEG files in a directory or just single files.
The latest release of dotnet-tinify requires the 2.1.300 .NET Core 2.1 SDK or newer. Once installed, run this command:
dotnet tool install --global dotnet-tinify
Usage: dotnet tinify [arguments] [options]
Arguments:
path Path to the file or directory to squash
Options:
-?|-h|--help Show help information
-a|--api-key <API_KEY> Your TinyPNG API key
You must provide your TinyPNG API key to use this tool
(see https://tinypng.com/developers for details). This
can be provided either as an argument, or by setting the
TINYPNG_APIKEY environment variable.
Only png, jpeg, and jpg, extensions are supported.