GD portrait / landscape square thubmnails

Discussion in 'Programming/Scripts' started by edge, Jan 18, 2010.

  1. edge

    edge HowtoForge Supporter

    I'm trying to move (copy) a resize image (on a square fixed width/height image. (the resizing is done by PHP and GD)

    This so all created thumbnails have the same size regarding if it's made from a landscape or portrait image. I do not want to crop the image!

    The resized images are height 200 pixels or 200 pixels wide.
    The square fixed image is 400 by 400 pixels.

    Anyone here who might have a PHP code example how to do this?
    I've used google, but till now I did not find anything usable.

    Please note that I'm not after the resizing part.. All I need is the "move/copy" on the square part.
     
  2. edge

    edge HowtoForge Supporter

    Nevermind..

    I found this great image processing solution.
     

Share This Page