vetkastar / text_overlay

  • Public
  • 743 runs
  • CPU

Input

*file

Input image

*string
Shift + Return to add a new line

Text to overlay on the image

integer

Font size (ignored if text_box is specified)

Default: 24

string
Shift + Return to add a new line

Font color in HEX format (ignored if gradient is specified)

Default: "#000000"

file

Path to a local font file

string
Shift + Return to add a new line

URL to a Google Font

string
Shift + Return to add a new line

Padding in pixels (top, right, bottom, left) (ignored if text_box is specified)

Default: "10,10,10,10"

string
Shift + Return to add a new line

Padding in percentage (top, right, bottom, left) (ignored if text_box is specified)

integer

Outline width in pixels

Default: 0

string
Shift + Return to add a new line

Outline color in HEX format

Default: "#000000"

number

Text opacity (0 to 100)

Default: 100

integer

Letter spacing in pixels

Default: 0

string

Text alignment (ignored if text_box is specified)

Default: "left"

string

Font style

Default: "none"

integer

Shadow offset in pixels

Default: 0

string
Shift + Return to add a new line

Shadow color in HEX format

Default: "#000000"

number

Shadow opacity (0 to 100)

Default: 100

integer

Glow size in pixels

Default: 0

string
Shift + Return to add a new line

Glow color in HEX format

Default: "#FFFFFF"

integer
(minimum: 0, maximum: 360)

Rotation angle in degrees (0 to 360)

Default: 0

boolean

Save only the text on a transparent background

Default: false

string
Shift + Return to add a new line

Gradient start color in HEX format

string
Shift + Return to add a new line

Gradient end color in HEX format

string

Gradient type

Default: "linear"

integer
(minimum: 0, maximum: 360)

Gradient rotation angle in degrees (0 to 360)

Default: 0

string
Shift + Return to add a new line

Text bounding box in pixels (left, top, right, bottom)

boolean

Show text bounding box

Default: false

Output

No output yet! Press "Submit" to start a prediction.

Run time and cost

This model costs approximately $0.00027 to run on Replicate, or 3703 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on CPU hardware. Predictions typically complete within 3 seconds.

Readme

This model doesn't have a readme.