Re: imagecreatefromjpeg() uses too much memory
- From: "Diogo" <diogo86@xxxxxxxxx>
- Date: 30 Mar 2006 01:17:41 -0800
the problem is not how big in bytes your jpeg is but how large its
dimensions are.
when you imagecreatefromjpeg() the function sort of "decode" and stores
it n memory as "raw data" (well not exactly but as big as it'd be) then
you can really get huge usage with files larger than 1024x768 lets say.
i'd say that even if you change your ISP for someone with a bigger
memory limit it'd crash anyway with GD - at least when someone uploads
a big enough picture.
have you considering limiting the dimensions of the picture? it'll be
boring for the users tho :P
it will be almost impossible to use external features such as
Imagemagick instead of gd on a shared host.
.
- Follow-Ups:
- Re: imagecreatefromjpeg() uses too much memory
- From: kapten
- Re: imagecreatefromjpeg() uses too much memory
- References:
- imagecreatefromjpeg() uses too much memory
- From: kapten
- Re: imagecreatefromjpeg() uses too much memory
- From: Johannes Wienke
- Re: imagecreatefromjpeg() uses too much memory
- From: bobzimuta
- Re: imagecreatefromjpeg() uses too much memory
- From: kapten
- imagecreatefromjpeg() uses too much memory
- Prev by Date: Re: imagecreatefromjpeg() uses too much memory
- Next by Date: Re: imagecreatefromjpeg() uses too much memory
- Previous by thread: Re: imagecreatefromjpeg() uses too much memory
- Next by thread: Re: imagecreatefromjpeg() uses too much memory
- Index(es):
Relevant Pages
|