Generate placeholder images using OpenCV
.
http://localhost:8000/{width}x{height?}{ext?}/{background?}/{foreground?}text={text?}
Width of the image, less than 10000 pixels.
- range:
[1, 9999]
- example:
/500x200
Height of the image, if not specified, equals to width.
- default:
width
- range:
[1, 9999]
- example:
/300
Image file type, .jpg
/.jpeg
/.png
.
- default:
.jpg
- example:
/400x100.png
Image background color, hex color string of 3 or 6 characters.
- default:
ddd
- example:
/500x200/feeeee
Text color.
- default:
aaa
- example:
/500x200/9bc2d4/fff
Text rendered in the center of the image.
- default:
{width}x{height}
- language: English (ASCII characters)
- example:
/500x200/41ac52/fff?text=douban