Jump to content

please help with GD


yolop

Recommended Posts

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=]

Link to comment
https://forums.phpfreaks.com/topic/122795-please-help-with-gd/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/122795-please-help-with-gd/#findComment-634108
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/122795-please-help-with-gd/#findComment-634111
Share on other sites

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..

Link to comment
https://forums.phpfreaks.com/topic/122795-please-help-with-gd/#findComment-634121
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/122795-please-help-with-gd/#findComment-634132
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.