Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 5faf134

Browse files
author
Andrew Stroup
committed
Merge branch 'patch-1'
2 parents 4bf4490 + 871e4f2 commit 5faf134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lambda_function.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from boto3.dynamodb.conditions import Key
1616
from boto3.session import Session
17-
from PIL import ImageOps
17+
from PIL import Image, ImageOps
1818
from twilio.rest import TwilioRestClient
1919

2020

@@ -89,7 +89,7 @@ def lambda_handler(event, context):
8989
# build meta data
9090
m_data = {'fromNumber': from_number, 'url': resp_url, 'name': name}
9191
output = StringIO.StringIO()
92-
im.save(output)
92+
im.save(output, format="PNG")
9393
im_data = output.getvalue()
9494
output.close()
9595

0 commit comments

Comments
 (0)