XperienceCommunity.ImageProcessing
1.1.2
See the version list below for details.
dotnet add package XperienceCommunity.ImageProcessing --version 1.1.2
NuGet\Install-Package XperienceCommunity.ImageProcessing -Version 1.1.2
<PackageReference Include="XperienceCommunity.ImageProcessing" Version="1.1.2" />
<PackageVersion Include="XperienceCommunity.ImageProcessing" Version="1.1.2" />
<PackageReference Include="XperienceCommunity.ImageProcessing" />
paket add XperienceCommunity.ImageProcessing --version 1.1.2
#r "nuget: XperienceCommunity.ImageProcessing, 1.1.2"
#:package XperienceCommunity.ImageProcessing@1.1.2
#addin nuget:?package=XperienceCommunity.ImageProcessing&version=1.1.2
#tool nuget:?package=XperienceCommunity.ImageProcessing&version=1.1.2
Xperience Community: Image Processing
Description
This package provides a way to resize images and convert them to webp, jpg, and png formats. It supports images from Media libraries and Content hub items stored as Content item assets.
Library Version Matrix
| Xperience Version | Library Version |
|---|---|
| >= 29.1.4 | 1.0.0 |
Dependencies
Package Installation
Add the package to your application using the .NET CLI
dotnet add package XperienceCommunity.ImageProcessing
Quick Start
Install NuGet package above.
Add the following configuration to your
appsettings.json:{ "ImageProcessing": { "ProcessMediaLibrary": true, "ProcessContentItemAssets": true } }ProcessMediaLibrary: Set totrueto enable image processing for Media library images. Defaults totrue.ProcessContentItemAssets: Set totrueto enable image processing for Content Hub assets. Defaults totrue.
Register the Image Processing middleware using
app.UseXperienceCommunityImageProcessing():var builder = WebApplication.CreateBuilder(args); // ... builder.Services.Configure<ImageProcessingOptions>(builder.Configuration.GetSection("ImageProcessing")); var app = builder.Build(); app.UseKentico(); // ... app.UseXperienceCommunityImageProcessing();You should be able to use the
width,height, andmaxSideSizequery parameters on your image URLs to resize the image. Examples:- Resize the Media library image to a width of 100px:
https://yourdomain.com/getmedia/rest-of-your-asset-url?width=100 - Resize the Content item asset image to a height of 100px:
https://yourdomain.com/getContentAsset/rest-of-your-asset-url?height=100
- Resize the Media library image to a width of 100px:
You can also use the
formatquery parameter to convert the image to a different format. Allowed values are:webp,jpgandpng. Example:- Convert the Media library image to
webp:https://yourdomain.com/getmedia/rest-of-your-asset-url?format=webp - Convert the Content item asset image to
png:https://yourdomain.com/getContentAsset/rest-of-your-asset-url?format=png
- Convert the Media library image to
Contributing
Feel free to submit issues or pull requests to the repository, this is a community package and everyone is welcome to support.
License
Distributed under the MIT License. See LICENSE.md for more information.
| Product | Versions 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. net10.0 was computed. 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. |
-
net8.0
- Kentico.Xperience.webapp (>= 29.1.4)
- SkiaSharp (>= 2.88.8)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 2.88.8)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on XperienceCommunity.ImageProcessing:
| Package | Downloads |
|---|---|
|
XperienceCommunity.Baseline.Core.RCL.Xperience
The Baseline a set of Core Systems, Tools, and Structure to ensure a superior Kentico Website that's easy to migrate, for Kentico Xperience 13 and eventually Xperience by Kentico |
GitHub repositories
This package is not used by any popular GitHub repositories.