Issues with ImageCreateFromJPEG

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jeffsnox@gmail.com

    Issues with ImageCreateFromJPEG

    Hi,

    I'm struggling to get imagecreatefrom jpeg to work correctly.

    I'm running PHP 4.3.9 with GD bundled (2.0.28 compatible).

    If I run this:

    $myimage = imagecreatefrom jpeg("myfilenam e");

    I get this error message:

    Fatal error: Call to undefined function: imagecreatefrom jpeg() in....

    If I run this:

    $myimage = @imagecreatefro mjpeg("myfilena me");

    My program crashes out.

    Any ideas?

    Thanks,

  • Erwin Moller

    #2
    Re: Issues with ImageCreateFrom JPEG

    jeffsnox@gmail. com wrote:
    [color=blue]
    > Hi,
    >
    > I'm struggling to get imagecreatefrom jpeg to work correctly.
    >
    > I'm running PHP 4.3.9 with GD bundled (2.0.28 compatible).
    >
    > If I run this:
    >
    > $myimage = imagecreatefrom jpeg("myfilenam e");
    >
    > I get this error message:
    >
    > Fatal error: Call to undefined function: imagecreatefrom jpeg() in....
    >
    > If I run this:
    >
    > $myimage = @imagecreatefro mjpeg("myfilena me");
    >
    > My program crashes out.
    >
    > Any ideas?[/color]

    Yes, you didn't install the GD libs on your system.
    My bet is not one imagefunction is working.

    Start to read here if you want to know how to install the stuff:


    Regards,
    Erwin Moller
    [color=blue]
    >
    > Thanks,[/color]

    Comment

    • jeffsnox@gmail.com

      #3
      Re: Issues with ImageCreateFrom JPEG


      Erwin Moller wrote:[color=blue]
      > jeffsnox@gmail. com wrote:
      >[color=green]
      > > Hi,
      > >
      > > I'm struggling to get imagecreatefrom jpeg to work correctly.
      > >
      > > I'm running PHP 4.3.9 with GD bundled (2.0.28 compatible).
      > >[/color]
      > Yes, you didn't install the GD libs on your system.
      > My bet is not one imagefunction is working.
      >
      > Start to read here if you want to know how to install the stuff:
      > http://nl2.php.net/manual/en/ref.image.php[/color]

      As I said in my post, GD 2.0.28 is installed on my system. As far as I
      can tell (I've not tested other functions) imagecreatetrue color() seems
      to be working fine. Though imagejpeg() is also not working.

      Comment

      • Erwin Moller

        #4
        Re: Issues with ImageCreateFrom JPEG

        jeffsnox@gmail. com wrote:
        [color=blue]
        >
        > Erwin Moller wrote:[color=green]
        >> jeffsnox@gmail. com wrote:
        >>[color=darkred]
        >> > Hi,
        >> >
        >> > I'm struggling to get imagecreatefrom jpeg to work correctly.
        >> >
        >> > I'm running PHP 4.3.9 with GD bundled (2.0.28 compatible).
        >> >[/color]
        >> Yes, you didn't install the GD libs on your system.
        >> My bet is not one imagefunction is working.
        >>
        >> Start to read here if you want to know how to install the stuff:
        >> http://nl2.php.net/manual/en/ref.image.php[/color]
        >
        > As I said in my post, GD 2.0.28 is installed on my system. As far as I
        > can tell (I've not tested other functions) imagecreatetrue color() seems
        > to be working fine. Though imagejpeg() is also not working.[/color]

        Hi,

        Yes, you wrote that, sorry, my bad.

        What does gd_info() say?
        Does that function think that jpeg is installed?

        (read more here)
        Retrieve information about the currently installed GD library


        Also, it may be worth your time to read the usercontributed notes on the
        imagecreatefrom jpeg page.
        Lots of them concern compileoptions for jpeg.
        I cannot say if they are relevant to your situation, but they might be worth
        a quick scan.

        If this keeps haunting you, and you cannot find out why jpg-related
        functions are not working, but the others do: Install GD by hand.
        I have bad experience with pre-configured PHP-installs via installers.
        Or even compile it yourself, if that is an option.

        Regards,
        Erwin Moller

        Comment

        • jeffsnox@gmail.com

          #5
          Re: Issues with ImageCreateFrom JPEG

          You were right - turns out the problem is with JPEG support not being
          compiled in with my installation. ISP is doing it now.

          Thanks.




          Erwin Moller wrote:[color=blue]
          > jeffsnox@gmail. com wrote:
          >[color=green]
          > >
          > > Erwin Moller wrote:[color=darkred]
          > >> jeffsnox@gmail. com wrote:
          > >>
          > >> > Hi,
          > >> >
          > >> > I'm struggling to get imagecreatefrom jpeg to work correctly.
          > >> >
          > >> > I'm running PHP 4.3.9 with GD bundled (2.0.28 compatible).
          > >> >
          > >> Yes, you didn't install the GD libs on your system.
          > >> My bet is not one imagefunction is working.
          > >>
          > >> Start to read here if you want to know how to install the stuff:
          > >> http://nl2.php.net/manual/en/ref.image.php[/color]
          > >
          > > As I said in my post, GD 2.0.28 is installed on my system. As far as I
          > > can tell (I've not tested other functions) imagecreatetrue color() seems
          > > to be working fine. Though imagejpeg() is also not working.[/color]
          >
          > Hi,
          >
          > Yes, you wrote that, sorry, my bad.
          >
          > What does gd_info() say?
          > Does that function think that jpeg is installed?
          >
          > (read more here)
          > http://nl3.php.net/manual/en/function.gd-info.php
          >
          > Also, it may be worth your time to read the usercontributed notes on the
          > imagecreatefrom jpeg page.
          > Lots of them concern compileoptions for jpeg.
          > I cannot say if they are relevant to your situation, but they might be worth
          > a quick scan.
          >
          > If this keeps haunting you, and you cannot find out why jpg-related
          > functions are not working, but the others do: Install GD by hand.
          > I have bad experience with pre-configured PHP-installs via installers.
          > Or even compile it yourself, if that is an option.
          >
          > Regards,
          > Erwin Moller[/color]

          Comment

          Working...