WebP_Net 1.1.1

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

// Install WebP_Net as a Cake Tool
#tool nuget:?package=WebP_Net&version=1.1.1


What is this?

This library provides a simple encoder and decoder for webp.

How to use?


In your csproj :

<PackageReference Include="WebP_Net" Version="1.1.0" />

Or, if you using .net cli :

dotnet add package WebP_Net --version 1.1.0

Encode / Decode

using System.Drawing;
using WebP.Net;

static byte[] EncodeLossy(Bitmap bitmap, float quality)
    using var webp = new WebPObject(bitmap);
    return webp.GetWebPLossy(quality);
static byte[] EncodeLossless(Bitmap bitmap)
    using var webp = new WebPObject(bitmap);
    return webp.GetLossless();
static Image DecodeWebP(byte[] webP)
    using var webp = new WebPObject(webP);
    return webp.GetImage();

Get info

using WebP.Net;

static WebPInfo GetInfo(byte[] webP)
    using var webp = new WebPObject(webP);
    return webP.GetInfo();

Get version

using WebP.Net;

static WebPVersion GetVersion()
    return WebPObject.GetVersion(); // get version of libwebp
static string GetVersionAsString()
    return WebPObject.GetVersion().ToString(); // Major.Minor.Revision
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.1
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
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
1.1.1 132 2/28/2023
1.1.0 1,158 8/29/2021
1.0.0 220 8/29/2021