gorram it
This commit is contained in:
parent
9bc8dab727
commit
c292949fd9
18
podloader.py
18
podloader.py
@ -9,7 +9,7 @@ import base64
|
|||||||
import subprocess
|
import subprocess
|
||||||
import hashlib
|
import hashlib
|
||||||
import datetime
|
import datetime
|
||||||
import io
|
from io import BytesIO
|
||||||
# You might need to install these modules; they aren't in stdlib.
|
# You might need to install these modules; they aren't in stdlib.
|
||||||
import pymysql
|
import pymysql
|
||||||
import magic
|
import magic
|
||||||
@ -280,14 +280,14 @@ def imgConv(imgfile):
|
|||||||
#else:
|
#else:
|
||||||
# imgformat = 'PNG'
|
# imgformat = 'PNG'
|
||||||
img_stream = BytesIO()
|
img_stream = BytesIO()
|
||||||
p.save(img_stream,
|
img_data.save(img_stream,
|
||||||
format = 'JPEG',
|
format = 'JPEG',
|
||||||
dpi = img_data.info.get('dpi'),
|
dpi = img_data.info.get('dpi'),
|
||||||
quality = 95,
|
quality = 95,
|
||||||
optimize = True,
|
optimize = True,
|
||||||
progressive = False,
|
progressive = False,
|
||||||
icc_profile = img_data.info.get('icc_profile'),
|
icc_profile = img_data.info.get('icc_profile'),
|
||||||
subsampling = 'keep')
|
subsampling = 'keep')
|
||||||
# Be kind, please rewind.
|
# Be kind, please rewind.
|
||||||
# Don't sue me, Blockbuster. lol
|
# Don't sue me, Blockbuster. lol
|
||||||
img_stream.seek(0)
|
img_stream.seek(0)
|
||||||
|
Reference in New Issue
Block a user