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
| Version | Description |
|---|
Examples
Using imagesy()
php
<?php
// create a 300*200 image
$img = imagecreatetruecolor(300, 200);
echo imagesy($img); // 200
?>