php8.5
Home/ Manual/ image / functions/ imagesy

imagesy

PHP function Edit on GitHub ✎

(PHP 4, PHP 5, PHP 7, PHP 8)

Get image height

Description

imagesy(GdImage $image): int

Returns the height of the given image object.

Parameters

Return Values

Return the height of the image.

Changelog

VersionDescription

Examples

Using imagesy()

php
<?php

// create a 300*200 image
$img = imagecreatetruecolor(300, 200);

echo imagesy($img); // 200

?>

See Also

Source: reference/image/functions/imagesy.xml · from the official PHP manual (php/doc-en)