Crop photo
Posted: Wed Feb 27, 2008 9:43 am
I have a photo that is 200*400. I wish to make it 200*200 by chopping off the bottom of the photo. At present I am attempting to use:
imagecopyresized($canvas, $piece, 0, 0, 0, 0 , $w, $h, $width, $height);
I assumed that I would just put the heights different and this would work but this just squashes it.
I can change where the x and y coords are but this just gives me black stuff around the picture.
Am I using the right function? If anyone can please help me i would very much appreciate it.
Cheers,
Westen
imagecopyresized($canvas, $piece, 0, 0, 0, 0 , $w, $h, $width, $height);
I assumed that I would just put the heights different and this would work but this just squashes it.
I can change where the x and y coords are but this just gives me black stuff around the picture.
Am I using the right function? If anyone can please help me i would very much appreciate it.
Cheers,
Westen