Image crop=portrait
Using Jamroom
but if you could you'd be happy?
I'll get a ticket opened on it.
ask away.
case 'portrait':
// With a portrait crop, we expect the images to be of people,
// with their head in the upper 3rd of the picture
if ($src_width > $src_height) {
$diff = ($src_width - $src_height);
$src_x_offset = round($diff / 2);
$src_width = $src_height;
}
else {
$diff = ($src_height - $src_width);
$src_y_offset = round($diff / 4);
$src_height = $src_width;
}
$_post['height'] = $_post['width'];
$new_height = $new_width;
break;


)