DEV Community

Cover image for Inside APIC: The Full Engineering Teardown of a Free Photo Editor & Background Remover That Runs 100% On Your Device
Akhouri Anmol Kumar for Akhouri Systems

Posted on Edited on

Inside APIC: The Full Engineering Teardown of a Free Photo Editor & Background Remover That Runs 100% On Your Device

Comments praise the 3D LUT export feature

Inside APIC

The complete engineering story behind the free, private, on-device photo studio from Akhouri Systems

Eleven tools. Zero uploads. Every pixel stays on your device.

Live product: apic-studio.vercel.app


Keynote opener

For years the deal with online image tools has been the same: upload your photo, wait for a server, pay per image, hope for the best.

We built APIC to retire that deal.

APIC (Advanced Image Processing Center) is a free online photo editor, background remover, object remover, AI upscaler, image converter and compressor. It runs entirely in your browser. AI models download once, get cached on your device, and from then on your photos are processed locally.

This post is the full tour, inch by inch. How each tool works, which models and algorithms power it, and why we made the engineering decisions we did.

If you came here looking for a free remove.bg alternative, a background remover with no upload, or a private online photo editor, you are in the right place.


The architecture in one picture

 Your photo (never leaves the device)
        |
        v
 +-----------------------------------------------------------+
 |  Browser tab: APIC Studio                                 |
 |                                                           |
 |  Canvas pixel pipeline --> Edit / Advanced / Resize       |
 |  Format engine ----------> PNG, JPEG, WebP, BMP, ICO, PDF |
 |  Web Workers ------------> ONNX Runtime Web               |
 |                              |-- WebAssembly (everywhere) |
 |                              |-- WebGPU (when available)  |
 |  Model cache ------------> downloaded once, reused        |
 |  Recent work ------------> saved on this device           |
 +-----------------------------------------------------------+
        |
        v
 Export: transparent PNG, WebP, JPEG, PDF, ZIP
Enter fullscreen mode Exit fullscreen mode

Heavy AI work runs inside Web Workers, so the interface stays responsive while a model is thinking. ONNX Runtime Web runs the models on WebAssembly by default and upgrades to WebGPU on devices that support it.


Tool 1 to 3: Edit, Advanced, Resize

Edit

The everyday toolkit: brightness, contrast, saturation, blur, rotate, flip, crop with ratio presets, and straighten.

It also has Hide area: select a rectangle or an ellipse (the ellipse is better for faces) and blur or pixelate it. Use it to cover faces, licence plates, card numbers and anything else private before you share an image.

Advanced: the pro colour suite

This is where we stopped treating colour as a slider and started treating it as a pipeline. Every adjustment runs through one ordered pixel pipeline:

exposure (linear light)
  -> black / white point
  -> gamma
  -> RGB curve -> per-channel curves
  -> white balance (temperature / tint)
  -> shadows / highlights
  -> vibrance
  -> HSL mixer (8 bands)
  -> 3-way colour grading
  -> fade
  -> clarity
  -> sharpen
  -> vignette
  -> grain
Enter fullscreen mode Exit fullscreen mode

What you get on top of it:

  • A live histogram
  • RGB curves with per-channel control
  • An 8-band HSL mixer (Red, Orange, Yellow, Green, Aqua, Blue, Purple, Magenta)
  • 3-way colour grading
  • 3D LUT export: a 33 x 33 x 33 .cube LUT of your whole grade, ready for video tools such as DaVinci Resolve and Premiere

That last one matters. You can grade a still in the browser and carry the same look into video.

Resize

Exact pixel or percentage resizing. When shrinking, the resampling is built to keep fine detail crisp instead of blurring or producing moiré, with a final high-quality pass onto the exact target size.


Tool 4: Remove BG, the on-device cut-out engine

This is the feature people search for, so we over-engineered it.

