Php resize image then crop image problem?

Here you are @zac1987. Full PHP code generating square thumbnail of desired size without stretching image. The code supports both png and jpg/jpeg image extensions.

Simply change settings part to desired one. You can copy paste the code and test it on your web server.

$modwidth3 and $modheight3 need to correspond to the width and height of the image you want to crop. Also $top and $left should match the top left coordinate of the area you want to crop. If the original image is 600x500 px and you want to resize and crop to 50x50, you should set $top to 0 and $left to 50 (px).

Both $modwidth and $modheight should be set to 500. That keeps the full height of the original image and cuts away 50px from the left hand side and 50px from the right hand side. The remaining 500px is cropped to 50px.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions