Giter VIP home page Giter VIP logo

random-picture's Introduction

Random-Picture

随机图片api
JUST FOR FUN

实验地址:

http://miku.ueuo.com/(无稳定性保证)
https://crazy-white.github.io/Random-Picture/description.html
https://crazy-white.github.io/Random-Picture/show.html

注意:

./url.txt务必一行一个url,不要留空格什么的
./test/show.php用于展示url.txt的所有图片
./test/mini.php只会转至url.txt的随机1张
./test/360.php会从360壁纸取得图片(约200kb,自行测试质量)

直接调用

访问api.php即可,跳转至图片地址

访问?id=数字,跳转至指定图片

服务器输出json

不建议使用

服务器随机输出

         
{"code":"200","url":"https:\/\/fp1.fghrsh.net\/2019\/07\/15\/c2549aaa63db078834ead6a92fe63b61.jpg"}
    

服务器读取图片信息后输出json,如非需要图片信息不建议使用

         
{"code":"200","url":"https:\/\/fp1.fghrsh.net\/2019\/07\/15\/c2549aaa63db078834ead6a92fe63b61.jpg","width":"1920","height":"1080","mime":"image\/jpeg","size":"821735"}
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.