Debt - The eBay Song - Horse Farming - Remortgages - Home Loan

PDA

View Full Version : Module That Reduces File Size of Uploaded Images?


pcoulter
Feb 4th 2008, 2:14 pm
Hi,

I'm currently developing a Real Estate website that doesn't have a feature that reduces the file size of uploaded images. So if someone uploads a gallery of 1mb images they take a long time to load.

Does anyone know of a solution for this problem or have some sort of script or module that will take care of this problem?

I'm willing to pay $$$ for a solution.

Thanks,
Paul

ToddMicheau
Feb 4th 2008, 10:20 pm
One solution would be to use a thumbnail script, so just little images are loaded and not the entire thing. I found a free one on google- http://www.zubrag.com/scripts/thumbnail-generator.php (I haven't tested it though).
All the instructions to use it are on the page and this should speed the load time on your images.

AstarothSolutions
Feb 5th 2008, 1:32 am
Yes, need to reduce the image sizes after they are uploaded but also consider limiting the file size of uploads too.

There are many free scripts that will do both of these depending on your chosen programming language.

WeBcYtE
Feb 6th 2008, 6:56 am
If you are doing this in PHP, there are functions that enable you to resample the images and also re-encode the image to reduce the size. You need to have the GD library installed; alternatively you could use imagemagick which is a free command line image manipulation tool. It can be called from any script platform.