text2image - Convert Texts to an Image
Converts multiple texts on a colored background and creates an image. Transparent backgrounds allow overlay on another image.
backgroundColorHEX Color
The image background color. Transparent if empty.
Example:
#2563EBwidthnumber
The image width.
Minimum: 1
Maximum: 10000
Example:
500heightnumber
The image height.
Minimum: 1
Maximum: 10000
Example:
500dataarray<object>
Data to be displayed
Minimum: 1
textstring
The text to print.
Example:
Hello from 1001fx!xnumber
The x position from the top left corner.
ynumber
The y position from the top left corner.
maxWidthnumber
The maximum width of your textarea.
Minimum: 1
Example:
500maxHeightnumber
The maximum height of your textarea.
Minimum: 1
Example:
500alignmentXstring
Horizontal text alignment. Defaults to 'left'.
Possible values are: left, center, right
Example:
centeralignmentYstring
Vertical text alignment. Defaults to 'top'.
Possible values are: top, middle, bottom
Example:
middlefontSizestring
Fontsize of your text. Default to 'auto'.
Possible values are: 8, 16, 32, 64, 128, auto
Example:
64textColorHEX Color
The text color. Defaults to '#000000'.
Example:
#EC4899a0