API для генерации изображений-заглушек
![](https://tssaltan.top/files/2024/03/splash-api-image.jpg)
API URL
1 2 3 |
https://dev.tssaltan.top/api/splash/ @width x @height . @format https://dev.tssaltan.top/api/splash/ @width x @height / @background_color . @format https://dev.tssaltan.top/api/splash/ @width x @height / @background_color / @text_color . @format |
Parameters
- @width x @height – Image size in pixels, f.e. 200x500
- @background_color – Image background color in hex-format, like fff or a1b2c3
- @text_color – Text color in hex-format, like fff or ffffff
- @format – Image format, avaliable types – png, jpg, jpeg
Examples
![](https://dev.tssaltan.top/api/splash/250x220.jpg)
1 |
https://dev.tssaltan.top/api/splash/250x220.jpg |
![](https://dev.tssaltan.top/api/splash/150x200/333/eee.png)
1 |
https://dev.tssaltan.top/api/splash/150x200/333/eee.png |
![](https://dev.tssaltan.top/api/splash/300x251/39cccc/001f3f.jpeg)
1 |
https://dev.tssaltan.top/api/splash/300x251/39cccc/001f3f.jpeg |
![](https://dev.tssaltan.top/api/splash/210x160/001f3f/ff851b.png)
1 |
https://dev.tssaltan.top/api/splash/210x160/001f3f/ff851b.png |