|
Posted by shimmyshack on 03/26/07 15:12
On 26 Mar, 15:48, Willem Bogaerts
<w.bogae...@kratz.maardanzonderditstuk.nl> wrote:
> > I have a very simple file upload script which creates a thumbnail of
> > the file (jpg) upon uploading. This works fine with small images,
> > however, if i try to upload a file over about 1mb the thumbnail
> > dosen't show. Any ideas ?
> > Thanks for any advice.
>
> Does the full jpg gets uploaded properly? In that case, it is not in the
> upload settings.
>
> I guess that you use the gd image functions. In that case, note that a
> jpg is a compressed image. To work with it, it must be uncompressed. If
> you want to resample it, you'd probably have both the original and the
> target uncompressed in memory at some point. If you configure PHP to use
> only a limited amount of memory, that memory may be too little, even if
> the uploaded file is not that big. Does increasing the memory limit help?
>
> Best regards,
> --
> Willem Bogaerts
>
> Application smith
> Kratz B.V.http://www.kratz.nl/
uploads are slow, i think this is a max execution problem time
problem, as you script works fine and fast for 2-3MB files, tested on
15MB file - /then/ the memory was high, but otherwise pretty small.
2*1024^2 / 30 is about 500kbits/s which is kinda what you expect the
wrong end of ADSL to be - the upper limit for us poor UK'rs
[Back to original message]
|