$image = imagecreatefromjpeg('image.jpg'); $height = imagesy($image); echo 'Height: ' . $height;
$image = 'image.jpg'; $size = getimagesize($image); $height = $size[1]; echo 'Height: ' . $height;
$image = 'image.jpg'; $exif = exif_read_data($image); $height = $exif['COMPUTED']['Height']; echo 'Height: ' . $height;Package/Library: Exif It's important to note that these functions require appropriate extensions to be installed in PHP, which may differ based on the hosting environment.