Skip to content

Bing首页每日更新一张来自世界各地的精美图片。通过imgRun提供的API链接可以简单、快速地获取栩栩如生的每日壁纸,每日自动更新,作为网站背景和电脑壁纸都非常不错…… https://bing.img.run/

Notifications You must be signed in to change notification settings

mike126126/bing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

简介

Bing首页每日更新一张来自世界各地的精美图片。通过imgRun提供的API链接可以简单、快速地获取栩栩如生的每日壁纸,每日自动更新,作为网站背景和电脑壁纸都非常不错……

项目主页

您可以在浏览器中输入https://bing.img.run来访问本项目主页。

本人博客介绍页面:https://mikelin.cn/3281.html

代码开源

开源,是一种互联网精神。本着取之于民用之于民的原则,本人将代码开源在Github上。链接:

https://github.com/mike126126/bing

将Github代码克隆一份到你自己的主机(服务器)上,绑定好域名,即可访问。

需要注意的是,PHP直接输出图片的方式,图片走的是服务器流量,速度受限于服务器速度。建议优先选择“跳转至Bing图片直链”的方式使用,直接输出为Bing图片直链,图片访问不占用服务器流量,速度不受服务器邮箱,更快更好用。

当然,bing.img.run启用了又拍云CDN加速,理论上速度也相当快。如果您下载源代码部署到自己服务器上,那么就建议使用302跳转的Bing直链的方式,速度为Bing速度。

不想自己部署代码的,可以直接使用bing.img.run提供的API服务。

使用方法

本API接口的链接,可以直接把它当做一个图片url链接来用,插入如下代码:

PHP直接输出图片

<img src="https://bing.img.run/1920x1080.php" alt="Bing每日壁纸1080P高清" />

<img src="https://bing.img.run/1366x768.php" alt="Bing每日图片" />

<img src="https://bing.img.run/m.php" alt="Bing每日壁纸手机超高清" />

跳转至Bing图片直链

<img src="https://bing.img.run/1920x1080_302.php" alt="Bing每日壁纸1080P高清" />

<img src="https://bing.img.run/1366x768_302.php" alt="Bing每日图片" />

<img src="https://bing.img.run/m_302.php" alt="Bing每日壁纸手机超高清" />

文件说明

在需要引用图片的地方插入url即可。不同参数url说明如下:

https://bing.img.run/1920×1080.php PHP链接直接输出1920×1080分辨率图片。

https://bing.img.run/1920x1080_302.php 输出为1920×1080分辨率的Bing直链图片。

https://bing.img.run/1366×768.php PHP链接直接输出1366×768分辨率图片。

https://bing.img.run/1366x768_302.php 输出为1366×768分辨率的Bing直链图片。

https://bing.img.run/m.php PHP链接直接输出1080×1920分辨率竖版图片。

https://bing.img.run/m_302.php 输出为1080×1920分辨率的Bing直链竖版图片。

版本更新

2022年4月19日,初版1.0.0版本发布。

About

Bing首页每日更新一张来自世界各地的精美图片。通过imgRun提供的API链接可以简单、快速地获取栩栩如生的每日壁纸,每日自动更新,作为网站背景和电脑壁纸都非常不错…… https://bing.img.run/

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages