Back to selected work

03Project mission dossier

Image processing infrastructure · 2026

Picnexa

A stateless image-processing platform for compression, format conversion, and AI background removal, engineered for a constrained ARM server.

Role
Full-stack developer & deployment owner
Status
Deployed to production
SYS / 03picnexaDeployed to production
Picnexa image tools home page
Picnexa image tools home page
01

Project snapshot

Role
Full-stack developer & deployment owner
Status
Deployed to production
Platform
Web frontend and ARM API
Deployment
Vercel + Oracle Cloud Docker
Scope
Compression, conversion and AI background removal
Repository
No public repository
02 / The problem

The problem

ONNX image segmentation and native image libraries retained memory between jobs, making a normal long-running worker unsafe on a small production server.

03 / The solution

The solution

Every background-removal job runs in a disposable child process. The operating system reclaims native memory after completion, while queues, limits, validation, and temporary storage keep workloads bounded.

04

Technical system

Verified components and boundaries found in the project source and documentation.

  1. 01Next.js frontend

    Vercel interface and direct uploads

  2. 02Caddy boundary

    HTTPS and exact-origin CORS

  3. 03Fastify API

    Validation, rate limits and bounded queue

  4. 04Disposable AI worker

    One ONNX process per background job

  5. 05Temporary storage

    Request-scoped files removed after use

12.53 MPAI image tested
~1.86 GiBworker peak
0 Bswap used
05

What it does

01

Disposable isolated AI workers

02

Defensive file and pixel validation

03

Bounded queue and temporary storage

04

Docker, Caddy, HTTPS, metrics, and structured logs

Product walkthrough02
Picnexa image processing workflow
Picnexa image processing workflow
06

Engineering decisions

01

Native memory is not the JS heap

ONNX and Sharp retained native allocations between jobs beyond JavaScript heap control.

Decision
Run every background-removal job in a disposable child process and terminate it on completion or timeout.
Engineering effect
The operating system reclaims native memory and the API returns to its idle baseline.
02

Quality inside hard limits

Higher-quality segmentation competes directly with a single OCPU and bounded container memory.

Decision
Tune model, dimensions, concurrency, queue capacity, Sharp caches, and container limits as one system.
Engineering effect
A verified 12.53 MP input completed below the 3 GiB container limit without swap.
07

Ownership map

Full-stack developer & deployment owner

  1. 01

    Designed the frontend/API deployment split

  2. 02

    Built image processing, validation, queues, and worker isolation

  3. 03

    Containerized and deployed the ARM production stack

08

Outcome

The production benchmark processed a 3072 × 4080 image with the higher-quality model below a 3 GiB container limit and returned memory to baseline without swap usage.

Next mission / 04
Arij Maison

Premium commerce storefront