text2image - Convert Texts to an Image
Converts multiple texts on a colored background and creates an image. Transparent backgrounds allow overlay on another image.
backgroundColor
HEX Color
The image background color. Transparent if empty.
Example:
#2563EB
width
number
The image width.
Minimum: 1
Maximum: 10000
Example:
500
height
number
The image height.
Minimum: 1
Maximum: 10000
Example:
500
data
array<object>
Data to be displayed
Minimum: 1
text
string
The text to print.
Example:
Hello from 1001fx!
x
number
The x position from the top left corner.
y
number
The y position from the top left corner.
maxWidth
number
The maximum width of your textarea.
Minimum: 1
Example:
500
maxHeight
number
The maximum height of your textarea.
Minimum: 1
Example:
500
alignmentX
string
Horizontal text alignment. Defaults to 'left'.
Possible values are: left, center, right
Example:
center
alignmentY
string
Vertical text alignment. Defaults to 'top'.
Possible values are: top, middle, bottom
Example:
middle
fontSize
string
Fontsize of your text. Default to 'auto'.
Possible values are: 8, 16, 32, 64, 128, auto
Example:
64
textColor
HEX Color
The text color. Defaults to '#000000'.
Example:
#EC4899a0