Store image hash for self-hosted newsletters

This commit is contained in:
JonnyWong16 2018-03-20 22:54:36 -07:00
commit 7f67213ff7
8 changed files with 188 additions and 125 deletions

View file

@ -2425,8 +2425,8 @@ class PmsConnect(object):
return labels_list
def get_image(self, img=None, width='1000', height='1500', opacity=None, background=None, blur=None, img_format='png',
clip=False):
def get_image(self, img=None, width=600, height=1000, opacity=None, background=None, blur=None,
img_format='png', clip=False):
"""
Return image data as array.
Array contains the image content type and image binary
@ -2440,8 +2440,8 @@ class PmsConnect(object):
Output: array
"""
width = width or '1000'
height = height or '1500'
width = width or 600
height = height or 1000
if img:
if clip: