method autoresize documentation in bbn\File\Image

Resize the image with constant values, if the width is not given it will be set to auto.

function(int $w = NULL, int $h = NULL) { if (!$w) { $w = \defined('BBN_MAX_WIDTH') ? BBN_MAX_WIDTH : self::$max_width; } if (!$h) { $h = \defined('BBN_MAX_HEIGHT') ? BBN_MAX_HEIGHT : self::$max_height; } if ($this->test() && is_numeric($w) && is_numeric($h)) { if ($this->w > $w) { $this->resize($w); } if ($this->h > $h) { $this->resize(false,$h); } } else{ $this->error = X::_("Arguments must be numeric"); } return $this; }

Resize the image with constant values, if the width is not given it will be set to auto. 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.