forgot to scale on forced generate. Now fixed
This commit is contained in:
parent
3ba034ea02
commit
892bfc21bd
6
main.py
6
main.py
@ -79,9 +79,9 @@ def generate():
|
||||
generated = generated + 1
|
||||
elif Path(config.THUMBNAIL_DIR + "/" + str(CVDB) + ".jpg").exists() == False:
|
||||
cover = s.open(filelist[1]).read()
|
||||
c = open(config.THUMBNAIL_DIR + "/" + str(CVDB) + ".jpg", 'wb+')
|
||||
c.write(cover)
|
||||
c.close()
|
||||
image = Image.open(BytesIO(cover))
|
||||
image.thumbnail(config.MAXSIZE,Image.ANTIALIAS)
|
||||
image.save(config.THUMBNAIL_DIR + "/" + str(CVDB) + ".jpg")
|
||||
generated = generated + 1
|
||||
else:
|
||||
skippedcount = skippedcount + 1
|
||||
|
Loading…
Reference in New Issue
Block a user