Image crop=portrait
Using Jamroom
jrImage_create_image() is the function that takes that crop argument.
--
filter=?????
arguments can also be used.
--
Answer: Yes 'portrait' is an image value. and you're right, it takes the top portion:
case 'portrait':
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;