Your examples show simple text on textured background. I am not sure what you want. Do you want the text to have texture or only the background to have texture?
If the former, then
#line1-2 creates white text on black background
#line3 tiles your texture image to the same size
#line4 creates a black background image
#line5 reverses all images so that the text image is used a mask
#line6 composites the black and texture image using the text image as a mask
Code: Select all
convert -background black -gravity center -fill white -pointsize 104 \
-font Arial label:"Votre Texte" -alpha off \
\( -clone 0 -tile 134667texturefabric.gif -draw 'color 0,0 reset' \) \
\( -clone 0 -fill black -colorize 100% \) \
-reverse -compose over -composite \
textured_text.jpg
If the latter, then
#line1-2 creates white text on black background
#line3 creates a white background image
#line4 tiles your texture image to the same size
#line5 reverses all images so that the text image is used a mask
#line6 composites the white and texture image using the text image as a mask
convert -background black -gravity center -fill white -pointsize 104 \
-font Arial label:"Votre Texte" -alpha off \
\( -clone 0 -fill white -colorize 100% \) \
\( -clone 0 -tile 134667texturefabric.gif -draw 'color 0,0 reset' \) \
-reverse -compose over -composite \
textured_background.jpg
To colorize your texture as text:
Code: Select all
convert -background black -gravity center -fill white -pointsize 104 \
-font Arial label:"Votre Texte" -alpha off \
\( -clone 0 -tile 134667texturefabric.gif -draw 'color 0,0 reset' -fill red -colorize 50% \) \
\( -clone 0 -fill black -colorize 100% \) \
-reverse -compose over -composite \
textured_text2.jpg
The rest is adding adding shadows (shadow), trimming (-trim), adding borders (-border, -splice) and extending (-extent) the background color or compositing over a larger text image (-compose over -composite). See the links I presented above.