All Projects → galnetwen → Random Image

galnetwen / Random Image

随机图片服务

Projects that are alternatives of or similar to Random Image

Telegramgallery
world level Gallery , from Telegram,Photo album selector,QQ style
Stars: ✭ 1,294 (+996.61%)
Mutual labels:  picture
Prob.js
Generate random numbers from different probability distributions.
Stars: ✭ 102 (-13.56%)
Mutual labels:  random
Albumcamerarecorder
一个高效的多媒体支持操作库,可多方面的简单配置操作相册、拍照、录制、录音等功能。也支持配套使用的展示图片、视频、音频的九宫格功能。 (An efficient multimedia support operation library, can be a variety of simple configuration operation album, photo, recording, recording and other functions.Also support supporting the use of the display of pictures, video, audio of the nine grid function.)
Stars: ✭ 106 (-10.17%)
Mutual labels:  picture
React Responsive Picture
A future-proof responsive image component that supports latest Picture specification
Stars: ✭ 91 (-22.88%)
Mutual labels:  picture
Octo
A fuzzing library in JavaScript. ✨
Stars: ✭ 96 (-18.64%)
Mutual labels:  random
Hyperapp Fx
Effects for use with Hyperapp
Stars: ✭ 105 (-11.02%)
Mutual labels:  random
Gopherkon
Go mascot image constructor. Create your cute own gopher.
Stars: ✭ 86 (-27.12%)
Mutual labels:  picture
V Viewer
Image viewer component for vue, supports rotation, scale, zoom and so on, based on viewer.js
Stars: ✭ 1,776 (+1405.08%)
Mutual labels:  picture
Grid
The Guardian’s image management system
Stars: ✭ 1,380 (+1069.49%)
Mutual labels:  picture
Gis
gis (go image server) go 实现的图片服务,实现基本的上传,下载,存储,按比例裁剪等功能
Stars: ✭ 108 (-8.47%)
Mutual labels:  picture
Keygen Php
A fluent PHP random key generator.
Stars: ✭ 93 (-21.19%)
Mutual labels:  random
Weightedrand
⚖️ Fast weighted random selection for Go
Stars: ✭ 96 (-18.64%)
Mutual labels:  random
Rando Php
RandoPhp is a open source library that implements random generators (Integer, Char, Byte, Sequences, Boolean) and take random sample from arrays
Stars: ✭ 107 (-9.32%)
Mutual labels:  random
Hxphotobrowser
📷 Photo browser that simulates progressive loading 可以模拟渐进式加载的图片浏览器
Stars: ✭ 91 (-22.88%)
Mutual labels:  picture
Randomkit
Random data generation in Swift
Stars: ✭ 1,458 (+1135.59%)
Mutual labels:  random
Deep Learning With Cats
Deep learning with cats (^._.^)
Stars: ✭ 1,290 (+993.22%)
Mutual labels:  picture
Tinyraycaster
486 lines of C++: old-school FPS in a weekend
Stars: ✭ 1,383 (+1072.03%)
Mutual labels:  picture
Fakedata
Haskell Library for producing quality fake data
Stars: ✭ 118 (+0%)
Mutual labels:  random
Btrfs Heatmap
Visualize the layout of data on your btrfs filesystem over time
Stars: ✭ 110 (-6.78%)
Mutual labels:  picture
Wanimal 1983
WANIMAL(王动)全部原版资源免费分享,目前WANIMAL作品在黑市上最高被炒到了5000多元,本项目整理了WANIMAL从2013年到现在的所有作品,建议在电脑查看图片效果会更好(目前更新到2020年3月,共8765张图片,大小16.1G,还会持续更新)
Stars: ✭ 107 (-9.32%)
Mutual labels:  picture

前言

写文章想要配图,但是懒得挑图? 网页背景千遍一律?

最早的时候,经常听说“漫月API”,就很好奇这个是什么东东,因为“漫月”一词勾起了我的好感……

在学长最初布置博客的时候,写文章都会挑选一张图给配上,避免页面太过单调,虽然学长我主张简洁、单栏展示的网页界面,但还是觉得有那么点缀还是舒服点呢 ~

于是,就有了自己的私用随机图服务了。

还是老样子,把代码整理一番,放到 GitHub 上面去……

特性

  • 完全隐藏图片文件的真实地址
  • 支持调用域名白名单
  • 支持多文件夹分类目录
  • 前端调用支持使用随机数载入

部署

  1. 下载代码,解压至你域名文件夹根目录
  2. 开启 Apache 或者 Nginx 的伪静态功能
  3. 访问:你的域名/images
  4. 大功告成

配置

打开 images.php 文件,添加域名白名单与默认文件夹即可。 照葫芦画瓢,不用多说了吧。

多文件夹说明: 第二个文件夹无需配置,直接使用 URL 传递参数即可。

比如: 默认文件夹的分类,调用的域名是:“ 你的域名/images ”
其它文件夹的分类,调用是域名是:“ 你的域名/images/文件夹名 ”

注意! 若要使用随机数调用,必须启用 Apache 或者 Nginx 的伪静态功能,否则空白输出。
Nginx 用户需要手动添加 nginx.conf 文件里面的伪静态规则到你的域名配置中去……

使用随机数载入的情况通常在一个页面多次调用随机图的时候,比如首页文章列表,否则图片都是一样的。

随机数载入方式:“ 你的域名/images?随机数 ” ,就是原有 URL 上添加一个英文问号和任意随机数。

示例:

<img src="https://song.acg.sx/images">
<img src="https://song.acg.sx/images/acg">
<img src="https://song.acg.sx/images?d8c196951e5bbf3edd158de4">
<img src="https://song.acg.sx/images/acg?9f0d34f8ee6f96b56d8902d1">

项目演示:https://song.acg.sx/images
项目代码:https://github.com/galnetwen/Random-Image

该随机图代码由 karnc 提供与帮助,谢谢他!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].