imagecreatefromjpeg STOPED working!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Validus
    Confirmed User
    • Jul 2001
    • 4012

    #1

    imagecreatefromjpeg STOPED working!

    Hey people. imagecreatefromjpeg all the sudden stopped working, any ideas? Could it be related to some update?


    PHP Code:
    
    <?
    
    Header("Content-type: image/jpeg"); 
    $imagepath = "images/set_21.jpg";
    $im = imagecreatefromjpeg($imagepath); 
    $tc = imagecolorclosest ($im, 0, 0, 0);
    
    ## imagettftext ( int im, int size, int angle, int x, int y, int col, string fontfile, string text)
    imagettftext ($im, 12, 0, 1, 18, $tc, "jami.ttf", "".$desc_line1."\n\r".$desc_line2."\n\r".$desc_line3."\n\r".$desc_line4."\n\r".$desc_line5."\n\r".$desc_line6."\n\r".$desc_line7.""); 
    imagejpeg($im,'',50);
    
    
    ?>
    Error:
    <b>Fatal error</b>: Call to undefined function: imagecreatefromjpeg() in ...
  • hoe_vender
    Confirmed User
    • Dec 2003
    • 2018

    #2
    that sucks
    ICQ #286508534

    Comment

    • Validus
      Confirmed User
      • Jul 2001
      • 4012

      #3
      Originally posted by hoe_vender
      that sucks
      You are telling me I am a non-programmer got to figure it out.

      Comment

      • Mr. T
        Registered User
        • Jun 2002
        • 62

        #4
        If you DID update PHP, you will want to make sure you have the GD Image Library compiled with it (since that's where imagecreatefromjpeg comes from).

        Get up your support persons ass to check that stuff out. Or, if you wanted to see if you have GD installed you could do a
        PHP Code:
        <?
        php_info();
        ?>
        and it should list the things that PHP was configured with support for.

        Good luck,

        Mr. T
        Mr. T!

        Comment

        Working...