测试用占位图像的生成工具 (Placeholder Image / Image Mocking)

[b](1)[url=http://dummyimage.com/]http://dummyimage.com/[/url][/b]
用PHP写的,基于MIT License代码开源。可以设置图像的宽度、高度、背景色、前景色、图像格式、文本。

URI格式:
http://dummyimage.com/宽度x高度/背景色/前景色.图像格式&文本

例如:
http://dummyimage.com/320x240/333333/00a2ff.png&text=RENSANNING
[img]http://dummyimage.com/320x240/333333/00a2ff.png&text=RENSANNING[/img]

[b](2)[url=http://placehold.it/]http://placehold.it/[/url][/b]
功能基本等同于dummyimage.com

例如:
http://placehold.it/320x240/333333/00a2ff.png&text=RENSANNING
[img]http://placehold.it/320x240/333333/00a2ff.png&text=RENSANNING[/img]

[b](3)[url=http://fpoimg.com/]http://fpoimg.com/[/url][/b]
除了不能设置图像格式,只能输出PNG外其他功能基本等同于dummyimage.com,就是URI的格式稍有不同。

例如:
http://fpoimg.com/320x240?text=RENSANNING&bg_color=333333&text_color=00a2ff
[img]http://fpoimg.com/320x240?text=RENSANNING&bg_color=333333&text_color=00a2ff[/img]

[b](4)[url=http://placehold.jp/]http://placehold.jp/[/url][/b]
可以设置:宽度、高度、前景色、背景色、文字大小、图像格式(PNG/JPG)、文字、CSS

例如:
http://placehold.jp/46/cc9999/993333/320x240.png?text=RENSANNING
[img]http://placehold.jp/46/cc9999/993333/320x240.png?text=RENSANNING[/img]

[b](5)[url=http://placekitten.com/]http://placekitten.com/[/url][/b]
这个除了能设置宽度和高度外,有趣的是图像都是猫。

比如:
http://placekitten.com/320/240
[img]http://placekitten.com/320/240[/img]

[b](6)[url=http://placeimg.com/]http://placeimg.com/[/url][/b]
这个除了能设置宽度和高度外,还可以指定输出图像的分类(animals、arch、nature、people、tech),图像的颜色(grayscale,sepia)

例如:
http://placeimg.com/320/240/tech/sepia
[img]http://placeimg.com/320/240/tech/sepia[/img]

[b](7)[url=http://lorempixel.com/]http://lorempixel.com/[/url][/b]
<img src="http://lorempixel.com/640/340/sports/">
[img]http://lorempixel.com/640/340/sports/[/img]

[b](8)[url=http://uifaces.com/]http://uifaces.com/[/url][/b]
[img]http://dl2.iteye.com/upload/attachment/0093/7022/7721c5fc-01f1-303b-b5b3-5787383e6bdc.png[/img]

[b](9)[url=http://cambelt.co/]http://cambelt.co/[/url][/b]
可以指定Font或者显示Icon。
<img src="http://cambelt.co/300x200/rensanning?color=234653,eeeeee&font=Dyno-Bold">
[img]http://dl2.iteye.com/upload/attachment/0095/7144/f4e70069-5b36-395b-97d6-88617521c179.png[/img]


更多:[url=http://net.tutsplus.com/articles/web-roundups/the-top-8-placeholders-for-web-designers/]http://net.tutsplus.com/articles/web-roundups/the-top-8-placeholders-for-web-designers/[/url]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值