<< 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
How to use rethumb in Python 2?
How to resize an image by width in Python 2 using rethumb?
How to resize an image by height in Python 2 using rethumb?
How to resize an image by width and height in Python 2 using rethumb?
How to create a square thumbnail from an image in Python 2 using rethumb?
How to read Exif data in json format from an image in Python 2 using rethumb?
How to make an image responsive in Python 2 using rethumb?
How to read GPS coordinates from an image in Python 2 using rethumb?
How to convert an image to JPG, GIF, PNG, TIF or WebP in Python 2 using rethumb?
How to resize an image to cover any dimensions in Python 2 using rethumb?