how can i guarantee that the persons face will be in the center of each thumbnail

Discussion in 'PHP' started by oo7ml, Sep 26, 2007.

  1. #1
    Hi, my site allows each user to upload a photo of themselves when they join my site. I need to output thumbnails of the top 10 people (scores) on the homepage of my site.

    The photos on my site all have different dimensions, but they are all scaled to 400px in width when they are uploaded. I do not want to just have a smaller version of the original image as a thumbnail.

    Instead i want to have a standard size thumbnail (the same width and height). I know i can just crop every original photo as 100px width by 75px height for a thumbnail BUT... how can i guarantee that the persons face will be in the center of each thumbnail

    Bebo and other social network sites seem to handle this quite well.. how can i do this... can anyone please point me in the right direction, thanks
     
    oo7ml, Sep 26, 2007 IP
  2. Meth_

    Meth_ Well-Known Member

    Messages:
    1,063
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    140
    #2
    hmm it'll be impossible to do if you want to keep the scale of the picture... and don't want the image overlapping the orig thumgnail
     
    Meth_, Sep 26, 2007 IP
  3. oo7ml

    oo7ml Well-Known Member

    Messages:
    656
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #3
    but how do Bebo and other site do it
     
    oo7ml, Sep 26, 2007 IP
  4. tamilsoft

    tamilsoft Banned

    Messages:
    1,155
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi,

    I have a script somewhat similar to this, I have PMed the URL
     
    tamilsoft, Sep 26, 2007 IP
  5. oo7ml

    oo7ml Well-Known Member

    Messages:
    656
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #5
    Your script does not suit as, users have to do it themselves. I pretty much just need to make a thumbnail that is 100 x 75 and that it will include the persons face instead of cropping their feet or some other part of them
     
    oo7ml, Sep 26, 2007 IP