always resize images
This commit is contained in:
parent
e83c970717
commit
2fd30ea5d0
2
main.py
2
main.py
@ -83,7 +83,7 @@ async def send_post(post: E621Post, tag_list: List[str]):
|
|||||||
src_path.unlink()
|
src_path.unlink()
|
||||||
mp4_path.unlink()
|
mp4_path.unlink()
|
||||||
elif post.file.ext in ('png', 'jpg'):
|
elif post.file.ext in ('png', 'jpg'):
|
||||||
if post.file.size > 10000000:
|
# if post.file.size > 10000000:
|
||||||
logging.warning('compressing')
|
logging.warning('compressing')
|
||||||
dl_im = Image.open(file).convert('RGBA')
|
dl_im = Image.open(file).convert('RGBA')
|
||||||
size = dl_im.size
|
size = dl_im.size
|
||||||
|
Loading…
Reference in New Issue
Block a user