VOOZH about

URL: https://www.nuget.org/packages/SoundInTheory.Piranha.MediaExtensions.Images/

⇱ NuGet Gallery | SoundInTheory.Piranha.MediaExtensions.Images 4.8.0




👁 Image
SoundInTheory.Piranha.MediaExtensions.Images 4.8.0

dotnet add package SoundInTheory.Piranha.MediaExtensions.Images --version 4.8.0
 
 
NuGet\Install-Package SoundInTheory.Piranha.MediaExtensions.Images -Version 4.8.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="SoundInTheory.Piranha.MediaExtensions.Images" Version="4.8.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SoundInTheory.Piranha.MediaExtensions.Images" Version="4.8.0" />
 
Directory.Packages.props
<PackageReference Include="SoundInTheory.Piranha.MediaExtensions.Images" />
 
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 SoundInTheory.Piranha.MediaExtensions.Images --version 4.8.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SoundInTheory.Piranha.MediaExtensions.Images, 4.8.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 SoundInTheory.Piranha.MediaExtensions.Images@4.8.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=SoundInTheory.Piranha.MediaExtensions.Images&version=4.8.0
 
Install as a Cake Addin
#tool nuget:?package=SoundInTheory.Piranha.MediaExtensions.Images&version=4.8.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Piranha Media Extensions

Various enhancements to Piranha CMS media

Cropped Image Field

An image field that allows multiple crops on a single image.

Only filesystem storage supported for now.

Supports cropping settings and multiple crops.

//In Piranha WebApplicationBuilder...
options.UseCroppedImageField();
//etc

//In PiranhaApplicationBuilder
options.UseCroppedImageField();
//etc

Then configure in Piranha content/model/etc

[Field, CroppedImageFieldSettings(AspectRatio = 16d / 9d, MinWidth = 100, MinHeight = 100, Crops = new string[] { "Default", "Second Crop" })]
public CroppedImageField TestImageFieldWithSettings { get; set; } 
[Field]
public CroppedImageField TestImageFieldWithoutSettings { get; set; }

Image Sharp Providers

Providers and resolvers for ImageSharp.Web

There is both a provider for Piranha Media and limited support for Remote Images as well.

Simply configure...

//In Piranha WebApplicationBuilder...
options.UseImageSharpForMedia((opts) =>
{
 opts
 //PhysicalFileSystemProvider cannot be first in the list. You can add it later on.
 .RemoveProvider<PhysicalFileSystemProvider>()

 .Configure<PiranhaMediaImageProviderOptions>(o => o.RootName = "/image")
 .AddProvider<PiranhaMediaImageProvider>()

 .Configure<RemoteImageProviderOptions>(o =>
 {
 o.RootName = "/remote";
 //A whitelist is necessary as it prevents any hijacking of your endpoint
 o.WhiteList = new List<string>()
 {
 "upload.wikimedia.org"
 //etc
 };
 })
 .AddProvider<RemoteImageProvider>();
});
//etc

//In PiranhaApplicationBuilder
options.UseImageSharpForMedia();
//etc

Gallery Field

Field that supports multiple images

//In Piranha WebApplicationBuilder...
options.UseGalleryField();
//etc

//In PiranhaApplicationBuilder
options.UseGalleryField();
//etc

Then configure in Piranha content/model/etc

[Field]
public GalleryField TestGalleryField { get; set; }

//In your view/wherever you want to access
foreach(var image in TestGalleryField.Images){
//Use as if it's a normal image field.
}

Extended Media Manager

Supports filtering and ordering on both mediapicker and media views.

//In Piranha WebApplicationBuilder...
options.UseMediaManager();
//etc

//In PiranhaApplicationBuilder
options.UseMediaManager();
//etc

Examples are provided in repo.

Product Versions Compatible and additional computed target framework versions.
.NET net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 is compatible.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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
4.8.0 101 6/15/2026
4.7.0 97 6/15/2026
4.6.0 94 6/15/2026
4.5.0 276 4/14/2026
4.4.1 135 2/19/2026
4.4.0 634 11/19/2025
4.3.0 444 11/19/2025
4.2.0 388 11/17/2025
4.1.0 377 11/17/2025
4.0.0 229 11/7/2025
3.2.0 277 10/24/2025
3.1.0 305 6/5/2025
3.0.1 490 4/30/2025
3.0.0 257 4/3/2025
2.0.1 457 7/4/2024
2.0.0 604 3/27/2024
1.0.3 384 4/18/2024
1.0.2 265 4/15/2024
1.0.1 250 3/15/2024
1.0.0 232 3/14/2024