Pixault.Client 1.6.1

dotnet add package Pixault.Client --version 1.6.1
                    
NuGet\Install-Package Pixault.Client -Version 1.6.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="Pixault.Client" Version="1.6.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pixault.Client" Version="1.6.1" />
                    
Directory.Packages.props
<PackageReference Include="Pixault.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Pixault.Client --version 1.6.1
                    
#r "nuget: Pixault.Client, 1.6.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.
#:package Pixault.Client@1.6.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Pixault.Client&version=1.6.1
                    
Install as a Cake Addin
#tool nuget:?package=Pixault.Client&version=1.6.1
                    
Install as a Cake Tool

Pixault.Client

.NET SDK for the Pixault image processing CDN and API.

Features

  • Fluent URL builder — generate optimized image URLs with transforms (width, height, fit, format, watermark, etc.)
  • Upload client — upload images and videos with folder support
  • Admin client — manage images, folders, and metadata
  • ASP.NET Core integration — AddPixault() DI extension for seamless setup

Installation

dotnet add package Pixault.Client

Quick Start

Register services

builder.Services.AddPixault(options =>
{
    options.BaseUrl = "https://img.pixault.io";
    options.Project = "my-project";
    options.ApiKey = builder.Configuration["Pixault:ApiKey"];
});

Build image URLs

@inject PixaultImageService ImageService

var url = ImageService.For("my-project", "image-id")
    .Width(800)
    .Height(600)
    .Fit(FitMode.Cover)
    .Format("webp")
    .Build();

Generate SEO embed tags

// Single <img> with auto-format negotiation and srcset
var imgTag = images.For("tattoo", "img_01JKABC")
    .Quality(85)
    .ToImgTag(alt: "Sunset tattoo", widths: [400, 800, 1200], sizes: "(max-width: 800px) 100vw, 800px");

// Full <picture> element with AVIF/WebP/JPEG sources
var pictureTag = images.For("tattoo", "img_01JKABC")
    .Quality(85)
    .ToPictureTag(alt: "Sunset tattoo", widths: [400, 800, 1200]);

Upload an image

@inject PixaultUploadClient UploadClient

using var stream = File.OpenRead("photo.jpg");
var result = await UploadClient.UploadAsync("my-project", "photo.jpg", stream, "image/jpeg");
Console.WriteLine(result.ImageId);

Configuration

Option Description Default
BaseUrl Pixault CDN base URL https://img.pixault.io
Project Default project identifier —
ApiKey API key for authenticated operations —
HmacSecret HMAC secret for signed URLs —

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Pixault.Client:

Package Downloads
Pixault.Blazor

Blazor components for the Pixault image CDN. Drop-in uploader, gallery, image detail, transform manager, and plugin marketplace.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.6.1 193 9/9/2026
1.6.0 436 8/1/2026
1.5.0 117 7/31/2026
1.4.0 368 7/8/2026
1.3.0 1,597 3/31/2026
1.2.0 201 3/18/2026
1.1.2 221 3/17/2026
1.1.1 154 3/12/2026
1.1.0 145 3/12/2026
1.0.0 194 3/12/2026