Face-Aware Framing
Stable head-ratio and top-distance placement tuned for document standards.
Production .NET SDK
LightPxl delivers face-aware framing, background removal, beauty controls, and export-ready outputs for passport, visa, and official document workflows.
Install + run
dotnet add package Light.SDK
using var creator = new IdCreator(new IdCreatorOptions
{
ModelsRootPath = @"D:\\light-sdk\\models"
});
Core Capabilities
Stable head-ratio and top-distance placement tuned for document standards.
Clean subject extraction with model presets for quality and performance needs.
JPEG/PNG output, DPI options, and print-oriented layout generation.
Readable request chaining for size presets, beauty tuning, templates, and more.
Quality Preview
Drag the center handle to compare
Quick Start
dotnet add package Light.SDK
Get model assets from GitHub Releases and extract them locally.
Open release assetsusing HivisionIDPhotos.Core.Models.Sdk;
using Light.SDK;
using var creator = new IdCreator(new IdCreatorOptions
{
ModelsRootPath = @"D:\\light-sdk\\models"
});
var result = creator.CreateFromFile("input.jpg", cfg => cfg
.WithSizePreset(IdPhotoSizePreset.AmericanVisa)
.WithBackgroundColor("FFFFFF")
.WithModels(FaceDetectionModelPreset.LightFaceDetect, MattingModelPreset.LightLite)
.WithStandardExport(OutputImageFormat.Jpeg, dpi: 300));
File.WriteAllBytes("output.jpg", result.StandardImageBytes);
LightPxl is optimized for real-world document use cases and professional image quality.