GD Library

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

    #1

    GD Library

    Hallo NG,
    I have problem creating automatic thumbnails from image of size 2200*1700
    pixel, if I scale the same image to 1000*x pixel thumbnails creation works
    good.
    Someone knows if it's a limit of GD library version 2.0.28 or a lack on
    server setup?
    Thanks.


  • Philip Ronan

    #2
    Re: GD Library

    M wrote:
    [color=blue]
    > Hallo NG,
    > I have problem creating automatic thumbnails from image of size 2200*1700
    > pixel, if I scale the same image to 1000*x pixel thumbnails creation works
    > good.
    > Someone knows if it's a limit of GD library version 2.0.28 or a lack on
    > server setup?
    > Thanks.[/color]

    This isn't a limitation of the GD library. You're just using up all the
    memory available to PHP.

    (Hint: 2000 x 1700 x 24 bits per pixel for a full-colour image = almost 80
    megabytes)

    Perhaps there's something in php.ini that you can adjust to give it more
    memory?

    --
    phil [dot] ronan @ virgin [dot] net



    Comment

    • M

      #3
      Re: GD Library

      Thanks for the reply, I suppose that too reading old news from here.
      I'll post here if I find the solution.

      "Philip Ronan" <invalid@invali d.invalid> ha scritto nel messaggio
      news:BEAA5A65.3 10CF%invalid@in valid.invalid.. .[color=blue]
      >M wrote:
      >[color=green]
      >> Hallo NG,
      >> I have problem creating automatic thumbnails from image of size 2200*1700
      >> pixel, if I scale the same image to 1000*x pixel thumbnails creation
      >> works
      >> good.
      >> Someone knows if it's a limit of GD library version 2.0.28 or a lack on
      >> server setup?
      >> Thanks.[/color]
      >
      > This isn't a limitation of the GD library. You're just using up all the
      > memory available to PHP.
      >
      > (Hint: 2000 x 1700 x 24 bits per pixel for a full-colour image = almost 80
      > megabytes)
      >
      > Perhaps there's something in php.ini that you can adjust to give it more
      > memory?
      >
      > --
      > phil [dot] ronan @ virgin [dot] net
      > http://vzone.virgin.net/phil.ronan/
      >
      >[/color]


      Comment

      • M

        #4
        Re: GD Library

        Now I know that memory allocation for PHP is set to 12MB. So that is the
        problem.


        "M" <thinICE@ngi.it > ha scritto nel messaggio
        news:d626em$osm $1@news.ngi.it. ..[color=blue]
        > Thanks for the reply, I suppose that too reading old news from here.
        > I'll post here if I find the solution.
        >
        > "Philip Ronan" <invalid@invali d.invalid> ha scritto nel messaggio
        > news:BEAA5A65.3 10CF%invalid@in valid.invalid.. .[color=green]
        >>M wrote:
        >>[color=darkred]
        >>> Hallo NG,
        >>> I have problem creating automatic thumbnails from image of size
        >>> 2200*1700
        >>> pixel, if I scale the same image to 1000*x pixel thumbnails creation
        >>> works
        >>> good.
        >>> Someone knows if it's a limit of GD library version 2.0.28 or a lack on
        >>> server setup?
        >>> Thanks.[/color]
        >>
        >> This isn't a limitation of the GD library. You're just using up all the
        >> memory available to PHP.
        >>
        >> (Hint: 2000 x 1700 x 24 bits per pixel for a full-colour image = almost
        >> 80
        >> megabytes)
        >>
        >> Perhaps there's something in php.ini that you can adjust to give it more
        >> memory?
        >>
        >> --
        >> phil [dot] ronan @ virgin [dot] net
        >> http://vzone.virgin.net/phil.ronan/
        >>
        >>[/color]
        >
        >[/color]


        Comment

        • Andy Jacobs

          #5
          Re: GD Library

          In article <d62cbi$r97$1@n ews.ngi.it>, "M" <thinICE@ngi.it > wrote:
          [color=blue]
          > Now I know that memory allocation for PHP is set to 12MB. So that is the
          > problem.
          >
          >
          > "M" <thinICE@ngi.it > ha scritto nel messaggio
          > news:d626em$osm $1@news.ngi.it. ..[color=green]
          > > Thanks for the reply, I suppose that too reading old news from here.
          > > I'll post here if I find the solution.
          > >
          > > "Philip Ronan" <invalid@invali d.invalid> ha scritto nel messaggio
          > > news:BEAA5A65.3 10CF%invalid@in valid.invalid.. .[color=darkred]
          > >>M wrote:
          > >>
          > >>> Hallo NG,
          > >>> I have problem creating automatic thumbnails from image of size
          > >>> 2200*1700
          > >>> pixel, if I scale the same image to 1000*x pixel thumbnails creation
          > >>> works
          > >>> good.
          > >>> Someone knows if it's a limit of GD library version 2.0.28 or a lack on
          > >>> server setup?
          > >>> Thanks.
          > >>
          > >> This isn't a limitation of the GD library. You're just using up all the
          > >> memory available to PHP.
          > >>
          > >> (Hint: 2000 x 1700 x 24 bits per pixel for a full-colour image = almost
          > >> 80
          > >> megabytes)
          > >>
          > >> Perhaps there's something in php.ini that you can adjust to give it more
          > >> memory?[/color][/color][/color]

          I've had the same problem. I used to use a gallery that used netpbm
          instead of GD and I seem to recall that it handled fines with no problem.

          --
          Andy Jacobs

          Intelligent Websites For Intelligent Business People

          Comment

          Working...