Auto quality when fetching cloudinary transform

This commit is contained in:
JonnyWong16 2018-05-15 08:43:20 -07:00
parent af917c4915
commit 79b45c1c46
2 changed files with 3 additions and 1 deletions

View file

@ -835,6 +835,8 @@ def cloudinary_transform(rating_key=None, width=1000, height=1500, opacity=100,
)
img_options = {'format': img_format,
'fetch_format': 'auto',
'quality': 'auto',
'version': int(time.time())}
if width != 1000:

View file

@ -3476,7 +3476,7 @@ class TWITTER(Notifier):
poster_url = parameters.get('poster_url','')
# Hack to add media type to attachment
if poster_url:
if poster_url and not helpers.get_img_service():
poster_url += '.png'
if self.config['incl_subject']: