A Flask-based web application that transforms uploaded images into SAP brand-compliant anvil-styled graphics. Upload any image, crop it to your desired aspect ratio, and generate professional anvil overlays in multiple styles with high-resolution output up to 8K.
- Flat: Semi-transparent colored overlay
- Stroke: Outlined anvil border with subject preserved
- Gradient: Multi-tone gradient fill within anvil shape
- Window: Image visible only within anvil shape
- Silhouette: Subject cutout over colored anvil background
- Gradient Silhouette: Subject cutout over gradient anvil background
- High-resolution support up to 8K (7680×4320)
- Large file handling (up to 60MB)
- Dual pipeline: fast preview + high-res final output
- AI background removal (rembg with model fallbacks)
- SAP color palette
- Aspect ratios: 16:9 and 1:1
- Interactive controls: scale, position, opacity
- Live preview updates
- Preview downloads (PNG)
- ZIP package with 3-layer Photoshop-ready PNGs
- Smart automated naming
- Python 3.9+
- pip (Python package installer)
-
Clone the repository:
git clone https://github.com/slurpey/anvilizer.git cd anvilizer -
Install dependencies:
pip install -r requirements.txt
-
Run the application:
python app.py
-
Open your browser:
Navigate tohttp://localhost:5000
- Upload your image
- Crop and adjust settings
- Generate previews
- Download PNGs or ZIP packages
anvilizer/
├── app.py # Flask application
├── requirements.txt # Dependencies
├── layer_package_generator.py
├── static/
│ ├── css/styles.css
│ ├── js/script.js
│ ├── images/
│ └── favicon.ico
├── templates/
│ └── index.html
├── generated/ # Temporary files (auto-cleanup)
└── logs/ # Persistent logs
- Ensure Python and all dependencies are installed
- Supported image formats: JPG, PNG, WebP, HEIC
- Check application logs in
logs/for issues
- Fork the repository
- Create a feature branch
- Commit changes and push
- Open a Pull Request
This project is designed for internal SAP use with brand-compliant image processing capabilities.
Built for SAP Brand Compliance