The pipeline

  1. General-purpose segmentation with IS-Net (DIS) at 1024 x 1024. It handles people, products, animals, objects and logos, not only portraits.
  2. Mask cleanup. Noise specks and pinholes are removed.
  3. Edge snapping with a guided filter. The mask is snapped onto the real edges of the photo, limited to a narrow band around the model's edge. It can sharpen the boundary but never invent or delete real regions.
  4. Blur-Fusion foreground estimation. This removes background colour bleeding into edge pixels, so you get no coloured halo on a new backdrop.
  5. Original resolution preserved. The output keeps your original pixels in the interior. It is not a downscaled approximation.

If the main AI model can't load (offline or blocked), APIC falls back to a MediaPipe person segmenter, still at full resolution, so you always get a result.

Four quality tiers

Tier Model Download Best for
Lite U²-Netp (320 px) ~5 MB Instant results, low-power devices
Fast IS-Net, quantized (1024 px) ~44 MB Everyday speed and quality
Great IS-Net, full (1024 px) ~176 MB High accuracy
Best (optional) BiRefNet, WebGPU build ~520 MB (fp16) to 1 GB Maximum quality on capable hardware

Models download once and are cached. If a download fails, APIC retries automatically and offers a Retry button. If you are offline, it tells you plainly: connect once so the model can download.

Touch-up and replacement

  • Restore / Erase brush with adjustable size to fix edges by hand
  • One-click backgrounds: white, black, a blurred copy of your photo, or any custom colour
  • Export as a transparent PNG or WebP

Tool 5: Remove Object, on-device inpainting

Paint over a person, sign or blemish. An on-device inpainting model fills the area to match its surroundings.

  • Standard engine: MI-GAN, fast and light
  • Ultra engine: LaMa, for larger or more complex areas on desktop-class devices

Some details we care about:

  • The network runs at a manageable resolution, then the fill is upscaled and composited back, so everything outside the hole stays untouched.
  • Because an upscaled fill is softer than the original photo, a gentle unsharp mask is applied to match texture.

Tool 6: Convert

Convert between PNG, JPEG, WebP, BMP, ICO and PDF.

  • HEIC and HEIF input from iPhones, decoded on your device
  • Multi-image to one multi-page PDF
  • Use PNG or WebP to keep transparency after background removal

Tool 7: Compress, hit the file size you need

Most compressors make you guess a quality number. APIC asks for the target size instead.

Under the hood it runs a binary search over encoder quality (roughly from 5% to 98%), keeping the highest quality whose output still fits under your limit. Need a photo under 200 KB for an upload form? Type 200 and you are done.


Tool 8: AI Tools

All on-device. Every result can be undone with Ctrl+Z.

  • Auto-enhance (one click): levels, exposure and a touch of colour
  • Smart crop: detect the subject and crop to it, free-form or to 1:1, 4:5, 3:4, 4:3, 16:9 and more. If no subject is found, it falls back to a centre crop and tells you.
  • AI upscale, 2x or 4x:
    • Max accuracy: Real-ESRGAN x4plus (~64 MB)
    • Fast: general-x4v3 (~5 MB)
    • Phones and tablets default to Fast so mobile stays smooth.

Tool 9 to 11: Layers, Social, Visual Intelligence

Layers

Compose multiple elements into one image.

Social

Exact-size presets for profile pictures, banners, covers, posts and stories across Instagram, YouTube, Facebook, X, TikTok, LinkedIn, Pinterest, Snapchat, Threads, Bluesky, Discord, Twitch, Spotify and more.

  • Drag and zoom to frame your photo
  • Safe-zone guides show where each platform crops or overlays your image
  • Download one size, or a ZIP of every size for a network
  • File sizes are kept under each platform's limit automatically

Visual Intelligence

Preflight checks that flag size, quality and privacy issues before you share.


Batch Studio

Process many images at once and get one ZIP:

  • Remove backgrounds in bulk
  • Resize by longest side or percentage
  • Convert formats
  • Set quality or a target KB

All of it runs on your device.


Privacy is the product

Typical online tool APIC
Uploads your photo to a server Processes it on your device
Per-image credits and paywalls Free, no per-image credits
Account required to start Works without an account (Google sign-in is optional)
Needs a connection every time Models are cached after first download
Online only Windows app (APIC for PC) for fully offline use

