Page 2 of 2
Re: How do I convert text file to image for use with overlay
Posted: 2010-03-26T11:53:34-07:00
by snibgo
"-interline-spacing" can be used with negative values to squish the text, but I still think something in your text file is creating extra spacing.
Re: How do I convert text file to image for use with overlay
Posted: 2010-03-26T12:29:07-07:00
by whenry
You are likely correct but I have not figured it out. I think I will go with interline spacing but first I have to figure out how to install the foll thing. I tired using the RPM for Linux but got errors. Now i guess i'll have to compile the fool thing from the source.
Re: How do I convert text file to image for use with overlay
Posted: 2010-03-26T13:42:38-07:00
by whenry
Sigh..... Ignorant I am but now enlightened (although I still have an oddity)
It turns out the text file I was using was one I had email to myself as an attachment, played with in windows and then copied back up to the Linux server. The darned thing has CR and LF because I had opened it in a windows editor. When I stripped the extra one out via DOS2UNIX, viola the mysterious extra lines disappeared.
There is still something I do not understand. I get an error when trying to use some of the newer options like kerning. I will not need them it now appears but I do not understand . I originally thought it was a problem because i was running an old version but now I have upgraded and still it does not work. Even more strange, I have a test machine that is a literal clone of this one and with the new version that machine has no problem with kerning.
Code: Select all
identify -version
Version: ImageMagick 6.6.0-10 2010-03-26 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features:
cat test-image.txt | convert -font Courier -kerning text:- test-image.png
convert: unrecognized option `-kerning'.
One further note. I now find that "kerning" is possible when I am root but not when I am myself. I assume that it is a permissions thing.
Re: How do I convert text file to image for use with overlay
Posted: 2010-03-26T13:56:43-07:00
by magick
Your version of convert is different than your version of identify. Type
Does it say 6.6.0-10?
Re: How do I convert text file to image for use with overlay
Posted: 2010-03-30T07:57:26-07:00
by whenry
Yes it is the same version. you are seeing screen shots from before and after I installed the newest version.
Thank you all for you help I think I have it now.