Specify the horizontal x position of the text in relation to the source image left border.
This parameter will overwrite the horizontal position value defined by text-position.
Values
This parameter accepts positive and negative integers. With negative values placing text outside of the source image boundaries.
If not text-x value is defined, the horizontal position of the text will be defined by text-position parameter.
Examples
Using text-x=0 will render text on the left edge of the source image:
GET
https://assets.imglab-cdn.net/particles.jpeg?text-x=0
Using a negative value will render text outside source image boundaries. In this example we are using text-x=-40:
GET
https://assets.imglab-cdn.net/particles.jpeg?text-x=-40
Negative values can be useful if you are adding some padding to the image. For this example we are using text-x=-40 and setting a padding of 40 pixels with padding=40:
GET
https://assets.imglab-cdn.net/particles.jpeg?text-x=-40&padding=40