Trying to generate proportionally cropped thumbnails at a fixed width/height with PHP GD

后端 未结 4 414
深忆病人
深忆病人 2021-01-25 01:59

I\'m trying to create a Thumbnail Generator in PHP with GD that will take an image and reduce it to a fixed width/height. The square it takes from the original image (based on m

4条回答
  •  甜味超标
    2021-01-25 02:36

    Without a clear and well-defined goal, it is hard to try and offer a well-suited solution. Also, you will tend to find other Stackers more helpful if you at least bring an attempt at a solution to the table.

    That being said, I have found a couple of tutorials online which may at least give you an idea to start with - give it a go, and, if you still have troubles, feel free to post further questions (with code samples and details of what is not behaving itself).

    • Cropping with GD
    • Create cropped thumbnails with GD Library

提交回复
热议问题