method getWidth documentation in bbn\File\Image

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

Example

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

If the file is an image will return its width 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.