From mid-2025 I worked on an online world for AI agents and needed to create a ton of 2D assets with generative AI, so I began building tools for generating my character sprites, locations, and items, and found that I enjoyed working on the genAI tools more than the world itself. So I pivoted in March, and the result became DepthField.
DepthField Photo combines layer-based photo editing with filters, RAW, local depth-aware features etc. and generative AI with the latest image models.
It also sees what's in the image, segments and classifies what you click, and shows recommendations for contextual tools/edits. So when you click a dog, it will offer 'Brighten fur' as an option, whereas clicking a film camera will get you 'Crisp product shot' and 'Change color'. The recommendations are all made 100% locally using EfficientViT-SAM and SigLIP 2 with a curated vocabulary, so nothing is sent to the cloud unless the user chooses to make an AI edit.
Everything works offline except the cloud AI models, which are available either via a managed service or zero-markup BYOK to your own account on Fal, Replicate, WavespeedAI, Runware, Google AI Studio, or OpenAI. It supports open file formats like OpenRaster, and its own format (.dfp) is open and fully documented.
The stack: Svelte SPA in a Tauri shell, closed source. The compositor runs on WebGPU and stores each layer as 256x256 px tiles, so it can work with 100+ megapixel documents without having to load all the data onto one giant canvas. The Rust side runs on-device ML through ONNX Runtime’s Core ML provider and native Core ML. For each local model I measured performance on Neural Engine and the GPU and picked the winner. It also uses Apple’s Vision, Core Image and PDFKit through objc2 and a small Swift dylib.
The code is agent-written but with human architecture and oversight. The codebase is around 440k SLoC with 16k test cases taking up 190k SLoC, so almost half the codebase is tests. Test coverage is close to 90%, by design.
It runs on Apple Silicon, macOS 26+.
To try it: Free trial, no email, card, or account, download on https://depthfield.photo/. After the trial it's $69 once ($29 until Dec 31st), which covers 2 Macs.
A learning along the way: Not everything should run on the native Neural Engine. The depth model (Depth Anything v2 Small) was 20% faster on ANE, but compiling it for ANE took 150-200 seconds on the first startup after install, which made all the depth features unavailable for several minutes for no good reason. Moving it from ONNX Runtime's Core ML provider on the Neural Engine to native Core ML on the GPU eliminated that wait.
I would love to hear from anyone who uses generative AI -- what is your workflow between purely AI generators and more traditional editing? What's hard, missing, or annoying? What would the ideal workflow look like to you?
And if you are curious about any of the technical details or anything else, ask away!