How i can first resize then crop image. I already use Varien_Image
like this :
$imageObj = new Varien_Image($_imageUrl);
$imageObj->constrainOnly(false);
$imageObj->keepAspectRatio(false);
$imageObj->keepFrame(false);
$imageObj->crop($cutH, $cut, $cut,$cutH);
$imageObj->resize(floor($width), floor($height));
$imageObj->save($_imageUrl);
return $imageUrl;
th code above first crop then resize. but i want first resize then crop and also i want only resize width not height?