Image Crop

See all posts Reply

Image Crop new!
by Matthew , 16 years, 6 months ago
Hi im trying to do an image crop but the x and y dimensions are both different for some reason and i cant work out why

$handle = new Upload("temp/" . $savedname);
$handle->image_resize       = true;
$handle->image_ratio_crop   = true;
$handle->image_y            = $image_size_small;
$handle->image_x            = $image_size_small;
$handle->image_convert      = 'jpg';
$handle->jpeg_quality       = 80;    
$handle->Process("small/");
Reply
Re: Image Crop new!
by colin, 16 years, 6 months ago
I just tried your code, and the image was a square (x=y).

Can you paste here the log after calling process()?
echo $handle->log;
Reply