method getThumbsName documentation in bbn\Appui\Medias

Returns the name of the thumb file corresponding to the given name and size

function(string $name, array $size = array ( 0 => 60, 1 => 60, )) { if (count($size) === 1) { $size[] = $size[0]; } if ((count($size) !== 2) || !Str::isInteger($size[0], $size[1])) { return null; } $ext = Str::fileExt($name, true); $dir = dirname($name); if (!empty($dir)) { $dir .= '/'; } return $dir . $ext[0] . '_w' . $size[0] . 'h' . $size[1] . (empty($ext[1]) ? '' : '.' . $ext[1]); }

Returns the name of the thumb file corresponding to the given name and size 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.