Resizing Image Before Uploading

Discussion in 'PHP' started by pointwork, Jul 4, 2010.

  1. #1
    Hi everyone,

    I'm currently working on resizing an image that the user wants uploaded as their avatar. The resizing will occur before the uploading.

    Any suggestions on where to go from here?
     
    pointwork, Jul 4, 2010 IP
  2. cynical_tear

    cynical_tear Peon

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

    Pls i also need to know... anyone who can help???
     
    cynical_tear, Jul 4, 2010 IP
  3. sarahk

    sarahk iTamer Staff

    Messages:
    28,901
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #3
    photoshop?
     
    sarahk, Jul 4, 2010 IP
  4. c_programmer

    c_programmer Peon

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    c_programmer, Jul 4, 2010 IP
  5. Licensescript.com

    Licensescript.com Well-Known Member

    Messages:
    287
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
  6. c_programmer

    c_programmer Peon

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    c_programmer, Jul 4, 2010 IP
  7. rainborick

    rainborick Well-Known Member

    Messages:
    424
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #7
    Just to be clear: It's difficult to do image resizing on the user's computer before that image is uploaded to your server, and probably impractical for most websites. It is much easier to use one of the examples from the previous posts to do the resizing after the user's image has been uploaded to your website.
     
    rainborick, Jul 4, 2010 IP
  8. Scripts man

    Scripts man Guest

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
  9. Cees-Holland

    Cees-Holland Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I don't know if people still want to have a solution for this question.. I found awhile ago a solution with SwfUpload.
    SwfUpload to be exact: h*ttp://code.google.com/p/swfupload.

    It is a bit challenging to get it working but it is worth it. Visitors will not recognize it is Flash.

    If you look under download you see there is a beta (version 2.5.0.beta3.2).
    This version is rather heavy (260Kb) but it does resize the image before upload.

    Nowadays everybody has 12M pixel camera's resulting in 2Mb or more pictures. Uploading a few images with a slow internet connection can be a drag. SwfUpload, resizes the images within a few seconds on the visitors computer before uploading them.


    (*= remove *)
     
    Cees-Holland, Jul 24, 2010 IP