Skip to content

mickr777/textfontimage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

text-font-image

Community Node For InvokeAI

text font to text image node for InvokeAI, download a font to use (or if in font cache uses it from there), the text is always resized to the image size, but can control that with padding, optional 2nd line

  • simple node textfontimage.py (Simple centered 2 line's of Texted)
  • more advanced node advtextfontimage.py (gives you alot more control over text size and location)
  • extrude node made by lillekemiker (keeping upto date here)

Text Font to Image Node

Fields Description
text_input The text from which to generate an image
text_input_second_row The second row of text to add below the first text
second_row_font_size Font size for the second row of text (optional)
font_url URL address of the font file to download
local_font_path Local font file path (overrides font_url)
local_font Name of the local font file to use from the font_cache folder
image_width Width of the output image
image_height Height of the output image
padding Padding around the text in pixels
row_gap Gap between the two rows of text in pixels

Advanced Text Font to Image Node

Fields Description
text_input The text from which to generate an image
text_input_second_row The second row of text to add below the first text
font_url URL address of the font file to download
local_font_path Local font file path (overrides font_url)
local_font Name of the local font file to use from the font_cache folder
image_width Width of the output image
image_height Height of the output image
font_color_first Font color for the first row of text in HEX format
x_position_first X position of the first row of text
y_position_first Y position of the first row of text
rotation_first Rotation angle of the first row of text (in degrees)
font_size_first Font size for the first row of text
font_color_second Font color for the second row of text in HEX format
x_position_second X position of the second row of text
y_position_second Y position of the second row of text
rotation_second Rotation angle of the second row of text (in degrees)
font_size_second Font size for the second row of text
base_image An image to place the text onto

Example Workflow

image

Examples

using Results after using the @LilleKemiker extrude node and depth controlnet

710113a2-1915-43b2-ba9b-062c3338316a ef420c9c-b780-45b9-b2d3-608ee6516785 babd69c4-9d60-4a55-a834-5e8397f62610 9133eabb-bcda-4326-831e-1b641228b178 3f396f80-b448-4e40-a960-c7a68fae5623 93a89944-14e3-49fc-97c2-8593f22abd30 2f37c9fa-f677-45b6-aaec-c845994061d9 4f9a3fa8-9be9-4236-8a3e-fcec66decd2a e2fe744b-7988-4f8e-8fca-6a2ec0e51153 a1593f97-8735-4f05-b79e-1a48c956fc92

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages