Re: resize image and memory limits




"Bob Bedford" <bob@xxxxxxxxxxx> wrote in message
news:4685790f$0$3782$5402220f@xxxxxxxxxxxxxxxxxx

"Richard" <root@localhost> a écrit dans le message de news:
46853375$0$22359$dbd45001@xxxxxxxxxxxxxxxxxx

"Bob Bedford" <bob@xxxxxxxxxxx> wrote in message
news:4684e4db$0$3784$5402220f@xxxxxxxxxxxxxxxxxx
Hi all,

I've to resize uploaded images with the "imagecopyresampled" but when
I've images quite large (common those days) I reach the 16mb limits of
the ISP.

How can I fix this ? I absolutely need to resize such images.

Bob

Hi Bob,

maybe you can resize them first to an intermediate size using
'imagecopyresized', hoping that resizing takes up less memory than
resampled.

Richard

The memory limit is reached when "loading" the pixels in memory before
resizing so this solution won't work

Bob,
I dont know about that...
It should be possible to resize an image without loading it completely into
memory.
You just dont need the full image all the time.

Did you try it?

Also there are some upload java applets, that can do some resizing BEFORE
upload.
Maybe that way you can get things working?

If you really need to deal with images that large, then you are probably on
the wrong webhost.....
:(

Richard.


.



Relevant Pages

  • Re: What resized photos for 5MB Limit?
    ... I want to upload three or five photos on my Hobby-site. ... images and you will have an option to resize. ...
    (microsoft.public.windowsxp.photos)
  • Re: What resized photos for 5MB Limit?
    ... successfully uploaded the photos, 10altogether ... How to resize, 800 x 800. ... I want to upload three or five photos on my Hobby-site. ... images and you will have an option to resize. ...
    (microsoft.public.windowsxp.photos)
  • Re: Photo attachments dont fit screen
    ... select output folder ... set thumbnail size to 600*600 ... creates a replica folder full of resized images anything from 50*50 to ... there was no way to resize globally within the camera (even at the lowest ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Upload and resize pictures with path in database
    ... What I need to do is upload, resize pictures with path in database ... here are 4 sizes of images: ...
    (comp.lang.php)
  • Re: Automatic Picture Sizing and Renaming
    ... | I have several hundred pictures I'd like to resize to 800x600 and I'd ... | also like to randomize their names to have them shuffle on a computer ... | I'm not sure how to get this to work on a whole directory full of pictures. ... Rename all images in said source directory to a random number ...
    (Fedora)