Production .NET SDK

Build perfect ID photos with a clean developer API.

LightPxl delivers face-aware framing, background removal, beauty controls, and export-ready outputs for passport, visa, and official document workflows.

Core Capabilities

Everything needed for modern ID-photo apps.

Face-Aware Framing

Stable head-ratio and top-distance placement tuned for document standards.

AI Matting

Clean subject extraction with model presets for quality and performance needs.

Export Controls

JPEG/PNG output, DPI options, and print-oriented layout generation.

Fluent Builder API

Readable request chaining for size presets, beauty tuning, templates, and more.

Quality Preview

Before and after, in one interactive slider.

Before processing
After Light SDK processing
Before After

Drag the center handle to compare

Quick Start

Ship your first flow in minutes.

1. Install

dotnet add package Light.SDK

2. Download Models

Get model assets from GitHub Releases and extract them locally.

Open release assets

3. Generate Output

using 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);

Build production-ready photo workflows with confidence.

LightPxl is optimized for real-world document use cases and professional image quality.