Menu

1 / 2

How I added AI background removal to a Laravel site without uploading a single photo

DEV Community: laravel·Shahid Hussain·5 days ago
#XwNtcZK1
#devtolaravel#devto#dev#background#model
Long article (675 words) — no AI summary yet.
Reading 0:00
15s threshold

I run Prestofiles , a small set of free image and PDF tools (compress an image to 50KB, make a passport size photo, merge PDFs, and so on). The site is plain Laravel + Bootstrap + vanilla JS, and one rule from day one was: files never leave the visitor's device . Every tool runs in the browser.

That rule got interesting when I wanted to add a background remover and a "change photo background to white or blue" option for passport photos. Most background removers send your photo to a server with a GPU. I wanted the same result on a cheap shared host, with zero uploads. Here is what worked, and what didn't.

1.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.