/home/techb158/ileadtechnology.com/vendor/league/glide/src/Manipulators/Helpers
Edit: /home/techb158/ileadtechnology.com/vendor/league/glide/src/Manipulators/Helpers/Dimension.php (1166B)
image = $image;
$this->dpr = $dpr;
}
/**
* Resolve the dimension.
*
* @param string $value The dimension value.
*
* @return float The resolved dimension.
*/
public function get($value)
{
if (is_numeric($value) and $value > 0) {
return (float) $value * $this->dpr;
}
if (preg_match('/^(\d{1,2}(?!\d)|100)(w|h)$/', $value, $matches)) {
if ('h' === $matches[2]) {
return (float) $this->image->height() * ($matches[1] / 100);
}
return (float) $this->image->width() * ($matches[1] / 100);
}
}
}