That's it. We now have a working conversion library - but we still haven't seen how it works! Let's try it out by converting a familiar graphic. Go ahead and create a file - (you can name it anything you like, so long as it has a .php extension) - and put in it the following code: <html> <body bgcolor="#000000"> <?php <b>Color:</b><br> <br><b>Grayscale:</b><br>
</body> The above demonstration converts the familiar Google image into several text-only modes. You may view this example online here: http://images.devshed.com/ds/stories/Image_is_Words/IMG_TO_TXT.htm If you have not followed along but would still like to download the source code, it may be found online here: http://images.devshed.com/ds/stories/Image_is_Words/img_to_txt.zip I hope this has been a useful exercise for any of you who have taken the time to complete it. Thank you for your time, and please let me know if you have any questions/comments. Until next time...
blog comments powered by Disqus |