ImageMinima 6.0.1

dotnet add package ImageMinima --version 6.0.1                
NuGet\Install-Package ImageMinima -Version 6.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ImageMinima" Version="6.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ImageMinima --version 6.0.1                
#r "nuget: ImageMinima, 6.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ImageMinima as a Cake Addin
#addin nuget:?package=ImageMinima&version=6.0.1

// Install ImageMinima as a Cake Tool
#tool nuget:?package=ImageMinima&version=6.0.1                

Image Minima API client for .NET

.NET client for the Image Minima API, used for ImageMinima. Image Minima compresses your images intelligently. Read more at http://imageminima.com.

Documentation

Go to the documentation for the .NET client.

Installation

Install the API client:

Install-Package ImageMinima

Or add this to your project.json:

{
  "dependencies": {
    "ImageMinima": "*",
  }
}

Usage

using ImageMinima;

class Compress
{
  static void Main()
  {
    var client = new ImageMinimaClient()
    {
        Key = "YOUR_API_KEY"
    };

    var source = new Source();
    source.FromFile("unoptimized.png").ToFile("optimized.png").Wait();
  }
}

Running tests

dotnet restore
dotnet test test/ImageMinima.Tests

Integration tests

dotnet restore
IMAGE_MINIMA_KEY=$YOUR_API_KEY dotnet test src/ImageMinima.Tests.Integration

Or add a .env file to the /test/ImageMinima.Tests.Integration directory in the format

IMAGE_MINIMA_KEY=<YOUR_API_KEY>
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.0.1 97 10/27/2024
6.0.0 103 9/20/2024
0.2.1 501 5/4/2022
0.2.0 407 4/23/2022
0.1.1 415 4/23/2022
0.1.0 416 4/21/2022
0.0.1 399 4/17/2022