Re: php-gd picture rendering question
| From: | Sasha Dolgy | Date: | Thu, 02 Mar 2006 16:31:26 +0000 |
| Subject: | Re: php-gd picture rendering question | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-17131@lists.php.net to get a copy of this message | ||
Could be there's a limit you're hitting. Check out your php.ini file
(phpinfo(); will show you the location of where it is)
I just did a quick look in mine and perhaps your 500k image is taking
up more then whatever you have set for memory_limit?
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend
parsing request data
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
On 3/2/06, Pete Masse <pete@chemistry.montana.edu> wrote:
>
> I'm having trouble getting php to render an image that is 500k. It does
> fine with 200k but the larger images don't show up. Below is the code
> that I am using. I have php-gd installed.
>
> <?php
> $img =3D $n->getImage();
> if(!is_null($img)) {
> ?>
> <img src=3D"image.php?w=3D200&f=3D<?php echo($img->filename);=
> ?>"
> class=3D"border" style=3D"margin:0 0 10px 10px;" alt=3D"<?php
> echo($img->alternate_text); ?>" border=3D"0">
> <br><br>
> </td>
> <?php } ?>
>
> Is there any way to get php to render larger pictures?
>
> Pete
> -----------------------------------------------------------
> Pete Masse
> Information Systems
> Department of Chemistry/Biochemistry
> 108 Gains Hall
> Montana State University - Bozeman
> Bozeman Montana 59717
> (406) 994-5379
> pete@chemistry.montana.edu
> www.chemistry.montana.edu
--
Sasha Dolgy
sasha.dolgy@gmail.com