# Draw-to-Edit with Nano Banana (Free and Open-Source Workflow) <!-- ref: @content/youtube/sirio-berati/draw-to-edit-with-nano-banana-free-and-open-source-workflow tags: [image editing, image annotation, brush masking, Nano Banana, canvas API, open-source workflow] version: 2 updated_at: 2026-11-24T07:05:48.491Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=ie4PBhWTO1c)** # Draw-to-Edit with Nano Banana (Free and Open-Source Workflow) *Synthesized from Sirio, 2025-09-05.* Sirio presents solo, walking through a draw-to-edit feature shown inside the Enhancer AI platform and explaining how the feature is built, with the open-source code promised on his GitHub. ## Core Thesis Sirio argues that pointing at what to change is easier than describing it. Arrows, text, strokes and reference images let a user mark the target, and the feature then passes the marked-up image to Nano Banana with an instruction to apply the marks and remove them. He calls the whole thing a thin interface on top of an image model, and the clever part is how brush masks are cropped before they are sent. ## Key Insights - **Pointing beats prompting.** Describing "the second ring from the left, not the red one" in text is hard, so he uses an arrow plus a short text note such as "change this ring to green." - **Before-and-after view.** The result appears beside the original, and undo, redo and history tracking let the user step back through edits. - **Reference overlays.** He uploads a gold ring image, drops it over the target finger, and writes "add this ring to the finger." The same method swaps a product bottle or clothing. - **Brush masks keep edits local.** Brushing over one hand and writing "remove all rings" changes only that hand. A plain prompt to Nano Banana would have removed rings from both hands. The same approach changed text on a box. - **Burned-in annotations.** The feature saves the marked-up image on Edit, then sends it with a prompt to apply the changes indicated by the annotations and remove the markup, text and overlays. - **Canvas mechanics.** The canvas API handles strokes, text, arrows and image overlays. The canvas must match the source image resolution; an earlier build sent small images when the canvas was smaller than the upload. - **Brush masks become a bounding box.** Freehand strokes are converted to coordinates, padded into the smallest rectangle, and that crop is sent to the model. A Python script stitches the returned crop back into the original. He argues this is faster, cheaper and more accurate than sending an irregular shape, and says it holds until an inpainting version of Nano Banana exists. - **Quality tiers.** Pro and Ultra model options give higher-resolution, billboard-ready output on the same platform. ## Actionable Takeaways 1. For a targeted edit, draw an arrow to the object and add a short instruction, rather than writing a long descriptive prompt. 2. Burn the annotations into the image before sending, and instruct the model to apply them and then strip the markup. 3. For local edits, brush the region, pad its bounding box, send only that crop to the model, and stitch the result back with a script. 4. Keep the canvas at the source image's resolution so the output is not downscaled. 5. Provide undo and redo plus a side-by-side before-and-after view so users can review edits quickly. ## Notable Quotes > "the edit becomes local. It only applies to that particular section that we have masked." — Sirio > "You're just building a Photoshop wrapper and you're just sending everything to Nano Banana." — Sirio --- *Related: `@content/youtube/sirio-berati/nano-banana-is-wild-officially-released` · `@content/youtube/sirio-berati/seedream-4-is-insane-12-wild-demos` · `@content/youtube/sirio-berati/the-secret-photoshop-killer-new-insane-ai-editing-character-consistency` · `@content/youtube/wes-mcdowell/no-code-ai-website-tutorial` · `@content/youtube/sirio-berati/nano-banana-pro-found-my-passport-in-10-secs-is-this-even-legal`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*