JupahsImageSharpInteractiveFork 0.0.1

dotnet add package JupahsImageSharpInteractiveFork --version 0.0.1                
NuGet\Install-Package JupahsImageSharpInteractiveFork -Version 0.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="JupahsImageSharpInteractiveFork" Version="0.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JupahsImageSharpInteractiveFork --version 0.0.1                
#r "nuget: JupahsImageSharpInteractiveFork, 0.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 JupahsImageSharpInteractiveFork as a Cake Addin
#addin nuget:?package=JupahsImageSharpInteractiveFork&version=0.0.1

// Install JupahsImageSharpInteractiveFork as a Cake Tool
#tool nuget:?package=JupahsImageSharpInteractiveFork&version=0.0.1                

SixLabors.ImageSharp.Interactive

A .NET Interactive extension for ImageSharp

Getting started

Load the nuget pacakge and namespaces

using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.PixelFormats;

Create and diplay an image, this extension registers formatters for the Image type.

var image = new Image<Rgba32>(100, 100);
image.Mutate(c => c.BackgroundColor(Color.Red));
image.Display();

Load images

using System.IO;
using System.Net;
using System.Net.Http;


var httpClient = new HttpClient();
var response = await httpClient.GetAsync("https://raw.githubusercontent.com/SixLabors/Branding/main/icons/imagesharp/sixlabors.imagesharp.png");
var inputStream = await response.Content.ReadAsStreamAsync();
image = Image.Load(inputStream);
image.Display();

Processing images

Import the namespace SixLabors.ImageSharp.Processing to have access to image processing apis.

using SixLabors.ImageSharp.Processing;

The Mutate api will modify the current image, this cell resizes the image in place using Mutate.

image.Mutate(x => x.Resize(image.Width / 2, image.Height / 2));
image.Display();

Using Clone you can obtain a copy of the image that is the outcome of the transfomation;

var copy = image.Clone(x => x.GaussianBlur(2));
copy.Display();
image.Display();
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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
0.0.1 44 1/10/2025