I have this:
}
$randomImageURL = htmlspecialchars(getURL($randomImage));
if (getOption('allow_upscale')) {
$wide = 890;
$high = 600;
} else {
$wide = min(890, $randomImage->getWidth());
$high = min(600, $randomImage->getHeight());
}
echo "<img src='".
htmlspecialchars($randomImage->getCustomImage(600, $wide, $high, $wide, $high, 800, 600, !getOption('Watermark_head_image'))).
How can I put it to work only with the horizontal images?