Skip to content

p3rb3r/tinify-net

 
 

Repository files navigation

Build Status

Tinify API client for .NET

.NET client for the Tinify API, used for TinyPNG and TinyJPG. Tinify compresses your images intelligently. Read more at http://tinify.com.

Documentation

Go to the documentation for the .NET client.

Installation

Install the API client:

Install-Package Tinify

Or add this to your project.json:

{
  "dependencies": {
    "Tinify": "*",
  }
}

Usage

using TinifyAPI;

class Compress
{
  static void Main()
  {
    Tinify.Key = "YOUR_API_KEY";
    Tinify.FromFile("unoptimized.png").ToFile("optimized.png").Wait();
  }
}

Running tests

dotnet restore
dotnet test test/Tinify.Tests

Integration tests

dotnet restore
TINIFY_KEY=$YOUR_API_KEY dotnet test test/Tinify.Tests.Integration

License

This software is licensed under the MIT License. View the license.

About

.NET client for the Tinify API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 98.0%
  • PowerShell 1.5%
  • Shell 0.5%