Problems with createimagefromjpeg?

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

    Problems with createimagefromjpeg?

    Good day,

    I've sent a message on this to the php-general list already, but
    unfortunately no one replied. Sorry for the repost. to those that read
    both...

    I'm having a problem working with an image that I've made with
    imagecreatefrom jpeg. Here's the code:


    $in_file = "IMG_0050.j pg";
    echo "Testing for image ".$in_file. "<BR />\n"; $image =
    imagecreatefrom jpeg($in_file) || die("Failed to create image from file.
    <BR>\n");
    echo "Resource ID: ".$image."<BR>\ n"; echo "Image width:
    ".imagesx($imag e)."<BR>\n";


    It reads in the file OK and prints out "1" as the Resource ID, as
    expected. However, imagesx fails with:

    imagesx(): supplied argument is not a valid Image resource in
    <the_program_lo cation> on line 9


    The resource ID was returned from imagecreatefrom jpeg, so, I have no idea
    why it's "not valid". The image in question displays fine in Mozilla,
    etc, if that matters at all- and it's also a fairly large image, if that
    matters at all too. Other PHP functions that work with the image resource
    fail in the same way.

    This is on 4.3.3 / FreeBSD 5.1, built from the ports collection . I have
    also tried this on Red Hat 9, with a similar failure.

    I've tried it on random images off of the web too, with no success.

    Here's my phpinfo()'s configure:

    './configure' '--enable-versioning' '--enable-memory-limit'
    '--with-layout=GNU' '--with-zlib-dir=/usr' '--disable-all'
    '--with-regex=php' '--disable-cli' '--with-apxs2=/usr/local/sbin/apxs'
    '--with-bz2=/usr' '--enable-calendar' '--enable-ctype'
    '--with-curl=/usr/local' '--enable-dba' '--with-dom=/usr/local'
    '--with-dom-xslt=/usr/local' '--with-dom-exslt=/usr/local' '--enable-exif'
    '--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--enable-gd-jis-conv'
    '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local'
    '--with-png-dir=/usr/local' '--with-xpm-dir=/usr/local'
    '--with-gdbm=/usr/local' '--with-gettext=/usr/local'
    '--with-iconv=/usr/local' '--with-imap=/usr/local'
    '--with-imap-ssl=/usr/local' '--with-inifile' '--enable-mbstring'
    '--enable-mbregex' '--with-mcal=/usr/local' '--with-mcrypt=/usr/local'
    '--with-mhash=/usr/local' '--with-mime-magic=/usr/share/misc/magic.mime'
    '--with-mysql=/usr/local' '--with-ncurses=/usr' '--with-ldap=/usr/local'
    '--with-openssl=/usr' '--enable-overload' '--with-pcre-regex=yes'
    '--enable-posix' '--with-pspell=/usr/local' '--with-readline'
    '--enable-session' '--enable-sockets' '--enable-tokenizer' '--enable-xml'
    '--with-expat-dir=/usr/local' '--with-xmlrpc' '--enable-xslt'
    '--with-xslt-sablot=/usr/local' '--with-zip=/usr/local' '--with-zlib=yes'
    '--prefix=/usr/local' 'i386-portbld-freebsd5.1'


    I have a feeling that I am missing something simple, but I don't know what
    it could be. I didn't find anything in the mailing list archives, and
    Googling for the error message just shows pages and pages of actual broken
    web pages.

    Is this a bug?

    Thanks in advance for any help,

    - Darren -
  • Jørn-Inge Kristiansen

    #2
    Re: Problems with createimagefrom jpeg?

    it worked fine when I removed the "|| die("failed..." ) part though


    "Darren Gamble" <darren@enchant ress.ca> wrote in message
    news:pan.2003.0 9.30.20.52.10.3 59779@enchantre ss.ca...[color=blue]
    > Good day,
    >
    > I've sent a message on this to the php-general list already, but
    > unfortunately no one replied. Sorry for the repost. to those that read
    > both...
    >
    > I'm having a problem working with an image that I've made with
    > imagecreatefrom jpeg. Here's the code:
    >
    >
    > $in_file = "IMG_0050.j pg";
    > echo "Testing for image ".$in_file. "<BR />\n"; $image =
    > imagecreatefrom jpeg($in_file) || die("Failed to create image from file.
    > <BR>\n");
    > echo "Resource ID: ".$image."<BR>\ n"; echo "Image width:
    > ".imagesx($imag e)."<BR>\n";
    >
    >
    > It reads in the file OK and prints out "1" as the Resource ID, as
    > expected. However, imagesx fails with:
    >
    > imagesx(): supplied argument is not a valid Image resource in
    > <the_program_lo cation> on line 9
    >
    >
    > The resource ID was returned from imagecreatefrom jpeg, so, I have no idea
    > why it's "not valid". The image in question displays fine in Mozilla,
    > etc, if that matters at all- and it's also a fairly large image, if that
    > matters at all too. Other PHP functions that work with the image resource
    > fail in the same way.
    >
    > This is on 4.3.3 / FreeBSD 5.1, built from the ports collection . I have
    > also tried this on Red Hat 9, with a similar failure.
    >
    > I've tried it on random images off of the web too, with no success.
    >
    > Here's my phpinfo()'s configure:
    >
    > './configure' '--enable-versioning' '--enable-memory-limit'
    > '--with-layout=GNU' '--with-zlib-dir=/usr' '--disable-all'
    > '--with-regex=php' '--disable-cli' '--with-apxs2=/usr/local/sbin/apxs'
    > '--with-bz2=/usr' '--enable-calendar' '--enable-ctype'
    > '--with-curl=/usr/local' '--enable-dba' '--with-dom=/usr/local'
    > '--with-dom-xslt=/usr/local' '--with-dom-exslt=/usr/local' '--enable-exif'
    > '--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--enable-gd-jis-conv'
    > '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local'
    > '--with-png-dir=/usr/local' '--with-xpm-dir=/usr/local'
    > '--with-gdbm=/usr/local' '--with-gettext=/usr/local'
    > '--with-iconv=/usr/local' '--with-imap=/usr/local'
    > '--with-imap-ssl=/usr/local' '--with-inifile' '--enable-mbstring'
    > '--enable-mbregex' '--with-mcal=/usr/local' '--with-mcrypt=/usr/local'
    > '--with-mhash=/usr/local' '--with-mime-magic=/usr/share/misc/magic.mime'
    > '--with-mysql=/usr/local' '--with-ncurses=/usr' '--with-ldap=/usr/local'
    > '--with-openssl=/usr' '--enable-overload' '--with-pcre-regex=yes'
    > '--enable-posix' '--with-pspell=/usr/local' '--with-readline'
    > '--enable-session' '--enable-sockets' '--enable-tokenizer' '--enable-xml'
    > '--with-expat-dir=/usr/local' '--with-xmlrpc' '--enable-xslt'
    > '--with-xslt-sablot=/usr/local' '--with-zip=/usr/local' '--with-zlib=yes'
    > '--prefix=/usr/local' 'i386-portbld-freebsd5.1'
    >
    >
    > I have a feeling that I am missing something simple, but I don't know what
    > it could be. I didn't find anything in the mailing list archives, and
    > Googling for the error message just shows pages and pages of actual broken
    > web pages.
    >
    > Is this a bug?
    >
    > Thanks in advance for any help,
    >
    > - Darren -[/color]


    Comment

    • Jørn-Inge Kristiansen

      #3
      Re: Problems with createimagefrom jpeg?

      and it worked with or instead of || too

      don't ask my why, it just did ;)

      "Jørn-Inge Kristiansen" <jorninge@stud. ntnu.no> wrote in message
      news:blcrin$19l $1@tyfon.itea.n tnu.no...[color=blue]
      > it worked fine when I removed the "|| die("failed..." ) part though
      >
      >
      > "Darren Gamble" <darren@enchant ress.ca> wrote in message
      > news:pan.2003.0 9.30.20.52.10.3 59779@enchantre ss.ca...[color=green]
      > > Good day,
      > >
      > > I've sent a message on this to the php-general list already, but
      > > unfortunately no one replied. Sorry for the repost. to those that read
      > > both...
      > >
      > > I'm having a problem working with an image that I've made with
      > > imagecreatefrom jpeg. Here's the code:
      > >
      > >
      > > $in_file = "IMG_0050.j pg";
      > > echo "Testing for image ".$in_file. "<BR />\n"; $image =
      > > imagecreatefrom jpeg($in_file) || die("Failed to create image from file.
      > > <BR>\n");
      > > echo "Resource ID: ".$image."<BR>\ n"; echo "Image width:
      > > ".imagesx($imag e)."<BR>\n";
      > >
      > >
      > > It reads in the file OK and prints out "1" as the Resource ID, as
      > > expected. However, imagesx fails with:
      > >
      > > imagesx(): supplied argument is not a valid Image resource in
      > > <the_program_lo cation> on line 9
      > >
      > >
      > > The resource ID was returned from imagecreatefrom jpeg, so, I have no[/color][/color]
      idea[color=blue][color=green]
      > > why it's "not valid". The image in question displays fine in Mozilla,
      > > etc, if that matters at all- and it's also a fairly large image, if that
      > > matters at all too. Other PHP functions that work with the image[/color][/color]
      resource[color=blue][color=green]
      > > fail in the same way.
      > >
      > > This is on 4.3.3 / FreeBSD 5.1, built from the ports collection . I[/color][/color]
      have[color=blue][color=green]
      > > also tried this on Red Hat 9, with a similar failure.
      > >
      > > I've tried it on random images off of the web too, with no success.
      > >
      > > Here's my phpinfo()'s configure:
      > >
      > > './configure' '--enable-versioning' '--enable-memory-limit'
      > > '--with-layout=GNU' '--with-zlib-dir=/usr' '--disable-all'
      > > '--with-regex=php' '--disable-cli' '--with-apxs2=/usr/local/sbin/apxs'
      > > '--with-bz2=/usr' '--enable-calendar' '--enable-ctype'
      > > '--with-curl=/usr/local' '--enable-dba' '--with-dom=/usr/local'
      > > '--with-dom-xslt=/usr/local' '--with-dom-exslt=/usr/local'[/color][/color]
      '--enable-exif'[color=blue][color=green]
      > > '--enable-ftp' '--with-gd' '--enable-gd-native-ttf'[/color][/color]
      '--enable-gd-jis-conv'[color=blue][color=green]
      > > '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local'
      > > '--with-png-dir=/usr/local' '--with-xpm-dir=/usr/local'
      > > '--with-gdbm=/usr/local' '--with-gettext=/usr/local'
      > > '--with-iconv=/usr/local' '--with-imap=/usr/local'
      > > '--with-imap-ssl=/usr/local' '--with-inifile' '--enable-mbstring'
      > > '--enable-mbregex' '--with-mcal=/usr/local' '--with-mcrypt=/usr/local'
      > > '--with-mhash=/usr/local' '--with-mime-magic=/usr/share/misc/magic.mime'
      > > '--with-mysql=/usr/local' '--with-ncurses=/usr' '--with-ldap=/usr/local'
      > > '--with-openssl=/usr' '--enable-overload' '--with-pcre-regex=yes'
      > > '--enable-posix' '--with-pspell=/usr/local' '--with-readline'
      > > '--enable-session' '--enable-sockets' '--enable-tokenizer'[/color][/color]
      '--enable-xml'[color=blue][color=green]
      > > '--with-expat-dir=/usr/local' '--with-xmlrpc' '--enable-xslt'
      > > '--with-xslt-sablot=/usr/local' '--with-zip=/usr/local'[/color][/color]
      '--with-zlib=yes'[color=blue][color=green]
      > > '--prefix=/usr/local' 'i386-portbld-freebsd5.1'
      > >
      > >
      > > I have a feeling that I am missing something simple, but I don't know[/color][/color]
      what[color=blue][color=green]
      > > it could be. I didn't find anything in the mailing list archives, and
      > > Googling for the error message just shows pages and pages of actual[/color][/color]
      broken[color=blue][color=green]
      > > web pages.
      > >
      > > Is this a bug?
      > >
      > > Thanks in advance for any help,
      > >
      > > - Darren -[/color]
      >
      >[/color]


      Comment

      • Jørn-Inge Kristiansen

        #4
        Re: Problems with createimagefrom jpeg?

        sorry for spamming, but it's because of precedence







        "Jørn-Inge Kristiansen" <jorninge@stud. ntnu.no> wrote in message
        news:blcrkq$1a1 $1@tyfon.itea.n tnu.no...[color=blue]
        > and it worked with or instead of || too
        >
        > don't ask my why, it just did ;)
        >
        > "Jørn-Inge Kristiansen" <jorninge@stud. ntnu.no> wrote in message
        > news:blcrin$19l $1@tyfon.itea.n tnu.no...[color=green]
        > > it worked fine when I removed the "|| die("failed..." ) part though
        > >
        > >
        > > "Darren Gamble" <darren@enchant ress.ca> wrote in message
        > > news:pan.2003.0 9.30.20.52.10.3 59779@enchantre ss.ca...[color=darkred]
        > > > Good day,
        > > >
        > > > I've sent a message on this to the php-general list already, but
        > > > unfortunately no one replied. Sorry for the repost. to those that[/color][/color][/color]
        read[color=blue][color=green][color=darkred]
        > > > both...
        > > >
        > > > I'm having a problem working with an image that I've made with
        > > > imagecreatefrom jpeg. Here's the code:
        > > >
        > > >
        > > > $in_file = "IMG_0050.j pg";
        > > > echo "Testing for image ".$in_file. "<BR />\n"; $image =
        > > > imagecreatefrom jpeg($in_file) || die("Failed to create image from[/color][/color][/color]
        file.[color=blue][color=green][color=darkred]
        > > > <BR>\n");
        > > > echo "Resource ID: ".$image."<BR>\ n"; echo "Image width:
        > > > ".imagesx($imag e)."<BR>\n";
        > > >
        > > >
        > > > It reads in the file OK and prints out "1" as the Resource ID, as
        > > > expected. However, imagesx fails with:
        > > >
        > > > imagesx(): supplied argument is not a valid Image resource in
        > > > <the_program_lo cation> on line 9
        > > >
        > > >
        > > > The resource ID was returned from imagecreatefrom jpeg, so, I have no[/color][/color]
        > idea[color=green][color=darkred]
        > > > why it's "not valid". The image in question displays fine in Mozilla,
        > > > etc, if that matters at all- and it's also a fairly large image, if[/color][/color][/color]
        that[color=blue][color=green][color=darkred]
        > > > matters at all too. Other PHP functions that work with the image[/color][/color]
        > resource[color=green][color=darkred]
        > > > fail in the same way.
        > > >
        > > > This is on 4.3.3 / FreeBSD 5.1, built from the ports collection . I[/color][/color]
        > have[color=green][color=darkred]
        > > > also tried this on Red Hat 9, with a similar failure.
        > > >
        > > > I've tried it on random images off of the web too, with no success.
        > > >
        > > > Here's my phpinfo()'s configure:
        > > >
        > > > './configure' '--enable-versioning' '--enable-memory-limit'
        > > > '--with-layout=GNU' '--with-zlib-dir=/usr' '--disable-all'
        > > > '--with-regex=php' '--disable-cli' '--with-apxs2=/usr/local/sbin/apxs'
        > > > '--with-bz2=/usr' '--enable-calendar' '--enable-ctype'
        > > > '--with-curl=/usr/local' '--enable-dba' '--with-dom=/usr/local'
        > > > '--with-dom-xslt=/usr/local' '--with-dom-exslt=/usr/local'[/color][/color]
        > '--enable-exif'[color=green][color=darkred]
        > > > '--enable-ftp' '--with-gd' '--enable-gd-native-ttf'[/color][/color]
        > '--enable-gd-jis-conv'[color=green][color=darkred]
        > > > '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local'
        > > > '--with-png-dir=/usr/local' '--with-xpm-dir=/usr/local'
        > > > '--with-gdbm=/usr/local' '--with-gettext=/usr/local'
        > > > '--with-iconv=/usr/local' '--with-imap=/usr/local'
        > > > '--with-imap-ssl=/usr/local' '--with-inifile' '--enable-mbstring'
        > > > '--enable-mbregex' '--with-mcal=/usr/local' '--with-mcrypt=/usr/local'
        > > > '--with-mhash=/usr/local'[/color][/color][/color]
        '--with-mime-magic=/usr/share/misc/magic.mime'[color=blue][color=green][color=darkred]
        > > > '--with-mysql=/usr/local' '--with-ncurses=/usr'[/color][/color][/color]
        '--with-ldap=/usr/local'[color=blue][color=green][color=darkred]
        > > > '--with-openssl=/usr' '--enable-overload' '--with-pcre-regex=yes'
        > > > '--enable-posix' '--with-pspell=/usr/local' '--with-readline'
        > > > '--enable-session' '--enable-sockets' '--enable-tokenizer'[/color][/color]
        > '--enable-xml'[color=green][color=darkred]
        > > > '--with-expat-dir=/usr/local' '--with-xmlrpc' '--enable-xslt'
        > > > '--with-xslt-sablot=/usr/local' '--with-zip=/usr/local'[/color][/color]
        > '--with-zlib=yes'[color=green][color=darkred]
        > > > '--prefix=/usr/local' 'i386-portbld-freebsd5.1'
        > > >
        > > >
        > > > I have a feeling that I am missing something simple, but I don't know[/color][/color]
        > what[color=green][color=darkred]
        > > > it could be. I didn't find anything in the mailing list archives, and
        > > > Googling for the error message just shows pages and pages of actual[/color][/color]
        > broken[color=green][color=darkred]
        > > > web pages.
        > > >
        > > > Is this a bug?
        > > >
        > > > Thanks in advance for any help,
        > > >
        > > > - Darren -[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Pedro

          #5
          Re: Problems with createimagefrom jpeg?

          Jørn-Inge Kristiansen wrote:[color=blue]
          > and it worked with or instead of || too
          >
          > don't ask my why, it just did ;)[/color]

          I think the reason is precedence

          $a = $x || $y; <==> $a = ($x or $y);

          and

          $a = $x or $y; <==> ($a = $x) || $y;


          check


          --
          I have a spam filter working.
          To mail me include "urkxvq" (with or without the quotes)
          in the subject line, or your mail will be ruthlessly discarded.

          Comment

          • Randell D.

            #6
            Re: Problems with createimagefrom jpeg?


            "Darren Gamble" <darren@enchant ress.ca> wrote in message
            news:pan.2003.0 9.30.20.52.10.3 59779@enchantre ss.ca...[color=blue]
            > Good day,
            >
            > I've sent a message on this to the php-general list already, but
            > unfortunately no one replied. Sorry for the repost. to those that read
            > both...
            >
            > I'm having a problem working with an image that I've made with
            > imagecreatefrom jpeg. Here's the code:
            >
            >
            > $in_file = "IMG_0050.j pg";
            > echo "Testing for image ".$in_file. "<BR />\n"; $image =
            > imagecreatefrom jpeg($in_file) || die("Failed to create image from file.
            > <BR>\n");
            > echo "Resource ID: ".$image."<BR>\ n"; echo "Image width:
            > ".imagesx($imag e)."<BR>\n";
            >
            >
            > It reads in the file OK and prints out "1" as the Resource ID, as
            > expected. However, imagesx fails with:
            >
            > imagesx(): supplied argument is not a valid Image resource in
            > <the_program_lo cation> on line 9
            >
            >
            > The resource ID was returned from imagecreatefrom jpeg, so, I have no idea
            > why it's "not valid". The image in question displays fine in Mozilla,
            > etc, if that matters at all- and it's also a fairly large image, if that
            > matters at all too. Other PHP functions that work with the image resource
            > fail in the same way.
            >
            > This is on 4.3.3 / FreeBSD 5.1, built from the ports collection . I have
            > also tried this on Red Hat 9, with a similar failure.
            >
            > I've tried it on random images off of the web too, with no success.
            >
            > Here's my phpinfo()'s configure:
            >
            > './configure' '--enable-versioning' '--enable-memory-limit'
            > '--with-layout=GNU' '--with-zlib-dir=/usr' '--disable-all'
            > '--with-regex=php' '--disable-cli' '--with-apxs2=/usr/local/sbin/apxs'
            > '--with-bz2=/usr' '--enable-calendar' '--enable-ctype'
            > '--with-curl=/usr/local' '--enable-dba' '--with-dom=/usr/local'
            > '--with-dom-xslt=/usr/local' '--with-dom-exslt=/usr/local' '--enable-exif'
            > '--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--enable-gd-jis-conv'
            > '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local'
            > '--with-png-dir=/usr/local' '--with-xpm-dir=/usr/local'
            > '--with-gdbm=/usr/local' '--with-gettext=/usr/local'
            > '--with-iconv=/usr/local' '--with-imap=/usr/local'
            > '--with-imap-ssl=/usr/local' '--with-inifile' '--enable-mbstring'
            > '--enable-mbregex' '--with-mcal=/usr/local' '--with-mcrypt=/usr/local'
            > '--with-mhash=/usr/local' '--with-mime-magic=/usr/share/misc/magic.mime'
            > '--with-mysql=/usr/local' '--with-ncurses=/usr' '--with-ldap=/usr/local'
            > '--with-openssl=/usr' '--enable-overload' '--with-pcre-regex=yes'
            > '--enable-posix' '--with-pspell=/usr/local' '--with-readline'
            > '--enable-session' '--enable-sockets' '--enable-tokenizer' '--enable-xml'
            > '--with-expat-dir=/usr/local' '--with-xmlrpc' '--enable-xslt'
            > '--with-xslt-sablot=/usr/local' '--with-zip=/usr/local' '--with-zlib=yes'
            > '--prefix=/usr/local' 'i386-portbld-freebsd5.1'[/color]

            I had problems working with GDlib up unti recently - then I discovered that
            it was a compilation issue. Can you do a phpinfo(); and check for GD? Its
            in a category of its own and it will tell you what is enabled. Secondly,
            can you execute the following and post the output back.

            <?
            $gdArray=gd_inf o();
            foreach($gdArra y as $key=>$value)
            { print("<br>$key = $value"); }
            ?>



            Comment

            • Randell D.

              #7
              Re: Problems with createimagefrom jpeg?


              "Darren Gamble" <darren@enchant ress.ca> wrote in message
              news:pan.2003.0 9.30.20.52.10.3 59779@enchantre ss.ca...[color=blue]
              > Good day,
              >
              > I've sent a message on this to the php-general list already, but
              > unfortunately no one replied. Sorry for the repost. to those that read
              > both...
              >
              > I'm having a problem working with an image that I've made with
              > imagecreatefrom jpeg. Here's the code:
              >
              >
              > $in_file = "IMG_0050.j pg";
              > echo "Testing for image ".$in_file. "<BR />\n"; $image =
              > imagecreatefrom jpeg($in_file) || die("Failed to create image from file.
              > <BR>\n");
              > echo "Resource ID: ".$image."<BR>\ n"; echo "Image width:
              > ".imagesx($imag e)."<BR>\n";
              >
              >
              > It reads in the file OK and prints out "1" as the Resource ID, as
              > expected. However, imagesx fails with:
              >
              > imagesx(): supplied argument is not a valid Image resource in
              > <the_program_lo cation> on line 9
              >
              >
              > The resource ID was returned from imagecreatefrom jpeg, so, I have no idea
              > why it's "not valid". The image in question displays fine in Mozilla,
              > etc, if that matters at all- and it's also a fairly large image, if that
              > matters at all too. Other PHP functions that work with the image resource
              > fail in the same way.
              >
              > This is on 4.3.3 / FreeBSD 5.1, built from the ports collection . I have
              > also tried this on Red Hat 9, with a similar failure.
              >
              > I've tried it on random images off of the web too, with no success.
              >
              > Here's my phpinfo()'s configure:
              >
              > './configure' '--enable-versioning' '--enable-memory-limit'
              > '--with-layout=GNU' '--with-zlib-dir=/usr' '--disable-all'
              > '--with-regex=php' '--disable-cli' '--with-apxs2=/usr/local/sbin/apxs'
              > '--with-bz2=/usr' '--enable-calendar' '--enable-ctype'
              > '--with-curl=/usr/local' '--enable-dba' '--with-dom=/usr/local'
              > '--with-dom-xslt=/usr/local' '--with-dom-exslt=/usr/local' '--enable-exif'
              > '--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--enable-gd-jis-conv'
              > '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local'
              > '--with-png-dir=/usr/local' '--with-xpm-dir=/usr/local'
              > '--with-gdbm=/usr/local' '--with-gettext=/usr/local'
              > '--with-iconv=/usr/local' '--with-imap=/usr/local'
              > '--with-imap-ssl=/usr/local' '--with-inifile' '--enable-mbstring'
              > '--enable-mbregex' '--with-mcal=/usr/local' '--with-mcrypt=/usr/local'
              > '--with-mhash=/usr/local' '--with-mime-magic=/usr/share/misc/magic.mime'
              > '--with-mysql=/usr/local' '--with-ncurses=/usr' '--with-ldap=/usr/local'
              > '--with-openssl=/usr' '--enable-overload' '--with-pcre-regex=yes'
              > '--enable-posix' '--with-pspell=/usr/local' '--with-readline'
              > '--enable-session' '--enable-sockets' '--enable-tokenizer' '--enable-xml'
              > '--with-expat-dir=/usr/local' '--with-xmlrpc' '--enable-xslt'
              > '--with-xslt-sablot=/usr/local' '--with-zip=/usr/local' '--with-zlib=yes'
              > '--prefix=/usr/local' 'i386-portbld-freebsd5.1'
              >
              >
              > I have a feeling that I am missing something simple, but I don't know what
              > it could be. I didn't find anything in the mailing list archives, and
              > Googling for the error message just shows pages and pages of actual broken
              > web pages.
              >
              > Is this a bug?
              >
              > Thanks in advance for any help,
              >
              > - Darren -[/color]

              Sorry... The history of your post just downloaded so ignore my previous
              post...


              Comment

              • Darren Gamble

                #8
                Re: Problems with createimagefrom jpeg?

                On Tue, 30 Sep 2003 21:25:33 +0000, Pedro wrote:
                [color=blue]
                > Jørn-Inge Kristiansen wrote:[color=green]
                >> and it worked with or instead of || too
                >>
                >> don't ask my why, it just did ;)[/color]
                >
                > I think the reason is precedence
                >
                > $a = $x || $y; <==> $a = ($x or $y);
                >
                > and
                >
                > $a = $x or $y; <==> ($a = $x) || $y;[/color]

                Thanks to everyone for replying!

                Yes, I should have put the first expression in parenthesis. Bleah, how
                embarassing. Too much scripting in Perl and using "or" is to blame, I
                think. =)

                - Darren -



                Comment

                Working...