PHP5 - I want to write a Hindi text on image

0 votes

I want to write Hindi text on an image using PHP.

This is my code:

$im = @imagecreate(210, 50);
$background_color = imagecolorallocate($im, 255, 255, 255); 
$text_color = imagecolorallocate($im, 0, 0, 0); 
imagestring($im, 7, 15, 15, utf8_encode("पुलिसवाला आमिर खान..."), $text_color);
ImagePNG($im, 'a.png'); 
imagedestroy($im);

Can someone help me do this?

May 27, 2022 in PHP by Kichu
• 19,040 points
746 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In PHP

0 votes
1 answer

How do I convert a PDF document to a preview image in PHP?

Hello @kartik, You need ImageMagick and GhostScript <?php $im = new imagick('file.pdf[0]'); $im->setImageFormat('jpg'); header('Content-Type: image/jpeg'); echo ...READ MORE

answered Aug 14, 2020 in PHP by Niroj
• 82,840 points
4,823 views
0 votes
1 answer

I want to store some photos for a product using sql?

Hello, if you are going to store the ...READ MORE

answered Sep 28, 2020 in PHP by Niroj
• 82,840 points
502 views
0 votes
0 answers

How can i send an image map area id to a php file?

This is my image map: <map name="frozen"> ...READ MORE

Jun 16, 2022 in PHP by narikkadan
• 63,600 points
1,206 views
0 votes
0 answers
0 votes
1 answer

How can I connect to a Tor hidden service using CURL in PHP?

Hello @kartik, I use Privoxy and cURL to scrape Tor ...READ MORE

answered May 19, 2020 in PHP by Niroj
• 82,840 points
5,359 views
0 votes
0 answers

PHP Merge 2 Images (Insert Face To An Image)

I have 2 images. one face image ...READ MORE

May 27, 2022 in PHP by Kichu
• 19,040 points
1,496 views
0 votes
0 answers

PHP upload image

I have a config.php file that connects ...READ MORE

Jun 4, 2022 in PHP by Kichu
• 19,040 points
520 views
0 votes
0 answers

Editing image colors in PHP - color exchange

I am trying to convert all colors ...READ MORE

Jun 12, 2022 in PHP by narikkadan
• 63,600 points
421 views
0 votes
0 answers

Multiple Image Upload PHP form with one input

I want to have multiple image upload forms ...READ MORE

Jun 13, 2022 in PHP by narikkadan
• 63,600 points
611 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP