← All projects

An image-processing app for converting, compressing, resizing, and removing backgrounds in batches. Uploads go to private storage, a durable queue hands them to dedicated workers, and the free beta includes 20 daily credits.

Role
Product design, full-stack engineering, and processing infrastructure
Delivery
Self-hosted VPS + Docker
Availability
Public product
Tools
Convert, compress, resize, remove background

How it works

DEDICATED WORKERSBrowserup to 15 filesPrivate storagesigned, size-lockedDurable queuePostgreSQLSharpconvert · compress · resizerembgbackground removalStored resultcredit commits hereANY2IMAGE / UPLOAD TO RESULT

Swipe to see the whole system

  1. Accepted means durable

    Once the queue accepts a job it survives web restarts and closed tabs; progress and results are read back from the database, not from the browser.

  2. Pay for results, not attempts

    Credits are reserved on submission and committed only after the output is stored, so a failed or cancelled job never costs the user a credit.

  3. Private by default

    Uploads go to private storage under signed, size-locked policies, metadata is stripped unless the user keeps it, and results expire after 24 hours unless saved.

The problem

Browser-based image tools tend to process inside the tab or the web request: close the tab, hit a timeout, or restart the server and the batch is gone, sometimes after the credits were spent. Heavy work like background removal makes that worse, because one slow model run can stall everything behind it.

My approach

any2image separates accepting work from doing it. Files upload straight to private storage, each job lands in a PostgreSQL-backed queue, and dedicated workers pick it up: Sharp for conversion, compression, and resizing, and a Python rembg worker for background removal. A credit is reserved when a job is accepted and committed only once the output is safely stored.

Engineering scope

  1. Next.js App Router with NextAuth (Google and email codes), Prisma, and PostgreSQL credit accounts, reservations, and job state
  2. Presigned S3 POST uploads locked to each file's exact size, type, and SHA-256, verified before a job can be queued
  3. Separate Node Sharp and Python rembg workers with leases, heartbeats, expired-lease recovery, and a SHA-pinned u2net model, plus queued archive jobs for ZIP downloads