There is also a "Recent work" shelf that is saved on your device and can be cleared at any time.


The polish layer

  • Dark and light themes that apply before first paint, so there is no flash
  • A responsive layout tuned for phones, tablets and desktops, with mobile-aware model defaults
  • Honest, readable error messages instead of stack traces
  • Undo on AI actions

Why we build like this

At Akhouri Systems, we think powerful software should be:

  1. Private by design, not by policy
  2. Free where it can be, with no credit-meter anxiety
  3. Fast on the hardware you already own
  4. Explained in the open, which is why this post exists

The browser is a serious computer now. It runs neural networks, GPU compute and real colour science. We just decided to use all of it for you.


Try APIC in 10 seconds

  1. Open apic-studio.vercel.app
  2. Drop in a photo
  3. Choose Remove BG and press Remove
  4. Export a clean transparent PNG

Then explore the rest of the eleven tools.


Build something. Ship it. Keep going.

Every product on this list started as a blank file and a bad first draft. Our background remover used to be a tiny selfie-only model that gave blurry output. We rebuilt it around a 1024-pixel general-purpose model, edge-aware refinement and full-resolution output.

That is the whole secret: ship, listen, rebuild, repeat.

Whatever you are building, keep building. 🚀


FAQ

Is APIC really free?
Yes. There are no paid tiers and no per-image credits.

Are my photos uploaded to a server?
No. Editing, converting, compressing, resizing, background removal and object removal run on your device.

How does the AI background remover work?
It runs a segmentation model in your browser using WebAssembly, with WebGPU for the optional heavy model. Models download once and are cached.

Why is the first AI run slower?
The model has to download the first time. After that it is cached and runs start much faster.

Can I compress an image to a specific file size?
Yes. Set a target size and APIC searches for the best quality that fits.

Does it open iPhone HEIC photos?
Yes, and it converts them on your device.

Is there an offline version?
Yes. APIC for PC is a Windows app that runs offline.


Follow Akhouri Systems

Follow us on dev.to for more engineering deep dives, and tell us in the comments: which APIC internals should we break down next? The BiRefNet WebGPU path? The 3D LUT export? The guided-filter edge snapping?

Open APIC


Topics covered: free remove.bg alternative, best free background remover, background remover no upload, remove background from image online, AI background remover in browser, on-device AI, ONNX Runtime Web, WebAssembly, WebGPU, BiRefNet, IS-Net, LaMa inpainting, Real-ESRGAN upscaler, HEIC to JPG, compress image to target size, 3D LUT .cube export, social media image sizes, private photo editor, Akhouri Systems.

Top comments (41)

Collapse
 
effessdev profile image
EffessDev Akhouri Systems •

Bro,

😎

Collapse
 
effessdev profile image
EffessDev Akhouri Systems •

If anybody else would like to star, here is the link: github.com/effessdev/reptclip

Please do it 🙏 🥺

Collapse
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

your repltclip deserves bro do not say PLEASE, it deserves stars 😆🔥

Thread Thread
 
effessdev profile image
EffessDev Akhouri Systems •

Really! Then i should say that "you are not starring a repo which deserves stars go star ReptClip or you'll go to hell 🔥" 😆

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

lol I've starred.

Thread Thread
 
effessdev profile image
EffessDev Akhouri Systems •

I meant i should say that to others 🤣 I know you have starred ReptClip!

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

YEAHHH bro any update?

Thread Thread
 
effessdev profile image
EffessDev Akhouri Systems •

update on what? 🤔

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

APIC STUDIO?

Thread Thread
 
effessdev profile image
EffessDev Akhouri Systems •

You are the one updating APIC STUDIO lol

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

bro means any bug? or any update? lol our ad went viral 1k views in insta.

Thread Thread
 
effessdev profile image
EffessDev Akhouri Systems •

Yeah. Mobile ui bugs. Before opening an image, there is an overflow. Also, there is a gap on the top of the preview in mobile because in mobile the navbar disappears when we scroll down but the preview doesn't adjust. Then, what about the select feature and border featur i asked? 🤔

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

