yolop Posted September 4, 2008 Share Posted September 4, 2008 i need help with write on image... ok i have image upload system (i program that) tnd I want something very simple but I don't know how to do that I want code that write in bottom of the image some text i don't know if the image will be "gif" or "jpeg" or "bmp" i need a code that work for all the type of image thank all=] Quote Link to comment https://forums.phpfreaks.com/topic/122795-please-help-with-gd/ Share on other sites More sharing options...
rarebit Posted September 4, 2008 Share Posted September 4, 2008 To find out what mime type the file has, you could look at the following: http://uk3.php.net/manual/en/function.finfo-file.php http://uk3.php.net/manual/en/function.mime-content-type.php (deprecated) or you could base it on the file extension, the easy way to do that is to use: http://uk3.php.net/manual/en/function.pathinfo.php Next: The fonts is a decision, how good do you want them to be? Anyway you'll find examples for the differing types from this page: http://uk3.php.net/manual/en/book.image.php Quote Link to comment https://forums.phpfreaks.com/topic/122795-please-help-with-gd/#findComment-634108 Share on other sites More sharing options...
yolop Posted September 4, 2008 Author Share Posted September 4, 2008 To find out what mime type the file has, you could look at the following: http://uk3.php.net/manual/en/function.finfo-file.php http://uk3.php.net/manual/en/function.mime-content-type.php (deprecated) or you could base it on the file extension, the easy way to do that is to use: http://uk3.php.net/manual/en/function.pathinfo.php Next: The fonts is a decision, how good do you want them to be? Anyway you'll find examples for the differing types from this page: http://uk3.php.net/manual/en/book.image.php I didn't relize wy I need all the 3 function that you gave me and I relly happy if someon will give me a code that do that Quote Link to comment https://forums.phpfreaks.com/topic/122795-please-help-with-gd/#findComment-634111 Share on other sites More sharing options...
rarebit Posted September 4, 2008 Share Posted September 4, 2008 No, you could use any of the first three links, probably only one at a time though. If you look the links, they all have examples on them. The GD link, you will need to link off to the appropriate page to find examples. Get a basic idea together, then post here and someone will help you.. Quote Link to comment https://forums.phpfreaks.com/topic/122795-please-help-with-gd/#findComment-634121 Share on other sites More sharing options...
.josh Posted September 4, 2008 Share Posted September 4, 2008 and I relly happy if someon will give me a code that do that If you want someone to write code for you, post in the freelance section. We don't do that sort of thing over here. You might find what you're looking for by looking into captcha tutorials. Quote Link to comment https://forums.phpfreaks.com/topic/122795-please-help-with-gd/#findComment-634132 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.