Questions tagged [imagettftext]

174 questions
0
votes
0 answers

PHP does not load ttf

This Script work on localhost (Windows), but not on the Server (Debian): I have uploaded the files 1:1. Please help me, Thanks :)
GhostZero
  • 77
  • 1
  • 8
0
votes
1 answer

Getting boxsize of text and create an image text

I want to create a text image for a newsletter from a textearea. So, it would have more than 1 line. I was thinking about of using imagettfbbox to calculate the total width and height (of all lines), and then use imagettftext to write in the…
Federico Hoerth
  • 265
  • 3
  • 8
0
votes
1 answer

php imagettftext font position

I'm using imagettftext() to write a letter into an image. The problem is that I don't know what's the letter position inside the image. As you can see, I drawn border of the image and of the letter using imagettfbbox(), but the letter border is on…
user2013861
  • 43
  • 1
  • 6
0
votes
3 answers

imagettftext not displaying the image

I'm using the following code in the test.php file to generate an image from a text.
Sid
  • 1,255
  • 2
  • 22
  • 45
0
votes
0 answers

PHP Json Terraria Server Status

I really searched a long time on google/stackoverflow and didn't find my answer. I'm trying to put an image to see if my Terraria server is online or not and if yes, who's connected etc.. :p I'm really noob in php but I'm trying to learn! I got this…
user2309631
  • 53
  • 2
  • 9
0
votes
2 answers

imagettfbbox() returns wrong dimensions when using space characters inside text

I'm creating a graphical menu dynamically from PHP, it results in only 1 image that looks like this: One Two Three Four The problem however is, that I have to determine the x-offset and the width of each page title (e.g. the left offset…
Alex
  • 12,205
  • 7
  • 42
  • 52
0
votes
0 answers

Make imagettftext accept the whole pwgen -ny input, not just the first password

So I have this: https://indigodaddy.koding.com/ (Basically straight out of http://us2.php.net/manual/en/function.imagettftext.php)
twain
  • 73
  • 3
  • 8
0
votes
1 answer

Joomla 1.5. Text over image doesn't work

I'm useing Joomla 1.5. I have the script for create image with text over It, but It doesn't work for me:
user2055113
0
votes
1 answer

Imagettfbbox and imagettftext

Hey all i am wondering where i am missing the size of the textbox where the text is inside? $img = imagecreatefromjpeg("Desert.jpg"); //http://s7.postimage.org/ceb440itn/Desert.jpg $width = imagesx($img); $height = imagesy($img); $new_width =…
StealthRT
  • 10,108
  • 40
  • 183
  • 342
0
votes
1 answer

imagettftext() not outputing original image + watermark

Using as imagettftext() variant to watermark images with custom text but I must be doing something wrong here... as the output result doesn't have the watermark as intended. Already tried some different aproaches, but I feel the problem might be in…
Afonso Gomes
  • 902
  • 1
  • 14
  • 40
0
votes
1 answer

imagettftext(), GD, TrueType font and Letter 'a' / 'A' (Weird)

I'm using the following code to generate a text-based image. Everything works fine except that letters "a" and "A" appear as å and Å respectively. Why? Everything appears fine but a / A. header('Content-Type: image/png'); // Create the…
0
votes
2 answers

Image doesn't show up when font called within Joomla

I'm new to Joomla dev and php so if I'm doing something stupid please let me know! I'm creating a certificate to be printed after a user completes a quiz with their name, date, etc. I've gotten the image to show up and text, but when I add the font…
Gisto
  • 887
  • 2
  • 16
  • 32
0
votes
0 answers

PHP imagettftext(): No character set found in

I'm having a weird problem with PHP imagettftext function. I copied an example from php.net and changed $font to my own. Error is Warning: imagettftext(): No character set found in [my location] on line 25 Warning: No character set found in in [my…
Moon
  • 22,195
  • 68
  • 188
  • 269
0
votes
1 answer

Show multiple images Codeigniter

I want to create multiple images using imagettftext and show it in the view file. I have used this code: http://php.net/manual/en/function.imagettftext.php. When i place the above mentioned code in my controller it works perfectly, but want to know…
Shaun
  • 2,313
  • 7
  • 36
  • 43
0
votes
1 answer

PHP imagettftext() equivalent function in C++/Java/Python

Is there any simple equivalent of PHP function imagettftext() in C++ / Java / Python libraries ? http://php.net/manual/en/function.imagettftext.php
Sourabh Daptardar
  • 259
  • 1
  • 3
  • 7
1 2 3
11
12