To resize height without specifying a width you can rotate the image by 90 degrees, resize, then rotate by 270 degrees.
$outputImage = imagerotate($image, 90, 0);
$outputImage = imagescale($outputImage, $minSize);
$outputImage = imagerotate($outputImage, 270, 0);