Hi, Given a url to an image is there a way in Django/Python to pull this image in and then display it on my site (resized if possible)
Thanks
Hi, Given a url to an image is there a way in Django/Python to pull this image in and then display it on my site (resized if possible)
Thanks
If you just want to hotlink it print out the html snippet(<img src="http://example.com/img.png" width="100" height="100" />
).
If you want to store in at your server and resize it on the server-side you might want to look into ImageMagick or PIL for processing and urllib or pycurl for downloading.