Skip to content

API that Generates svg hash map with provided random seed and sizes or just images from `picsum`

License

Notifications You must be signed in to change notification settings

readyyyk/randImgAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Image API

Examples

Link Image
https://readyyyk-randimg.fly.dev/picsum example
https://readyyyk-randimg.fly.dev/hashmap example
.../hashmap?seed=example example
.../hashmap?seed=example&w=8&h=10 (w=8 h=10) example
.../picsum?seed=example&w=64&h=100 example

Usage

host: https://readyyyk-randimg.fly.dev/

https://host/hashmap?...[url params]

https://host/picsum?...[url params]

returns:

  • hashmap - svg image
  • picsum - jpeg image

width and height defaults:

  • hashmap - 7x7
  • picsum - 64x64

Seed default value is Unix time

URL parameters

Parameter Type Value
w (width) Int 1-100 for hashmaps
h (height) Int 1-100 for hashmaps
seed String any