You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should be able to update to:
text_size[0] = draw_watermark.textlength(
self._pelican_settings["PHOTO_WATERMARK_TEXT"], font, direction="rtl"
)
text_size[1] = font.size
not sure if this fixes everything.I'll fiddle with it some more and open a pull request.
jpulliam
added a commit
to jpulliam/photos
that referenced
this issue
Nov 21, 2023
Pillow deprecated "textsize" a few versions back and now throws an error.
Pillow 10.1.0 throws an error:
ERROR Could not process pages/page.md log.py:94
'ImageDraw' object has no attribute 'textsize'
Pillow now calls it "textlength"
I see it on line 1322...
text_size = draw_watermark.textsize(
self._pelican_settings["PHOTO_WATERMARK_TEXT"], font
)
Sorry, not confident enough to open a pull request. See also netbox-community/netbox-qrcode#48 Broke their code too.
The text was updated successfully, but these errors were encountered: