I have the below image which I'd like to crop, so all the black areas are removed and the thumb returned. The thumb must be 130px (width) by 155px (height).
How can I crop it using PHP's GD library? (Imagick library isn't an option).
If there is something I can improve in my question, please let me know.
EDIT
I've used imagecopyresized() function as suggested by @Martijn, with the following code
imagecopyresized(
imagecreatetruecolor(130,155) ,
imagecreatefromjpeg($src_image) ,
0,
0,
0,
0,
130,
155,
260 ,
310
)
What i'm getting is this result
What am I doing wrong?