Note that there are some explanatory texts on larger screens.

plurals
  1. POGenerating Image from text in php - not generating on my online host? Help
    primarykey
    data
    text
    <p>I'm generating an image out of text using php. My code works perfectly on my localhost and the text is generated fine. However on my online host it doesn't generate the whole text just bits and pieces of it. Like if I were to pass the text 'This is some text' to it - it would generate just maybe an S or t.</p> <p>The code is fine as it works perfectly on my localhost but doesn't run on the online host. It cant be that gd isnt on the host else it would not even generate part of the image.</p> <p>WHats going on here :(</p> <hr> <p><strong>UPDATE</strong></p> <p>This is the GD CONfig on teh server - I don't think there is anything wrong with it</p> <pre><code>gd GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.2.1 GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled </code></pre> <p>I'm just turning email addresses and fone numbers into one image. Heres an image of what the text should look like:</p> <p><a href="http://i25.tinypic.com/35b75tk.jpg" rel="nofollow noreferrer">localhost image http://i25.tinypic.com/35b75tk.jpg</a></p> <p>But this is what its rendering on the online:</p> <p><a href="http://i27.tinypic.com/262nl2r.jpg" rel="nofollow noreferrer">online image mess http://i27.tinypic.com/262nl2r.jpg</a></p> <hr> <p><strong>UPDATE</strong></p> <p>I just found out something weird. If I try to create an image out of the text 'P P' it should create the following image which it does on my localhost. <a href="http://i32.tinypic.com/25ge5xy.jpg" rel="nofollow noreferrer">what I want http://i32.tinypic.com/25ge5xy.jpg</a></p> <p>But on the online server its creating the image as so - the space is humongous and distorted. Could this be a hint as to why is it not rendering the text as it should. </p> <p><a href="http://i25.tinypic.com/ncz7gi.jpg" rel="nofollow noreferrer">bad pic http://i25.tinypic.com/ncz7gi.jpg</a></p> <p>Please guys I need help here urgently :(.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload