Scott Serr
2011-07-27 19:04:10 UTC
Hello image gurus,
I've spent a couple hours trying to get text in regions of a square background. First I just want 2 regions, the upper portion and lower portion of a CD. (I'll be using this with lightscribe DVDs)
I've avoided "-draw" because I didn't see a way to center horizontally. So...
I've tried doing parenthesis for this regions and then doing a -composite into the larger background.
This sort of works:
convert -size 480x480 xc:skyblue \
\( -size 460x140 -font Helvetica -pointsize 24 -gravity center \
label:'Red Hat Enterprise Linux\nStuff' \) \
-geometry +0-150 -composite \
\( -size 460x140 -font Helvetica -pointsize 24 -gravity center \
label:'Version 5.6\nx86-64' \) \
-geometry +0+150 -composite \
gif:- | display gif:-
The bottom text shows it's resized larger during compositing. I'd like the two 460x150 region with a fixed sized font to be composited as is. (trimmed in length of they are too long would be fine)
Any help is appreciated,
Scott
I've spent a couple hours trying to get text in regions of a square background. First I just want 2 regions, the upper portion and lower portion of a CD. (I'll be using this with lightscribe DVDs)
I've avoided "-draw" because I didn't see a way to center horizontally. So...
I've tried doing parenthesis for this regions and then doing a -composite into the larger background.
This sort of works:
convert -size 480x480 xc:skyblue \
\( -size 460x140 -font Helvetica -pointsize 24 -gravity center \
label:'Red Hat Enterprise Linux\nStuff' \) \
-geometry +0-150 -composite \
\( -size 460x140 -font Helvetica -pointsize 24 -gravity center \
label:'Version 5.6\nx86-64' \) \
-geometry +0+150 -composite \
gif:- | display gif:-
The bottom text shows it's resized larger during compositing. I'd like the two 460x150 region with a fixed sized font to be composited as is. (trimmed in length of they are too long would be fine)
Any help is appreciated,
Scott