Skip to content

Conversation

chicken-suop
Copy link

Describe your changes

Added configurable PIL image pixel limits to fix terminal colors not loading with large wallpaper images.

Problem: Large wallpapers (>200MP) fail PIL's decompression bomb protection, causing terminal color generation to fail and resulting in invisible terminal text.

Solution:

  • Added maxImagePixels config option in wallpaperTheming (default 200MP for security)
  • Users can adjust in Settings → Advanced → Max image pixels or set to 0 for unlimited
  • Updated color generation script to respect the limit
  • Added documentation in README Common fixes section

Is it ready? Questions/feedback needed?

Ready for review. Made it fully configurable as requested in contributing guidelines.

- Add maxImagePixels setting to wallpaperTheming config (default 200MP)
- Add --max-pixels argument to color generation script
- Update switchwall.sh to read config and pass limit to Python
- Add Advanced Config UI for users to adjust the limit
- Document terminal color issues in README common fixes

Fixes terminal colors not loading when large wallpapers fail PIL
decompression bomb protection, while maintaining security defaults.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant