Custom Image Generation (Donator)
Create custom image formats using the api by adding images/shapes and text onto a canvas with a specific format e.g. welcome images.
This endpoint is for donators only
get
api.fluxpoint.dev
/gen/custom
Custom

Body format

1
{
2
"base": ImageFormat,
3
"images": Array<ImageFormat>,
4
"texts": Array<TextFormat>,
5
6
// Optional and default is jpg (png/jpg/webp)
7
"output": "png"
8
}
Copied!

Image format

Square
Image url
Circle
Triangle
1
{
2
"type": "bitmap",
3
"x": 10,
4
"y": 20,
5
"width": 100,
6
"height": 100,
7
"color": "#aaaaaa",
8
9
// Optional
10
"round": 60
11
}
Copied!
1
{
2
"type": "url",
3
"url": "https://gallery.com/image.png",
4
"x": 10,
5
"y": 20,
6
7
// Optional resize the image/round corners
8
"width": 100,
9
"height": 100,
10
"round": 60
11
}
Copied!
1
{
2
"type": "circle",
3
"x": 10,
4
"y": 20,
5
"radius": 100,
6
"color": "red"
7
}
Copied!
1
{
2
"type": "triangle",
3
"x": 10,
4
"y": 20,
5
"color": "red",
6
"cut": "topleft" // TopLeft/TopRight/BottomLeft/BottomRight
7
}
Copied!

Text format

1
{
2
"text": "Some text to show",
3
"size": 16,
4
"color": "black",
5
"x": 10,
6
"y": 20,
7
8
// Optional
9
"font": "Sans Serif",
10
"bold": false,
11
"unicode": false, // Enable Discord unicode support
12
"outline": 1,
13
"outlinecolor": "yellow"
14
}
Copied!

Example

1
{
2
"Base": {
3
"type": "bitmap",
4
"width": 2000,
5
"height": 2000,
6
"color": "#7289da"
7
},
8
"Images": [
9
{
10
"type": "url",
11
"url": "https://img.fluxpoint.dev/thm/1422436083957760.jpg",
12
"width": 1000,
13
"height": 1000
14
},
15
{
16
"type": "bitmap",
17
"round": 160,
18
"x": 20,
19
"y": 240,
20
"width": 1220,
21
"height": 360,
22
"color": "0,0,0,80"
23
}
24
],
25
"Texts": [
26
{
27
"text": "Hello",
28
"size": 120,
29
"x": 600,
30
"y": 1060
31
}
32
]
33
}
Copied!
Last modified 4mo ago
Copy link
Contents
get
Custom