Browse Source

Mettre à jour 'bot.py'

improve-readme
Dryusdan 2 years ago
parent
commit
320c7056d0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      bot.py

+ 2
- 2
bot.py View File

@@ -41,8 +41,8 @@ def post_img_local(mastodon, text, log, config):

im = Image.open(img_path+ file)
width, height = im.size
NEW_WIDTH = 1980
if width > 1980:
NEW_WIDTH = 2048
if width > 2048:
difference_percent = NEW_WIDTH / width
new_height = height * difference_percent
size = new_height, NEW_WIDTH


Loading…
Cancel
Save