Skip to content

Instantly share code, notes, and snippets.

@ThinGuy
Created September 28, 2023 01:14
Show Gist options
  • Select an option

  • Save ThinGuy/873c14b89bba8285784f1aa6cfb4999b to your computer and use it in GitHub Desktop.

Select an option

Save ThinGuy/873c14b89bba8285784f1aa6cfb4999b to your computer and use it in GitHub Desktop.
Fix thumbnail problems in Hydrapaper when on a python3-based system or when using Dark mode
#!/bin/bash
# Fix thumbnails (Long deprecated Image.ANTIALIAS finally removed in PIL 10.0.0)
sudo sed -i 's/Image.ANTIALIAS/Image.LANCZOS/g' /usr/lib/python3/dist-packages/hydrapaper/wallpaper_flowbox_item.py
# Fix merge issues when using Dark mode (known buy merging to a single wallpaper in dark mode)
sudo sed -i 's/ if set_dark else \x27picture-uri\x27//g' /usr/lib/python3/dist-packages/hydrapaper/wallpaper_merger.py
# Restart/Reload hydrapaper App
@johnsonmlw

Copy link
Copy Markdown

Brilliant. Thank you for taking the time to publish this. Fixes thumbnails in Debian 13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment