I had a few issues getting it to run that I thought I'd share -- I was able to fix them by editing the code directly.
The first issue was in line 50 of mosaic.py - basically the URL for the default font is outdated, so the file that gets downloaded isn't a valid font file. Instead, the URL should be https://github.com/googlefonts/Inconsolata/raw/main/fonts/ttf/Inconsolata-Regular.ttf
The second issue was using Image.ANTIALIAS from PIL on line 238 -- that's been deprecated for a bit and removed in v10+, with the new attribute being LANCZOS
So that means line 238 should read im.thumbnail(size, Image.LANCZOS) instead
After making these changes I was able to generate a great-looking mosaic with the latest beets version and everything!
Hi! Thanks for creating this plugin, it's great!
I had a few issues getting it to run that I thought I'd share -- I was able to fix them by editing the code directly.
The first issue was in line 50 of
mosaic.py
- basically the URL for the default font is outdated, so the file that gets downloaded isn't a valid font file. Instead, the URL should behttps://github.com/googlefonts/Inconsolata/raw/main/fonts/ttf/Inconsolata-Regular.ttf
I had updated line 50 to look like this:
The second issue was using
Image.ANTIALIAS
from PIL on line 238 -- that's been deprecated for a bit and removed in v10+, with the new attribute beingLANCZOS
So that means line 238 should read
im.thumbnail(size, Image.LANCZOS)
insteadAfter making these changes I was able to generate a great-looking mosaic with the latest beets version and everything!