Free Trial
10 days, no credit_card

<< More Tutorials

How to use rethumb in Python 3?

To use rethumb in Python 3 try the following code:

from urllib.request import urlopen

response = urlopen("http://api.rethumb.com/v1/width/100/http://factor45.org/images/beach.jpg")
fh = open("beach.thumb.jpg", "wb")
fh.write(response.read())
fh.close()

Start using this example now

Use the following commands to get started:

$ git clone https://github.com/rethumb/rethumb-python3-examples.git
$ cd rethumb-python3-examples
$ python3 generic.js

More examples using Python 3