Re: labels for CD/DVDs - programmatically from script

Anthony Thyssen <[email protected]> Thu, 28 Jul 2011 12:33:04 +1000
Newsgroups gmane.comp.video.image-magick.user
Message-ID <20110728123304.25198025@wraith>
On Wed, 27 Jul 2011 13:49:08 -0600 (MDT)
[email protected] wrote:
| 
| ----- "Scott Serr" <[email protected]> wrote:
| 
| > 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)
| 
| I was a bit off:
| 
| "Before version 6.5.2-4, IM would completely ignore the "-pointsize" setting if a "-size" setting is also given. This causes the text in the above images to be auto-sized according to the 'best fit' handling (see next set of examples)."
| 
| I'm wondering how I can work around this with an old version, 6.2.8.
| 
generate your text, then center compose it onto a 460x150 sized image,
after that you can compose that onto your background.




  Anthony Thyssen ( System Programmer )    <[email protected]>
 --------------------------------------------------------------------------
  Science is based on not knowing everything, but it does know somethings.
                                 -- Terry Pratchett, "Science of Diskworld"
 --------------------------------------------------------------------------
   Anthony's Castle     http://www.ict.griffith.edu.au/anthony/