Fork me on GitHub

imgsrc.cn

What

imgsrc.cn is a simple image placeholder service. Nothing too fancy here...just fast loading, small file sized, placeholder images for use on website mockups in HTML or other design work.

How

You can either abuse our server and bandwidth or run your own installation of our placeholder PHP code.

使用方法Use our server

The simplest way to get placeholder images is to follow the pattern below to create an image URL and drop that into your img tag. Replace {px} with the dimensions in pixels (either WxH or just W to get a square), {bg} with background color (hex), and {fg} with font color (hex). Both {bg} and {fg} are optional.

http://imgsrc.cn/{px}/{bg}/{fg}

示例Examples

http://imgsrc.cn/78
http://imgsrc.cn/50x30
http://imgsrc.cn/137/aaa
http://imgsrc.cn/250x309/194343/66ee99

Use your server

Head on over to our GitHub repo and grab the img-src PHP code. The README file included in the repo will walk you through getting it all set up.

Who

imgsrc.cn is copy of img-src.co which was developed by Brian Kiewel, a web developer currently based in Tucson, AZ. If you have any questions or comments, you can contact him on Twitter at @briankiewel. Please submit any bugs to our GitHub issue tracker.