A Flask web application for managing, browsing, and organizing Stable Diffusion generated images.
1.2K
A powerful Flask-based web application for managing, browsing, and organizing Stable Diffusion generated images with comprehensive metadata extraction and management capabilities.
Clone the repository
git clone <your-repo-url>
cd stable_difusion_browser
Build and run with Docker Compose
docker-compose up -d
Access the application
http://localhost:5000For production use, enable the nginx reverse proxy:
docker-compose --profile production up -d
This will:
# Build the image
docker build -t sd-gallery .
# Run the container
docker run -d \
--name sd-gallery \
-p 5000:5000 \
-v $(pwd)/gallery_images:/app/gallery_images \
-v $(pwd)/image_database.json:/app/image_database.json \
sd-gallery
stable_difusion_browser/
āāā sd_gallery_app.py # Main Flask application
āāā requirements.txt # Python dependencies
āāā Dockerfile # Docker image definition
āāā docker-compose.yml # Docker Compose configuration
āāā .dockerignore # Docker build exclusions
āāā README.md # This file
āāā gallery_images/ # Image storage directory
āāā image_database.json # Image metadata database
āāā templates/ # HTML templates
āāā base.html
āāā gallery.html
āāā upload.html
āāā image_detail.html
āāā edit_image.html
āāā stats.html
āāā debug.html
FLASK_ENV: Set to production for production deploymentFLASK_APP: Main application file (default: sd_gallery_app.py)FLASK_SECRET_KEY: Secret key for session management./gallery_images:/app/gallery_images: Persistent image storage./image_database.json:/app/image_database.json: Persistent metadata./templates:/app/templates: Customizable templatesGET /api/images: Retrieve all images as JSONGET /image/<filename>: Serve image filesGET /image-detail/<id>: Get detailed image informationPort already in use
# Check what's using port 5000
lsof -i :5000
# Or use a different port in docker-compose.yml
Permission denied errors
# Ensure proper ownership of mounted volumes
sudo chown -R $USER:$USER gallery_images/
sudo chown $USER:$USER image_database.json
Container won't start
# Check container logs
docker-compose logs sd-gallery
The application includes built-in health checks:
docker pscurl http://localhost:5000/This project is open source. Please check the license file for details.
For issues and questions:
To update the application:
# Pull latest changes
git pull
# Rebuild and restart
docker-compose down
docker-compose up -d --build
Happy Image Management! šØ
Content type
Image
Digest
sha256:b8be3dfebā¦
Size
123.5 MB
Last updated
about 1 year ago
docker pull whiskeycoder/stable-diffusion-gallery