OKAY BE ONLINE I'M FIXING IT.

Thread Thread
 
effessdev profile image
EffessDev Akhouri Systems •

Ok! But I'll reach bus stop soon I'll go soon :(

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

discord online?

Thread Thread
 
effessdev profile image
EffessDev Akhouri Systems •

Nope :(

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

hmm bro apic studio updated.

Thread Thread
 
effessdev profile image
EffessDev Akhouri Systems •

Checking...

Thread Thread
 
effessdev profile image
EffessDev Akhouri Systems •

Bro border doesn't have preview...

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

ok hehe

Thread Thread
 
effessdev profile image
EffessDev Akhouri Systems •

Ok the bugs have been fixed 🥳

Bro the mobile UI doesn't allow us to resize the preview. Do we need to add that? 🤔

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

ok but it is not needed that's my view but still if you say again yes then I will as no one can ignore CTO & BBO 😂

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

@effessdev @nyaomaru @star123 also guys you're member of akhouri systems too 😂 so why you guys publish goated posts for other organizations but not akhouri systems? especially @effessdev bro? you're CTO @ Akhouri Systems how can you??

Thread Thread
 
nyaomaru profile image
nyaomaru Akhouri Systems •

Hahaha, fair question 😹

For me, the main problem is time. I usually spend quite a while making the header images for my posts, and I already have a pretty long publishing queue planned ahead. 😹

I’d definitely like to write something for Akhouri Systems too when I get a bit more room, but it’ll probably be a little further down the line!

Don’t worry, I haven’t forgotten about you guys. 😸

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

hehehe.
but yeah in dev.to no one can match your cover image style it's patented technology kindaa 😂
okay post when you feel free
akhouri systems have your silent support but now we want loud support I guess 🫡

Thread Thread
 
effessdev profile image
EffessDev Akhouri Systems • • Edited

@akhourianmolkumar I also thought about posting but I thought I am not allowed to 😂

But what am I supposed to post? 🤔

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

who said lol you are the 2nd biggest contributor @ akhouri systems after me lol and you will not have permission to post this is joke hahaha
you can whenever you want and you can post about what you contributed, bug updates, something your personal blog related to akhouri systems and more CTO stuffs hehe

Thread Thread
 
effessdev profile image
EffessDev Akhouri Systems •

Then I'll post when I get an idea (& time) 🙂

Collapse
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

peak FLEX 😆

Collapse
 
effessdev profile image
EffessDev Akhouri Systems •

Let me read this post 🧐

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

yeah also discussion hehehe

Thread Thread
 
effessdev profile image
EffessDev Akhouri Systems •

@puneetkumar2010 bro didn't give me star lol 😢 He has many accounts so if he star from each one i get multiple stars! 🙂

@puneetkumar2010 Would you mind dropping star(s)? 🥺

Thread Thread
 
puneetkumar2010 profile image
Puneet Kumar Mishra •

yea! done! :D

Thread Thread
 
effessdev profile image
EffessDev Akhouri Systems • • Edited

Bro this quickly? 🤯

Let me verify it first... 🏃‍➡️

Thread Thread
 
puneetkumar2010 profile image
Puneet Kumar Mishra •

yea 😅

Thread Thread
 
effessdev profile image
EffessDev Akhouri Systems •

Wowowoow thanks bro 🙏

I starred Crowdwide as well bro! 👍

Thread Thread
 
puneetkumar2010 profile image
Puneet Kumar Mishra •

Thanks 😎

Thread Thread
 
effessdev profile image
EffessDev Akhouri Systems •

🙏

Thread Thread
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

tit for tat

Collapse
 
paullovelace profile image
Paul Lovelace •

The 3D LUT export is the part I'd steal — grade a still in the browser and carry the same look into Resolve, most editors never think across tools like that. And the tier table is refreshingly honest: Best is a 520MB–1GB download, stated plainly. Which tier do people actually land on in practice — is Fast the real default and Best mostly aspirational?

Collapse
 
akhourianmolkumar profile image
Akhouri Anmol Kumar Akhouri Systems •

Fast is real default