maximum size for imagecreatetruecolor()??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • chotiwallah@web.de

    #1

    maximum size for imagecreatetruecolor()??

    there seems to be a maximum size (in px) for images created with
    imagecreatetrue color (somewhere between 4000 px and 4500 px). if the
    image is bigger than that size, the browser doesn't display it but
    reports errors in the image.

    is this maximum size inbuilt into php?

    or

    does it depend on my server config and if yes how can i read it?
    tia, micha

  • Philip Ronan

    #2
    Re: maximum size for imagecreatetrue color()??

    chotiwallah@web .de wrote:
    [color=blue]
    > there seems to be a maximum size (in px) for images created with
    > imagecreatetrue color (somewhere between 4000 px and 4500 px). if the
    > image is bigger than that size, the browser doesn't display it but
    > reports errors in the image.
    >
    > is this maximum size inbuilt into php?
    >
    > or
    >
    > does it depend on my server config and if yes how can i read it?
    > tia, micha
    >[/color]

    A full-colour 4096x4096 image occupies 48 MB (or 64 MB it it has an alpha
    channel). My guess is this problem is not so much to do with a maximum image
    size but rather the amount of memory allocated to the running of your
    website. Either talk to your web hosts about getting it increased, or stop
    using such enormous images.

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



    Comment

    • chotiwallah@web.de

      #3
      Re: maximum size for imagecreatetrue color()??


      Philip Ronan wrote:[color=blue]
      > chotiwallah@web .de wrote:
      >[color=green]
      > > there seems to be a maximum size (in px) for images created with
      > > imagecreatetrue color (somewhere between 4000 px and 4500 px). if[/color][/color]
      the[color=blue][color=green]
      > > image is bigger than that size, the browser doesn't display it but
      > > reports errors in the image.
      > >
      > > is this maximum size inbuilt into php?
      > >
      > > or
      > >
      > > does it depend on my server config and if yes how can i read it?
      > > tia, micha
      > >[/color]
      >
      > A full-colour 4096x4096 image occupies 48 MB (or 64 MB it it has an[/color]
      alpha[color=blue]
      > channel). My guess is this problem is not so much to do with a[/color]
      maximum image[color=blue]
      > size but rather the amount of memory allocated to the running of your
      > website. Either talk to your web hosts about getting it increased, or[/color]
      stop[color=blue]
      > using such enormous images.
      >
      > --
      > phil [dot] ronan @ virgin [dot] net
      > http://vzone.virgin.net/phil.ronan/[/color]


      yes, that occurred to me after posting. i had not thought about memory
      at all, just followed the manuals recommendation to use
      imagecreatetrue color() instead of imagecreate(), even if i don't really
      need true color images. works fine now with imagecreate.

      thnaks, micha

      Comment

      Working...