Re: labels for CD/DVDs - programmatically from script
Fred Weinhaus <[email protected]> Wed, 27 Jul 2011 17:36:22 -0700
| Newsgroups | gmane.comp.video.image-magick.user |
|---|---|
| Message-ID | <p06240801ca565f250e42@[192.168.1.2]> |
Actually, you would probably be better off using -annotate rather than label: as you are specifying a pointsize and size. Annotate is gravity sensitive and has built-in offsets similar to using -geometry. But it won't resize the last image. >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