Commit Graph

5 Commits

Author SHA1 Message Date
c94988561c ora editor 2026-03-27 23:33:04 -07:00
fb812e57bc Restructure ORA editor into modular blueprints with browse dialog
- Split app.py into route blueprints (files, layers, images, polygon, mask, krita)
- Create services layer (polygon_storage, comfyui, file_browser)
- Extract config constants to config.py
- Split templates into Jinja partials (base, components, modals)
- Add browse dialog for visual file navigation
- Add /api/browse endpoint for directory listing
2026-03-27 21:29:27 -07:00
61c8200443 Fix ORA editor mask preview: server-side compositing with simple toggle
- Add /api/image/masked endpoint that applies mask as alpha channel
- Simplify mask preview modal: just toggle between 'With Background' and 'Masked Only'
- Remove complex CSS mask/blend mode approach
- Server returns pre-composited masked image (transparent where mask is black)
2026-03-27 17:17:19 -07:00
be042c81ce Add logging and improve mask extraction
- Added logging throughout the application
- Updated mask extraction to load and pass base image to ComfyUI
- Added polygon overlay support for mask extraction
- Added urllib.parse import for URL encoding
- Better error handling and status reporting
2026-03-27 09:36:31 -07:00
c79b0b4add Add Flask application with API endpoints
- Routes for file operations, layer management, polygon drawing
- Mask extraction endpoint with ComfyUI integration
- Krita integration endpoints
- Basic API tests
2026-03-27 08:49:27 -07:00