Describe the feature
Description
Currently, users cannot easily remove unwanted objects or people from their photos within PictoPy. They need to use external tools for basic photo editing tasks like object removal, which breaks their workflow and reduces productivity.
Magic Eraser introduces a powerful AI-powered inpainting feature that allows users to seamlessly remove unwanted elements from their photos with just a few brush strokes. This feature uses a lightweight ONNX model to generate realistic backgrounds where objects are removed, providing professional-grade editing capabilities within the app.
Why This Feature?
- Adds "Wow" Factor - Generative AI editing impresses users and sets PictoPy apart from basic photo viewers
- Complete Workflow - Users can edit photos without leaving the application
- Privacy-First - All processing happens locally using ONNX runtime
- Premium Feel - Professional editing tools typically found in paid applications
Key Features
- Interactive Brush Tool: Adjustable brush size for precise selection
- Real-time Preview: See removal results instantly before saving
- Undo/Redo Support: Multiple levels of undo for experimentation
- High-Quality Output: Compositing technique preserves original image quality
- Seamless Integration: Works alongside existing features like Text Detection
Technical Implementation
- Backend: FastAPI endpoint with LaMa ONNX model for inpainting
- Frontend: React component with canvas-based brush interaction
- Model: Lightweight LaMa model (~50MB) for fast local inference
- Compatibility: Works with common image formats (JPG, PNG, WebP)
User Workflow
- User selects "Magic Eraser" tool
- Adjusts brush size and paints over unwanted objects
- Clicks "Remove Object" to see AI-generated result
- Can undo/redo as needed
- Saves edited image to their collection
Tests
Code Quality
Integration
User Experience
Record
I agree to follow this project's Code of Conduct
Technical Notes
- Uses numpy<2.0 for ONNX Runtime compatibility
- Model automatically downloads during setup via
scripts/download_models.py
- Implements intelligent compositing to preserve image quality
- Processes images asynchronously to prevent UI blocking
Add ScreenShots
Adds advanced image editing feature to the app.
Record
Checklist before Submitting.
Describe the feature
Description
Currently, users cannot easily remove unwanted objects or people from their photos within PictoPy. They need to use external tools for basic photo editing tasks like object removal, which breaks their workflow and reduces productivity.
Magic Eraser introduces a powerful AI-powered inpainting feature that allows users to seamlessly remove unwanted elements from their photos with just a few brush strokes. This feature uses a lightweight ONNX model to generate realistic backgrounds where objects are removed, providing professional-grade editing capabilities within the app.
Why This Feature?
Key Features
Technical Implementation
User Workflow
Tests
Code Quality
Integration
User Experience
Record
I agree to follow this project's Code of Conduct
Technical Notes
scripts/download_models.pyAdd ScreenShots
Adds advanced image editing feature to the app.
Record
Checklist before Submitting.