method getHeight documentation in bbn\File\Image

If the file is an image will return its height in pixel.

Example

$img = new bbn\File\Image("/home/data/test/image.jpg"); bbn\X::dump($img->getHeight()); // (int) 190 function() { if ($this->h) { return $this->h; } if ($this->test()) { if (isset($this->h)) { return $this->h; } } return 0; }

If the file is an image will return its height in pixel. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.