Cayaqui.MPS.Images 0.1.1

dotnet add package Cayaqui.MPS.Images --version 0.1.1
                    
NuGet\Install-Package Cayaqui.MPS.Images -Version 0.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="Cayaqui.MPS.Images" Version="0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cayaqui.MPS.Images" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="Cayaqui.MPS.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 Cayaqui.MPS.Images --version 0.1.1
                    
#r "nuget: Cayaqui.MPS.Images, 0.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.
#:package Cayaqui.MPS.Images@0.1.1
                    
#: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=Cayaqui.MPS.Images&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=Cayaqui.MPS.Images&version=0.1.1
                    
Install as a Cake Tool

Cayaqui.MPS.Images

Servicio de gestión de imágenes para .NET 10: validación, EXIF + GPS, auto-rotate, HEIC → JPG, resize, crop cuadrado (avatares), watermark, thumbnails, SHA-256 para dedup. Backend: Magick.NET (Apache 2.0).

Distribución propietaria — requiere contrato comercial con Cayaqui. Ver LICENSE.txt.

Casos de uso

  • Fotos de capataz en field (MAUI / Blazor oficina técnica)
  • Fotos de perfil / avatares de usuarios
  • Evidencia fotográfica de documentos
  • Inyección de imágenes procesadas en Cayaqui.MPS.Reports (PDF / Word / Excel)

Instalación

dotnet add package Cayaqui.MPS.Images
builder.Services.AddMpsImages();
// Si usás ProcessAndStoreAsync, también:
builder.Services.AddMpsStorage(opt => opt.UseAzureBlob("..."));

Quick start

@inject IImageService Images

var result = await Images.ProcessAsync(file.OpenReadStream(), new ImageProcessOptions
{
    ResizeMaxDimension = 2048,
    CropMode = CropMode.SquareCenter, CropToSize = 512,   // solo para avatares
    ThumbnailSizes = new[] { 128, 512 },
    WatermarkText = "ACME · 2026-04-24",
    StripExifOnOutput = true    // privacy default
});

// result.Primary        = byte[] del JPG procesado
// result.Thumbnails[128] = thumbnail 128px
// result.Metadata.Sha256 = hash para dedup
// result.Metadata.TakenAt, Latitude, Longitude = EXIF extraído

Deployment

Azure Container Apps compatible con caveats:

  • Base image glibc (aspnet:10.0 Debian OK; -alpine no)
  • ≥1GB RAM por replica
  • KEDA concurrentRequests: 5 recomendado

Ver docs/infrastructure/images.md para Dockerfile + deployment notes completos.

Requisitos

  • .NET 10.0+
  • Para HEIC: backend Linux/Windows/macOS (Magick.NET bundlea libheif)
  • Para ProcessAndStoreAsync: Cayaqui.MPS.Storage registrado
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
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.1.1 38 5/25/2026
0.1.0 202 4/24/2026

Initial release. IImageService with Magick.NET backend: validation, EXIF/GPS extraction, auto-rotate, HEIC→JPG, resize, crop, watermark, thumbnails, SHA-256 dedup. Optional Storage integration via ProcessAndStoreAsync.