- ⌂ ImageData
- Methods
- Static Methods
ImageData::get_height()
Get the height of the image in pixels.
Prototype
int get_height()
Return
The height of the image in pixels.
Example
// load a PNG image from the web
$url = 'https://www.webcomand.com/docs/img/note.png';
$data = get_file_contents($url);
$image = new \io_comand_image\models\ImageData($data);
$height = $image->get_height();
echo("Image Height: $height\n");