Edit Banana: AI Converts Images to Editable DrawIO

Discover Edit Banana, the game-changing open-source tool that transforms static diagrams, flowcharts, and PDFs into fully editable DrawIO files and PPTX. Powered by fine-tuned SAM 3 segmentation and multimodal LLMs, it preserves layout, colors, text, and connections with stunning accuracy. Try the online demo instantly or run locally with Python. Perfect for engineers, researchers, and designers tired of recreating diagrams manually. Join 3.4k+ GitHub stars already using this productivity booster.

Edit Banana: Revolutionize Diagram Editing with AI-Powered Reconstruction

Static diagrams trapping your creativity? Edit Banana breaks the chains, transforming uneditable images and PDFs into fully manipulatable DrawIO files and PPTX presentations in seconds.

๐Ÿš€ What Makes Edit Banana Special?

This isn't basic OCR. Edit Banana delivers production-grade reconstruction:

โœ… 1:1 Visual Fidelity - Preserves colors, strokes, arrows, hierarchy โœ… Smart Segmentation - Fine-tuned SAM 3 identifies every element โœ… Perfect Text Recovery - Tesseract OCR + Pix2Text for formulas โœ… Native Editability - Every element independently draggable/resizable โœ… Multi-Format Output - DrawIO XML, SVG, PPTX

๐ŸŽฏ Real-World Examples That Convert

Flowcharts โ†’ Perfect node connections preserved Architecture Diagrams โ†’ Multi-level hierarchy maintained Technical Schematics โ†’ Arrow directions + dashed lines intact Scientific Formulas โ†’ LaTeX math rendered correctly

๐Ÿ› ๏ธ Lightning-Fast Setup (5 Minutes)

git clone https://github.com/BIT-DataLab/Edit-Banana.git
cd Edit-Banana
pip install -r requirements.txt
mkdir -p input output
python main.py -i input/diagram.png

Try Online First: editbanana.anxin6.cn - No setup needed!

๐Ÿ”ฌ Tech Stack Powering the Magic

  • SAM 3 (Fine-tuned): Pixel-perfect element segmentation
  • Multimodal LLMs: Intelligent layout understanding
  • Tesseract + Pix2Text: Bulletproof text/formula extraction
  • FastAPI Backend: Production-ready concurrent processing

๐Ÿ“ˆ Why 3.4K Stars & Growing?

  • Solves Real Pain: No more manual redraws
  • Offline Capable: Runs locally, no API limits
  • Apache 2.0 License: Commercial use welcome
  • Active Development: Arrow intelligence coming soon

๐ŸŽ‰ Get Started Today

  1. Quick Test: Online demo at editbanana.anxin6.cn
  2. Local Power: Clone + 5-minute setup
  3. Join Community: WeChat group for tips/support

Edit Banana doesn't just convert diagrams - it liberates your workflow. Star the repo, try the demo, and never redraw another flowchart!

โญ GitHub Repo | ๐Ÿš€ Live Demo