php-extension gd_2 not installed on server; any alternatives?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ojorus

    php-extension gd_2 not installed on server; any alternatives?

    Hi!
    I've just experiences a nightmare... I have made a quite good image-upload
    system in PHP, which make two versions of the image uploaded; one with the
    size 350*263, and a small thumbnail. I have used the function
    ImageCreateFrom JPEG, and everything worked fine when I tested it on my local
    server. But when uploading the PHP-files to an extern server, I got the
    error message "Call to undefined function: imagecreatefrom jpeg() in
    c:\easyphp1-7\www\"... etc

    The reason for this, as far as I know, is that the server has not installed
    the php-extension php_gd2. And they do not want to install it either...

    So, my question is: What to do? Are there other ways in PHP to upload and
    manipulate images (such as size...), or do I have to make a system with for
    example perl (cgi)? If so, does anyone know a good example of how to do
    this?

    ojorus


  • Geoff Berrow

    #2
    Re: php-extension gd_2 not installed on server; any alternatives?

    I noticed that Message-ID: <glFFc.981$vH5. 277@amstwist00> from ojorus
    contained the following:
    [color=blue]
    > The reason for this, as far as I know, is that the server has not installed
    >the php-extension php_gd2. And they do not want to install it either...[/color]

    Just happened to me too.

    We got another provider.

    --
    Geoff Berrow (put thecat out to email)
    It's only Usenet, no one dies.
    My opinions, not the committee's, mine.
    Simple RFDs http://www.ckdog.co.uk/rfdmaker/

    Comment

    • Andy Hassall

      #3
      Re: php-extension gd_2 not installed on server; any alternatives?

      On Sun, 4 Jul 2004 23:14:48 +0200, "ojorus" <ojorus@hotmail .com> wrote:
      [color=blue]
      >I've just experiences a nightmare... I have made a quite good image-upload
      >system in PHP, which make two versions of the image uploaded; one with the
      >size 350*263, and a small thumbnail. I have used the function
      >ImageCreateFro mJPEG, and everything worked fine when I tested it on my local
      >server. But when uploading the PHP-files to an extern server, I got the
      >error message "Call to undefined function: imagecreatefrom jpeg() in
      >c:\easyphp1-7\www\"... etc
      >
      > The reason for this, as far as I know, is that the server has not installed
      >the php-extension php_gd2. And they do not want to install it either...
      >
      >So, my question is: What to do? Are there other ways in PHP to upload and
      >manipulate images (such as size...), or do I have to make a system with for
      >example perl (cgi)? If so, does anyone know a good example of how to do
      >this?[/color]

      If you're allowed to execute external processes, then ImageMagick is good.

      --
      Andy Hassall <andy@andyh.co. uk> / Space: disk usage analysis tool
      http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space

      Comment

      • Garp

        #4
        Re: php-extension gd_2 not installed on server; any alternatives?


        "ojorus" <ojorus@hotmail .com> wrote in message
        news:glFFc.981$ vH5.277@amstwis t00...[color=blue]
        > Hi!
        > I've just experiences a nightmare... I have made a quite good image-upload
        > system in PHP, which make two versions of the image uploaded; one with the
        > size 350*263, and a small thumbnail. I have used the function
        > ImageCreateFrom JPEG, and everything worked fine when I tested it on my[/color]
        local[color=blue]
        > server. But when uploading the PHP-files to an extern server, I got the
        > error message "Call to undefined function: imagecreatefrom jpeg() in
        > c:\easyphp1-7\www\"... etc
        >
        > The reason for this, as far as I know, is that the server has not[/color]
        installed[color=blue]
        > the php-extension php_gd2. And they do not want to install it either...
        >
        > So, my question is: What to do? Are there other ways in PHP to upload and
        > manipulate images (such as size...), or do I have to make a system with[/color]
        for[color=blue]
        > example perl (cgi)? If so, does anyone know a good example of how to do
        > this?
        >
        > ojorus[/color]

        If you can, vote with your feet, but give them a chance to install it first
        but then GO if they don't. Give them your reasons for wanting it and ask for
        their reasons for not giving it to you - and don't tolerate "because we
        don't want to".

        Garp


        Comment

        • Chung Leong

          #5
          Re: php-extension gd_2 not installed on server; any alternatives?

          "ojorus" <ojorus@hotmail .com> wrote in message
          news:glFFc.981$ vH5.277@amstwis t00...[color=blue]
          > Hi!
          > I've just experiences a nightmare... I have made a quite good image-upload
          > system in PHP, which make two versions of the image uploaded; one with the
          > size 350*263, and a small thumbnail. I have used the function
          > ImageCreateFrom JPEG, and everything worked fine when I tested it on my[/color]
          local[color=blue]
          > server. But when uploading the PHP-files to an extern server, I got the
          > error message "Call to undefined function: imagecreatefrom jpeg() in
          > c:\easyphp1-7\www\"... etc[/color]

          Sounds like you're on a Windows environment, where the web server often runs
          with absurdly high privilege. You might just be able to change the setting
          in php.ini, or throw a php-isapi.ini into C:\WinNT :-)

          The default in Windows is to allow execution. If you upload a .exe (like
          ImageMagick) onto the server there's a good chance it'll work. If your
          folder is locked down, try creating a copy of the file in the temp folder
          (so that it acquire that folder's attributes), then moving it into your own
          folder. It's pretty hard to lock down Windows, so you can probably find a
          way.


          Comment

          Working...