Image Upload

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • samatair
    New Member
    • Nov 2007
    • 61

    Image Upload

    Hi
    I have being working on a form.
    The form allows 5 image files to be uploaded with other user details.
    All the 5 image files are uploaded at the same time (with a single submit button click).
    The uploaded images are resized to thumbnails 120x120 version and 600x400 version.
    Maximum 1 MB size image files are allowed to upload.

    I have tested with this in my local server using XAMPP for Windows and its working fine. In my local server all the 5 images are uploaded and thumbnails are generated within 3 seconds. (I understand that there is no network data transfer in the local server)

    My Live server is *nix machine with good hardware configuration and lot better than my Local Server

    The PROBLEM is Live Server takes around 60 or more seconds to upload the files and resize the images and update the user data. (image resolution of 1440x960)

    My client feels that it takes much time to upload the images. Is there anyway to improve the performance and make the image uploads to be faster.

    Please let me know your suggestion how should I go with this Or If any alternative can be provided.

    Thank you very much for all your suggestion!
    If you expect me to place the code which I use, I am glad to provide it.

    I am using a very simple script to resize the images.

    Thanks again
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    do you know, how long the file uploads take? if the total size is in the range of some MB I can imagine the upload taking that long.

    Comment

    • samatair
      New Member
      • Nov 2007
      • 61

      #3
      The total size of all the image files I had uploaded was 1.5 MB.

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        taking 60 seconds for file upload seems quite possible....

        Comment

        • Atli
          Recognized Expert Expert
          • Nov 2006
          • 5062

          #5
          Originally posted by samatair
          My client feels that it takes much time to upload the images. Is there anyway to improve the performance and make the image uploads to be faster.
          Uploading images to the server will take some time. Your PHP code can do nothing to affect that.

          Depending on both the server and your client's bandwidth limitations, a 1.5MB upload could well go over 1 minute.
          (That would be something like 25KB per second, which could very well fit a low speed ADSL connection)

          If your client wants this to take less time, he is going to have to have to buy a better connection for the computer doing the uploading, and possibly even upgrade the download bandwidth for the server.

          Comment

          Working...