gorram it
This commit is contained in:
parent
9bc8dab727
commit
c292949fd9
@ -9,7 +9,7 @@ import base64
|
||||
import subprocess
|
||||
import hashlib
|
||||
import datetime
|
||||
import io
|
||||
from io import BytesIO
|
||||
# You might need to install these modules; they aren't in stdlib.
|
||||
import pymysql
|
||||
import magic
|
||||
@ -280,7 +280,7 @@ def imgConv(imgfile):
|
||||
#else:
|
||||
# imgformat = 'PNG'
|
||||
img_stream = BytesIO()
|
||||
p.save(img_stream,
|
||||
img_data.save(img_stream,
|
||||
format = 'JPEG',
|
||||
dpi = img_data.info.get('dpi'),
|
||||
quality = 95,
|
||||
|
Reference in New Issue
Block a user