Scaling an image to square

Discussion in 'PHP' started by Fozz Dog, Dec 14, 2008.

  1. #1
    I'm looking to add 75px square thumbnails while keeping the aspect ratio of the image. However I don't just want the image scaled down I also want it cropped so it fills the entire box.

    So for an example this image
    [​IMG]

    would turn into this thumbnail
    [​IMG]

    I've seen a working example of this at Echopic (you need to be registered to see it in aciton)

    Any help would be appreciated.
     
    Fozz Dog, Dec 14, 2008 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    crivion, Dec 14, 2008 IP
  3. brownskinman

    brownskinman Peon

    Messages:
    18
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Kindly have a look at

    http://www.gen-x-design.com/projects/php-thumbnailer-class/
    http://joanpiedra.com/jquery/thumbs/
     
    brownskinman, Dec 15, 2008 IP