$imageTextStroke

Add a stroke (border) to text on an image. This effect can enhance the visibility of your text, especially when placed over complex backgrounds.

Usage

$imageTextStroke[Text;position x;position y;color (optional);opacity (optional)]

Parameters:

  • Text: The text you want to add a stroke to.
  • position x: The horizontal position of the text. See details below.
  • position y: The vertical position of the text. See details below.
  • color (optional): The color of the stroke (border). You can use Hex codes (e.g., #FFFFFF for white) or named colors (e.g., red). If omitted, a default color will be used.
  • opacity (optional): The opacity of the stroke, ranging from 0 (fully transparent) to 1 (fully opaque). If omitted, the stroke will be fully opaque (1).

Understanding Position (X & Y)

For a deeper understanding of how to specify the X and Y coordinates for text positioning, please refer to the detailed explanation here.

While not directly used in $imageTextStroke, understanding how to set image dimensions can be helpful when working with text. You can learn more about width and height settings here.

Example

This example creates an image, sets the text size and alignment, and then adds stroked text to the image.

!!exec $imageCreate[300;300]
$imageTextSize[30]
$imageTextAlign[center]
$imageTextStroke[CC is Awesome;150;150;#4461b3]
$image[$imageOutput]

Result:

Member04/23/2025
!!exec $imageCreate[300;300]
$imageTextSize[30]
$imageTextAlign[center]
$imageTextStroke[CC is Awesome;150;150;#4461b3]
$image[$imageOutput]

Custom Command Bot 04/23/2025