Building a 100% Browser-Local Photo-to-Sticker Maker with ONNX Runtime Web, Polygon Nesting & 1:1 Print Calibration
Most online sticker makers follow the same pattern: upload your personal or family photo to a cloud server, wait in a queue, and pay to remove a watermark. While building PhotoToSticker.ai , I wanted to see how far we could push a 100% browser-local workflow—where photos never leave the user's device, transparent PNGs export without watermarks, and physical print sheets actually come out at the…
PhotoToSticker.ai is a revolutionary browser-based photo-to-sticker maker that eliminates the need for cloud servers and watermarks. Founder X built the service with a strong emphasis on local processing and accuracy.
Running AI background removal locally is one of the most complex challenges. Instead of relying on expensive GPU inference servers, PhotoToSticker utilizes the open-source ORMBG segmentation model directly in the browser using ONNX Runtime Web. This approach ensures that user photos remain private and that the service works on any device, including iPhones with HEIC images.
While the model struggles with some images, a local canvas Erase/Restore brush editor helps users manually fix issues. Additionally, a desktop pass enables up to a 1024 high-precision pass for even better results.
Polygon nesting is another crucial feature for maximizing sticker efficiency on A4 sheets. Instead of using a naive rectangular grid, the browser-side PDF generator (pdf-lib) implements a two-layer Contour cut workflow. This includes boundary tracing, hull simplification, and rotation-aware polygon nesting with a minimum 5 mm scissor gap.
The process often fits 30-50% more stickers on a single A4 sheet compared to a traditional grid layout. Dual vector cut lines are used for faster initial sectioning and finer final contours.
To address the issue of monitor calibration and ensure sticker sizes are accurate, PhotoToSticker provides a full-screen 100% Real-Size Sheet Preview. This preview is accompanied by a 5-second bank card calibration process, where users hold a standard ISO card flat against a dashed box and adjust a slider. The calibration data is saved in localStorage, allowing subsequent prints to be within ±1% accuracy. The service is completely free and available without any sign-up at phototosticker.ai.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to