Taking too much time to upload a photo.

Discussion in 'PHP' started by cynical_tear, Jul 3, 2010.

  1. #1


    Hello friends, i have developed an image sharing website. My only problem is that it takes hell lots of time to upload the snap, especially, when the snap is of big size. Please suggest something so that i can reduce the uploading time..


     
    cynical_tear, Jul 3, 2010 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,901
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #2
    The upload time will be determined by the users bandwidth and the server speed. Apart from changing your hosting theres little you can do.
     
    sarahk, Jul 3, 2010 IP
  3. strgraphics

    strgraphics Active Member

    Messages:
    710
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    What is the maximum file size..........!!!!!! in your script and the servers must good.. for that.
     
    strgraphics, Jul 3, 2010 IP
  4. c_programmer

    c_programmer Peon

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    There are three factors that matter when uploading:
    1. Your server's down speed (this is rarely the bottleneck)
    2. The clients up speed (often slow)
    3. The size of the file

    Upload time can be calculated by size/speed, speed being the lower of 1 and 2.

    The only method you have control over is the file's size, so I would re-size the image to be smaller.
     
    c_programmer, Jul 3, 2010 IP
  5. cynical_tear

    cynical_tear Peon

    Messages:
    107
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    can you please tell me how can i re-size the image to be smaller...
     
    cynical_tear, Jul 4, 2010 IP
  6. sarahk

    sarahk iTamer Staff

    Messages:
    28,901
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #6
    Use Picasa - it's really simple to resize (to a standard size) a whole batch of photos and to watermark them.

    If you want something more professional then use photoshop.
     
    sarahk, Jul 4, 2010 IP
  7. cynical_tear

    cynical_tear Peon

    Messages:
    107
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7


    What i meant by re-sizing the image was not re-sizing the dimensions of the snap but if the image is of 2mb then i want to reduce it to somewhere in 1mb or in kb, so that when a user uploads a heavy image, i reduce the size(bytes) of image so that it takes a bit less time to upload..

     
    cynical_tear, Jul 4, 2010 IP
  8. sarahk

    sarahk iTamer Staff

    Messages:
    28,901
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #8
    Both will do that. Just specify the "quality" that you want. Same dimensions, fewer bytes
     
    sarahk, Jul 4, 2010 IP
  9. c_programmer

    c_programmer Peon

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    You can't just tell an image to take less space, you need to reduce it quality or its resolution. Reducing the resolution is the most common way, quality reduction becomes really apparent after its reduced by 20%.

    Microsoft powertoys is the best way to re size an image on Windows. http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx
     
    c_programmer, Jul 4, 2010 IP
  10. pointwork

    pointwork Peon

    Messages:
    153
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I think uploading depend on yoru speed of the internet connection your speed might be slow compare to others have you checked with another connections too?
     
    pointwork, Jul 4, 2010 IP