Links
Comment on page

Custom Image

post
https://api.fluxpoint.dev
/gen/custom
Custom Image Generation
Request json body
{
"Base": {
"type": "bitmap",
"width": 2000,
"height": 2000,
"color": "#7289da"
},
"Images": [
{
"type": "url",
"url": "https://img.fluxpoint.dev/thm/1422436083957760.jpg",
"width": 1000,
"height": 1000
},
{
"type": "bitmap",
"round": 160,
"x": 20,
"y": 240,
"width": 1220,
"height": 360,
"color": "0,0,0,80"
}
],
"Texts": [
{
"text": "Hello",
"size": 120,
"x": 600,
"y": 1060
}
]
}

Base

Image

Square
type: bitmap - (Required) width: 100 - Set the width of the shape. (Required) height: 100 - Set the height of the shape. (Required) size: 100 - Set both the width and height of the shape. color: blue - Set the shape to be a color from name/hex/rgb/rgba use rgba for transparency. round: 60 - Make the borders of the shape round. (Default 0) x: 20 - Position the element on the X axis horizontally (Default 0) y: 20 - Position the element on the Y axis vertically (Default 0) Image Url
url: https://website.com/image.png cache: true - Cache the image server-side so it can be easily loaded again such as background images. (Not Recommended for Avatars) (Default false) width: 100 - Set the width of the image. (No default) height: 100 - Set the height of the image. (No default) size: 100 - Set both the width and height of the image maxwidth: 100 or maxheight: 100 - Set the max width/height so the image can scale properly. (No default) round: 60 - Make the borders of the image round for stuff like circle avatars. (Default 0) x: 20 - Position the element on the X axis horizontally (Default 0) y: 20 - Position the element on the Y axis vertically (Default 0) Circle
type: circle - (Required) color: blue - Set the shape to be a color from name/hex/rgb/rgba use rgba for transparency. radius: 20 - Set the size of the circle from the center point x: 20 - Position the element on the X axis horizontally (Default 0) y: 20 - Position the element on the Y axis vertically (Default 0) Triangle
type: triangle - (Required) color: blue - Set the shape to be a color from name/hex/rgb/rgba use rgba for transparency. width: 100 - Set the width of the shape. (Required) height: 100 - Set the height of the shape. (Required) size: 100 - Set both the width and height of the shape. cut: topleft/topright/bottomleft/bottomright - Choose where the missing peice of the triangle is. (Required) x: 20 - Position the element on the X axis horizontally (Default 0) y: 20 - Position the element on the Y axis vertically (Default 0)

Global Options

Set default options for the image gen
{
"global": {
"textSize": 16
}
}
textSize: 16 - Default text size for all texts you add. textcColor: white - Default text color for all texts you add. textFont Comic Sans - Default text font for all texts you add.

Text

Add these into the Texts list to generate them. text: "Hello" or texts: [ "Hello", "User" ] - Set the text (Required)
Main options
size: 30 - Set the font size of the text. (Default 16) font: Comic Sans - Set the font to use for the text. (Default Sans Serif) color: blue - Set the text color from name/hex/rgb/rgba use rgba for transparency. (Default white) back: black - Set the background color for the text box from name/hex/rgb/rgba use rgba for transparency. (Default none)
Position
x: 20 - Position the text 20 pixels from the left. (Default 0) x: 20 - Position the text 20 pixels from the top. (Default 0) align: l/m/r - Align the text from left/center/right (Default left)
Styles
bold: true - Set the text to bold style. (Default false) italics: true - Set the text to italics style. (Default false) underline: true - Set the text to underline style. (Default false) line: 1.2 - Set the line spacing for multiline text. (Default 1) weight: 700 - Increase the boldness of the text. (Default 500)
Text box width/height
width: 100 - Set the max width of the text box before it wraps to a newline. (Default none) height: 100 - Set the max height of the text box to clip extra text. (Default none)
Outline
outline: true - Show text outline with default options. outlinewidth: 9 - Set the outline size from the text. (Default 5) outlinecolor: blue - Set the outline color from name/hex/rgb/rgba use rgba for transparency. (Default black) outlineblur: 5 - Make the outline transparency less visible for a cool effect. (Default 1 solid)
Date/time format
unix: 123 - Set the unix timestamp to show as date/time. snowflake: 123456 - Set the Discord id to show as date/time. format: dd/MM/yyyy - Set the date/time format to show as text https://www.c-sharpcorner.com/blogs/date-and-time-format-in-c-sharp-programming1