Hi Vibhu,

This works automatically for certain sites if they implement a standard 
called oEmbed (http://oembed.com/). Several sites like Flickr, Youtube etc 
support providing a thumbnail for a url within their domain. Django has 
several packages which support oEmbed, of which, I have used micawber (
https://pypi.python.org/pypi/micawber) very successfully in the past.

For a general solution, you will need to download the page in the 
background and parse it for a representative image. 

Hope this addresses your question.

Regards,
Arun

On Monday, January 6, 2014 2:48:30 PM UTC+5:30, Vibhu Rishi wrote:
>
> Hi,
>
> Is there a way to have images show up by just pasting a url ? 
>
> e.g. on Quora, if i paste a url to an image - 
> http://www.brothersthegame.com/core/media/images/brothers_europe05_big.jpg
>
> it shows up as an image not as a URL. How can I achieve the same using 
> django ? 
>
> Regards,
> Vibhu
>
> -- 
> Simplicity is the ultimate sophistication. - Leonardo da Vinci
> Life is really simple, but we insist on making it complicated. - Confucius 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4bf2d938-75a2-4fa9-9796-9a52a150a073%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to