Upload Error
12 posts by 4 authors in: Forums > CMS Builder
Last Post: March 25, 2009 (RSS)
By Kenny - March 24, 2009
So, if the resulting pictures cannot be uploaded, then the fault is mine - not his!
I can sooooooo relate to you on this one!
But yes, a very large image in dimensions can vary in file size from camera to camera.
A JPEG image is very loose with this fact. By using JPEG compression, you can keep the physical size of the image the same and reduce the amount of disk space required to store it but you will be sacrificing the quality of the image. My Nikon D300 has tons of options for shooting JPEG, each with a different file size and picture size.
You can also test this theory in Photoshop by changing an image size from 300 DPI to 72 DPI and uncheck re-sample image. The dimensions stay the same, but the image will get much smaller in file size.
Try explaining this to your client though.....
Kenny
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!
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
interactivetools.com