简介
unsplash是一个美图资源站点,站点提供大量高质量美图,重点突出,极其美丽,是获取资源的不二选择,同时该站点还提供了一系列接口,在这里介绍一种获取随机美图的方式
获取
使用unsplash提供的接口可以获取制定尺寸的随机图,方式如下:
例如,从unsplash获取一张1280*768尺寸的图,使用如下网址
https://source.unsplash.com/random/1280x768
效果
1280x768
1920x1080
站点
---------------------
Author: Frytea
Title: 获取指定尺寸随机美图
Link: https://blog.frytea.com/archives/51/
Copyright: This work by TL-Song is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.