Hi, A site that I'm working on allows the user to upload 6 images for display on the site. Using CFFILE the images are uploaded and then resized with CFIMAGE if required. A thumbnail is also created with CFIMAGE and the relevant filenames written to a database. All of this works well but a lot of users are uploading images directly from a digital camera and because of the large file sizes it's taking a long time for the processing to happen. The feedback that I'm getting is that it is too slow and I'm being told that similar sites to mine are a lot quicker at handling this process. I just wondered if there was better way to handle this using ColdFusion? I've seen similar solutions using PHP but can't find anything in ColdFusion. Thank you
Do you have sufficient bandwidth on the server? Uploading a few meg at a time is always going to be slow. If you have a dedicated box check the age of your firewall. A few years ago we upgraded from a cheaper DLINK model to a Snapgear for other reasons and were given a bonus of about 3x the original upload throughput. Hmm thats my first though. 2nd thought is it the actually resizing of the image that is super slow? Try some tests yourself how long is it actually taking? If its taking 5 seconds ish and you have 6 thats 30 seconds just to resize. Perhaps its a hardware performance issue. If you have the memory and CPU power you could investigate resizing each image in a separate thread.