On Saturday, March 8, 2003, at 08:49 AM, Christopher Smith wrote:
Greetings,Another good place to get start-up information, assuming that GD is available on your setup, is the manual:
I've recently searched newsgroup archives on how to convert text into an
image.
http://www.php.net/manual/en/ref.image.php
However, I cannot seem to find a clear example on how to create the image dimensions based on the size of a textfile
What do you mean "based on the size of a text file"? Number of bytes? Lines?
and then once I create the
initial image how to paint the text on the image based on how it appears in
the textfile.
Again, it is unclear to me what you mean by "based on how it appears in the textfile"?
Is your text file broken into lines, and you want to create your image with the same line breaks? If so, there are a couple of examples in the comments for the imagettfbbox() and
imagettftext() functions. I know the last comment contains an example that can do multiple lines (Brian at PrintsMadeEasy dot com) There's a link to the code and a working demo. When I modified the code to anti-alias the text it looked rather good. YMMV
Any help with this would be helpful. Thank-you for your time!
HTH.
David
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php