ashishkranjan / dabr

Automatically exported from code.google.com/p/dabr
0 stars 0 forks source link

tinypic.com thumbnail previews #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What would you like dabr to do?

Recognise images posted via http://tinypic.com/ 

How would you prefer dabr to do it?

Same as for twitpic.com, etc.

[Why are there so many..?!]

Original issue reported on code.google.com by pigsotwing on 22 Dec 2009 at 7:54

GoogleCodeExporter commented 9 years ago
this regex seems to work

    '#(i\d\d.tinypic.com/[\w]+)#i' => 'http://%s_th',

but not sure what it does to download times as tinypic doesn't seem to thumbnail
animated images, only reduce them in size.

Original comment by ldoug...@gmail.com on 23 Dec 2009 at 1:08

GoogleCodeExporter commented 9 years ago
here are some more:

    '#youtu.be\/([_-\d\w]+)#i' => 'http://i.ytimg.com/vi/%s/1.jpg',
    '#twitvid.com/([\w]+)#i' => 'http://images.twitvid.com/%s.jpg',
    '#pic.gd/([\w]+)#i' =>
'http://TweetPhotoAPI.com/api/TPAPI.svc/imagefromurl?size=thumbnail&url=http://w
ww.pic.gd/%s',
    '#imgur.com/([\w]{5})[\s\.ls][\.\w]*#i' => 'http://imgur.com/%ss.png',
    '#imgur.com/gallery/([\w]+)#i' => 'http://imgur.com/%ss.png',
    '#imgur.com/delete/([\w]+)#i' => 'images/trash.gif',
    '#brizzly.com/pic/([\w]+)#i' => 'http://pics.brizzly.com/thumb_sm_%s.jpg',

Original comment by ldoug...@gmail.com on 25 Dec 2009 at 11:48

GoogleCodeExporter commented 9 years ago
And img.ly:
'#img\.ly\/([\w\d]+)#i' => 'http://img.ly/show/thumb/%s',

Original comment by cnye...@gmail.com on 25 Dec 2009 at 4:19

GoogleCodeExporter commented 9 years ago
Added these to http://code.google.com/p/dabr/source/detail?r=269

Original comment by terence.eden on 9 Feb 2010 at 3:29

GoogleCodeExporter commented 9 years ago
Here is the instagram:

'#instagr.am/p/([\d\w]+)#i' => 'http://instagr.am/p/%s/media/?size=t',

Original comment by Julien.G...@gmail.com on 11 Apr 2011 at 4:44

GoogleCodeExporter commented 9 years ago
Embedly covers all of these image services.

Original comment by terence.eden on 13 Jun 2011 at 12:28