XperienceCommunity.ImageProcessing 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package XperienceCommunity.ImageProcessing --version 1.0.0                
NuGet\Install-Package XperienceCommunity.ImageProcessing -Version 1.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="XperienceCommunity.ImageProcessing" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XperienceCommunity.ImageProcessing --version 1.0.0                
#r "nuget: XperienceCommunity.ImageProcessing, 1.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.
// Install XperienceCommunity.ImageProcessing as a Cake Addin
#addin nuget:?package=XperienceCommunity.ImageProcessing&version=1.0.0

// Install XperienceCommunity.ImageProcessing as a Cake Tool
#tool nuget:?package=XperienceCommunity.ImageProcessing&version=1.0.0                

Xperience Community: Image Processing

Description

Xperience by Kentico comes with image processing abilities for the media library Kentico.Xperience.ImageProcessing but lacks the ability to process images stored as assets in the Content Hub.

Image processing capabilities are on the roadmap for the Content Hub, but in the meantime, this package provides a way to processing Content Hub assets in the same way as media library images, through the use of SkiaSharp.

NOTE: This package will eventually be deprecated once the Content Hub has image processing capabilities.

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

  1. Install NuGet package above.

  2. Register the Image Processing middleware using app.UseXperienceCommunityImageProcessing():

     var app = builder.Build();
    
     app.UseKentico();
    
     // ...
    
     app.UseXperienceCommunityImageProcessing();
    
  3. You should be able to use the width, height, and maxSideSize query parameters on your Content Hub asset URLs to resize the image. Examples:

    1. Resize the image to a width of 100px:
      https://yourdomain.com/your-asset-url?width=100
      
    2. Resize the image to a height of 100px:
      https://yourdomain.com/your-asset-url?height=100
      
    3. Resize the image to a maximum side size of 100px:
      https://yourdomain.com/your-asset-url?maxSideSize=100
      

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 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
1.1.1 124 8/5/2024
1.1.0 66 8/3/2024
1.0.0 117 7/8/2024