其实imgur贴图挺好的,可以考虑支持

2012-03-09 11:05:28 +08:00
 gDD
注:我自己从来不用/没兴趣/不敢用(实名)新浪微博,也不用新浪的贴图,我也没贴图的需求。但我在V2EX帖过图片链接。

##Pros:
* reddit上大量的[ imgur.com ]()贴图,服务的长久性能保证。(没因果关系)

* imgur有流量统计功能。

* imgur能创建账户对图片进行管理。不会出现这种[ http://www.v2ex.com/t/27074 ]() 问题。

* 墙外的服务。

##Cons:
* 中国IP在imgur上要注册才能上传图片。

* 中国访问速度不稳定。
6272 次点击
所在节点    Project Babel
3 条回复
lin
2012-03-09 11:37:41 +08:00
还不错,我的网站(同样是用Babel v2搭建的)很早就用了,相关代码:

# auto convert imgur.com links to image tags
def imgur(value):
imgs = re.findall('(http://imgur.com/[a-zA-Z0-9\/]+)\s?', value)
if (len(imgs) > 0):
for img in imgs:
img_id = re.findall('http://imgur.com/([a-zA-Z0-9\/]+)', img)
if (img_id[0] != ''):
value = value.replace('http://imgur.com/' + img_id[0], '<a href="http://imgur.com/' + img_id[0] + '" target="_blank"><img src="http://i.imgur.com/' + img_id[0] + '.jpg" class="imgly" border="0" /></a>')
return value
else:
return value
register.filter(imgur)
lin
2012-03-09 11:38:37 +08:00
9hills
2012-03-09 12:05:21 +08:00
中国区的限制真心不方便。匿名上传的API用curl就能调,可惜中国区不能用啊。。。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/29136

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX