Upload Error

12 posts by 4 authors in: Forums > CMS Builder
Last Post: March 25, 2009   (RSS)

By Dave - March 25, 2009

Perch or Sagentic,

What is the dimensions and filesize of the problem images?

Can you attach a sample "real" image that has large dimensions and not extra large filesize?

There's 2 ways to resize images in php, resizing and resampling. Resizing just removes pixels and makes the thumbnail look grainy, resampling aliases the pixels to it looks smoother and clearer. Resizing uses less CPU and memory.

I've read about some tricks where extra large images can be resized down part of the way then resampled the last bit of the way so you get the benefits of less CPU/Memory and still a clear thumbnail.

Another option is we'd like to eventually implement a flash uploader (like Gmail) that allows selecting of multiple images to upload at once. It may be possible to implement some resizing on the user end through flash.

If you can attach some sample real world images I can do some research on this and see if the memory saving would be significant enough to implement it.

Note that both of these are going to take time to research and implement and (even if they work ) may be a few versions off.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com