4.7 KiB
4.7 KiB
Generate Required Images for SEO
Quick Start
Run the image generation script:
# Navigate to project root
cd C:\dev\mazer
# Run the image generator
python generate_images.py
This will create all required images in web/static/images/:
Generated Images
Favicons
- ✅
favicon-16x16.png- Browser tab icon (16×16) - ✅
favicon-32x32.png- Browser tab icon (32×32)
Social Media
- ✅
twitter-image.png- Twitter card preview (1200×675) - ✅
og-image.png- Facebook/LinkedIn preview (1200×630)
Mobile & PWA
- ✅
apple-touch-icon.png- iOS home screen icon (180×180) - ✅
icon-192x192.png- PWA icon (192×192) - ✅
icon-512x512.png- PWA icon (512×512)
Other
- ✅
screenshot.png- General screenshot (1280×720)
Design Features
All images follow the Neo-Brutalism design aesthetic:
Color Palette
- Yellow: #FFE500 (Neon yellow - primary brand color)
- Black: #000000 (Borders and text)
- Pink: #FF10F0 (Neon pink - accent)
- Cyan: #00F0FF (Neon cyan - accent)
- Green: #39FF14 (Neon green - accent)
- White: #FFFFFF (Background)
Design Elements
- ✅ Thick black borders (6-10px)
- ✅ Hard drop shadows (no blur)
- ✅ Flat colors (no gradients)
- ✅ Bold typography
- ✅ High contrast
Manual Creation (Optional)
If you prefer to create custom images manually:
Twitter Image (1200×675)
- Use Canva, Figma, or Photoshop
- Set canvas to 1200×675 pixels
- Add yellow background (#FFE500)
- Add title "MAZE GENERATOR" in bold black text
- Add 3 boxes with features: "8 ALGORITHMS", "ANIMATED SOLVING", "NEO-BRUTALISM"
- Use colors: pink, cyan, green for the boxes
- Add thick black borders (6-8px)
- Export as PNG
OG Image (1200×630)
- Set canvas to 1200×630 pixels
- Yellow background with black border
- Title: "MAZE GENERATOR"
- Subtitle: "8 ALGORITHMS • ANIMATED SOLVING"
- Optional: Add simple maze pattern
- Export as PNG
Favicons
- Create 32×32 and 16×16 versions
- Yellow background
- Simple "M" letter or maze pattern
- Black border
- Export as PNG
Apple Touch Icon (180×180)
- Create 180×180 canvas
- Yellow background
- Large "M" letter in center
- Thick black border
- Export as PNG
Image Optimization
After generating, optimize for web:
# Using ImageOptim (Mac)
imageoptim web/static/images/*.png
# Using pngquant (cross-platform)
pngquant --quality=80-95 web/static/images/*.png
# Using TinyPNG web service
# Upload to https://tinypng.com/
Verification
Check that all images exist:
ls -lh web/static/images/
Expected output:
favicon-16x16.png
favicon-32x32.png
apple-touch-icon.png
icon-192x192.png
icon-512x512.png
twitter-image.png
og-image.png
screenshot.png
Testing
Test Favicons
- Start server:
python api/app.py - Visit:
http://localhost:5000 - Check browser tab for favicon
Test Social Media Previews
- Deploy to production
- Test Twitter Card: https://cards-dev.twitter.com/validator
- Test Open Graph: https://developers.facebook.com/tools/debug/
- Test LinkedIn: Share URL and check preview
Test PWA Icons
- Visit site on mobile
- Use "Add to Home Screen"
- Check icon appears correctly
Alternative: Use Online Tools
If Python isn't available, use these online tools:
Favicon Generator
Social Media Image Generator
- https://www.canva.com/ (templates for Twitter/OG images)
- https://www.figma.com/ (free design tool)
Icon Generator
- https://www.pwabuilder.com/ (PWA icon generator)
Troubleshooting
Script Fails to Run
Problem: python: command not found
Solution:
# Windows
py generate_images.py
# Or install Python from python.org
# Or use Windows Store Python
Images Not Showing
Problem: 404 error for images
Solution:
- Check files exist in
web/static/images/ - Check Flask is serving static files
- Clear browser cache (Ctrl+Shift+R)
Low Quality Images
Problem: Images look pixelated
Solution:
- Re-run script with PIL (Pillow) installed
- Or create manually at higher DPI
- Use vector graphics tools (Figma, Illustrator)
Next Steps After Generation
- ✅ Verify all 8 images are created
- ✅ Check file sizes (should be <100KB each)
- ✅ Test locally at
http://localhost:5000 - ✅ Deploy to production
- ✅ Test with social media validators
- ✅ Submit to Google Search Console
Additional Resources
- Neo-Brutalism Design: https://neobrutalism.dev/
- PWA Icons Guide: https://web.dev/add-manifest/
- OG Image Best Practices: https://ogp.me/
- Twitter Cards Guide: https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards