Lyo.Images.Skia 3.0.0

dotnet add package Lyo.Images.Skia --version 3.0.0
                    
NuGet\Install-Package Lyo.Images.Skia -Version 3.0.0
                    
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="Lyo.Images.Skia" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lyo.Images.Skia" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Lyo.Images.Skia" />
                    
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 Lyo.Images.Skia --version 3.0.0
                    
#r "nuget: Lyo.Images.Skia, 3.0.0"
                    
#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 Lyo.Images.Skia@3.0.0
                    
#: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=Lyo.Images.Skia&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Lyo.Images.Skia&version=3.0.0
                    
Install as a Cake Tool

Lyo.Images.Skia

SkiaSharp IImageService for Lyo.Images: resize, crop, rotate, watermark, format conversion, thumbnails, compression, metadata (optional MetadataExtractor EXIF in the Skia pipeline), palette extraction, and batch processing.

Examples

Resize with Skia

using Lyo.Images;
using Lyo.Images.Models;
using Lyo.Images.Skia;
using Microsoft.Extensions.DependencyInjection;

var services = new ServiceCollection();
services.AddSkiaImageService(o => {
    o.DefaultQuality = 90;
    o.MaxWidth = 10_000;
    o.MaxHeight = 10_000;
});

var imageService = services.BuildServiceProvider().GetRequiredService<IImageService>();

await imageService.ResizeAsync(inputStream, outputStream, 800, 600, ResizeMode.Max, ImageFormat.Jpeg, 90);

Register decoration plus Skia

using Lyo.Images;
using Microsoft.Extensions.DependencyInjection;

services.AddImageSharpImageService(); // registers IImageDecorationService
services.AddSkiaImageService(); // overrides IImageService with Skia

Skia compared with ImageSharp

Lyo.Images.Skia Lyo.Images (ImageSharp)
Platforms Favours Linux and mobile. Native Skia assets. Fully managed. Wider format coverage.
EXIF Extended EXIF through MetadataExtractor where wired. EXIF through ImageSharp metadata APIs.
Decoration Gets the ImageSharp-backed IImageDecorationService primitives through ImageServiceBase. AddSkiaImageService does not register IImageDecorationService on its own. Call AddImageSharpImageService first if you want that type resolvable separately. AddImageSharpImageService also registers IImageDecorationService.

Types

Type Description
SkiaImageService IImageService that decodes and encodes bitmaps with SkiaSharp.
Extensions AddSkiaImageService, AddSkiaImageServiceFromConfiguration. Uses the same ImageServiceOptions / "ImageService" section as ImageSharp.
Constants.Metrics Metric name strings for Skia timing.

Internal helpers (SkiaExifExtractor, etc.) are not a supported public contract.

Decoration primitives

SkiaImageService gets the ImageSharp-backed IImageDecorationService primitives (OverlayAsync, AddFrameAsync, AddCaptionAsync, AddOuterPaddingAsync, plus the Pipeline(...) fluent API) through ImageServiceBase. To resolve IImageDecorationService as its own DI registration next to Skia, register ImageSharp first:

Why SkiaSharp

  • Renders natively on Linux and mobile.
  • Watermark text rendering is reliable.
  • Depending on the Skia build, raster formats include JPEG, PNG, WebP, GIF, BMP, ICO.

Dependencies

Generated from ProjectReference / PackageReference (same model as docs/Lyo.ProjectGraph.html).

  • Lyo.Common.Core (direct, lyo)
  • Lyo.Exceptions (direct, lyo)
  • Lyo.Images (direct, lyo)
  • Lyo.Metrics (direct, lyo)
  • Lyo.Result (direct, lyo)
  • MetadataExtractor 2.9.3 (direct, third-party)
  • Microsoft.Extensions.Configuration.Binder 10.0.5 (direct, microsoft)
  • Microsoft.Extensions.DependencyInjection.Abstractions 10.0.5 (direct, microsoft)
  • Microsoft.Extensions.Logging.Abstractions 10.0.5 (direct, microsoft)
  • SkiaSharp 3.* (direct, third-party)
  • SkiaSharp.NativeAssets.Linux.NoDependencies 3.* (direct, third-party)
  • Lyo.Common.Metadata (transitive, lyo)
  • Microsoft.Bcl.AsyncInterfaces 10.0.5 (transitive, microsoft, netstandard2.0)
  • SixLabors.Fonts 2.1.3 (transitive, third-party)
  • SixLabors.ImageSharp 3.1.12 (transitive, third-party)
  • SixLabors.ImageSharp.Drawing 2.1.7 (transitive, third-party)
  • System.Memory 4.6.3 (transitive, microsoft, netstandard2.0)
  • System.Text.Json 10.0.5 (transitive, microsoft, netstandard2.0)
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

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
3.0.0 109 10/23/2026
2.0.1 133 9/14/2026
2.0.0 116 9/9/2026
1.0.13 131 8/25/2026
1.0.11 120 8/23/2026
1.0.9 131 8/22/2026
1.0.6 117 8/20/2026
1.0.4 127 8/20/2026
1.0.3 116 8/19/2026
1.0.2 128 8/19/2026
1.0.1 141 8/18/2026
1.0.0 137 8/16/2026