class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
Hi! I want to get an image 424*204 ... I´ve uploaded a picture with dimensions 600*400. I want the script to cropped it so the the new picture is 424*204 (Center-cropped) I dont understand what the different values in the array ( $handle->image_crop = array(200,200,200,200);) work... ?
How should you write the crop-array to get the new dimensions ? Please help!
As per the docs: image_crop crops image. accepts 4, 2 or 1 values as 'T R B L' or 'TB LR' or 'TBLR'. dimension can be 20, or 20px or 20% (default: null)
I want to get an image 424*204 ... I´ve uploaded a picture with dimensions 600*400. I want the script to cropped it so the the new picture is 424*204 (Center-cropped) I dont understand what the different values in the array ( $handle->image_crop = array(200,200,200,200);) work... ?
How should you write the crop-array to get the new dimensions ?
Please help!
Best regards
Premberg
image_crop crops image. accepts 4, 2 or 1 values as 'T R B L' or 'TB LR' or 'TBLR'. dimension can be 20, or 20px or 20% (default: null)
So the array reads:
Or, as a string:
Thank you for all the help!
/P