Skip to content

Commit 487fd51

Browse files
Clarify example
1 parent fd81313 commit 487fd51

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

examples/image_resize.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from transloadit.client import Transloadit
22

3-
tl = Transloadit("TRANSLOADIT_KEY", "TRANSLOADIT_SECRET")
4-
ass = tl.new_assembly()
5-
ass.add_file(open("fixtures/lol_cat.jpg", "rb"))
6-
ass.add_step("resize", "/image/resize", {"width": 70, "height": 70})
7-
response = ass.create(wait=True)
3+
client = Transloadit("TRANSLOADIT_KEY", "TRANSLOADIT_SECRET")
4+
assembly = client.new_assembly()
5+
assembly.add_file(open("fixtures/lol_cat.jpg", "rb"))
6+
assembly.add_step("resize", "/image/resize", {"width": 70, "height": 70})
7+
response = assembly.create(wait=True)
88

99
result_url = response.data.get("results").get("resize")[0].get("ssl_url")
1010
print("Your result:", result_url)

0 commit comments

Comments
 (0)