Script stops at imagecreatefromjpeg in my script.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Silencet
    New Member
    • Aug 2007
    • 24

    #16
    How would i compile PHP, and were would i get the source code.

    Comment

    • pbmods
      Recognized Expert Expert
      • Apr 2007
      • 5821

      #17
      Heya, Silencet.

      Have a look at this page.

      Comment

      • Silencet
        New Member
        • Aug 2007
        • 24

        #18
        Hey thanks for that, i think. I reinstalled php with gd but i don't know what do do now. It still isn't working, what else am i missing?

        Comment

        • pbmods
          Recognized Expert Expert
          • Apr 2007
          • 5821

          #19
          Heya, Silencet.

          Are you still getting the same error?

          I have posted a link to this thread in the PHP Experts area to see if we can get some other Experts to have a look at your problem.

          Comment

          • Silencet
            New Member
            • Aug 2007
            • 24

            #20
            Ya, im getting an error saying that imagecreatefrom jpeg isn't defined, so i need to know what to add so i can get it working.

            Comment

            • Silencet
              New Member
              • Aug 2007
              • 24

              #21
              Would i still need to compile php gd

              Comment

              • Silencet
                New Member
                • Aug 2007
                • 24

                #22
                Alright i restarted my server and php, and now that memory error came up, should i change the memory_limit?

                Comment

                • Silencet
                  New Member
                  • Aug 2007
                  • 24

                  #23
                  OK finaly, after restarting PHP and the Server, and using the ini_set function instead of gonig into the php file, i've been able to get every function to work correctly. Thank you, however, i've used the functions to crop a portion of the source image, put the outcome is black, any solutions? Nope got it however thank you all for running me throught my problem, especially pbmods for stating that all i needed to do was reinstall php.

                  Comment

                  • virtualfromcroatia
                    New Member
                    • Mar 2008
                    • 1

                    #24
                    Had the same problem and the solution is to add a line of code before imagecreatefrom jpeg:

                    [PHP]ini_set('memory _limit', '50M');
                    $handle = @imagecreatefro mjpeg($pict);[/PHP]

                    virtual@croatia

                    Comment

                    Working...