Skip to content

Commit

Permalink
solved Pillow issue
Browse files Browse the repository at this point in the history
  • Loading branch information
anbo-de committed Feb 16, 2024
1 parent 6b089bc commit 5abb75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def replace_values_in_index_html(st, activate, new_title, new_meta_description=N
with open(page_icon_with_path, "rb") as image_file:
page_icon = Image.open(image_file)
# just use a size of 128x128 for the embedded favicon
page_icon = page_icon.resize((128, 128), Image.ANTIALIAS)
page_icon = page_icon.resize((128, 128), Image.Resampling.LANCZOS)
encoded_string = im_2_b64(page_icon)
favicon_base64 = "data:image/png;base64," + encoded_string.decode('utf-8')

Expand Down

0 comments on commit 5abb75c

Please sign in to comment.