🚨 rethumb will shutdown on September 4th, 2021 🚨 (Twitter)

<< More Tutorials

How to use rethumb in Python 2?

To use rethumb in Python 2 try the following code:

import urllib2

response = urllib2.urlopen("http://api.rethumb.com/v1/width/100/http://factor45.org/images/beach.jpg")
fh = open("beach.thumb.jpg", "w")
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-python2-examples.git
$ cd rethumb-python2-examples
$ python generic.js

More examples using Python 2