Home
last modified time | relevance | path

Searched refs:upscale (Results 1 – 7 of 7) sorted by relevance

/dokuwiki/vendor/splitbrain/slika/src/
H A DAdapter.php64 … * @param bool $upscale when false, an image smaller than the target is kept at its original size
67 abstract public function resize($width, $height, $upscale = true); argument
77 …* @param bool $upscale when false, an image smaller than the target area is cropped but never enla…
80 abstract public function crop($width, $height, $upscale = true); argument
H A DImageInfo.php165 … * @param bool $upscale when false, an image smaller than the target is kept at its original size
169 public function resize($width, $height, $upscale = true) argument
171 list($w, $h) = self::boundingBox($this->width, $this->height, $width, $height, $upscale);
185 …* @param bool $upscale when false, an image smaller than the target area is cropped but never enla…
189 public function crop($width, $height, $upscale = true) argument
205 if (!$upscale && ($width > $this->width || $height > $this->height)) {
276 * @param bool $upscale when false, the result is never larger than the original
280 public static function boundingBox($origW, $origH, $width, $height, $upscale = true) argument
301 if (!$upscale && $scale > 1) {
H A DImageMagickAdapter.php63 public function resize($width, $height, $upscale = true) argument
72 if (!$upscale) $size .= '>';
83 public function crop($width, $height, $upscale = true) argument
97 $this->args[] = $upscale ? "$size^" : "$size^>";
H A DGdAdapter.php104 public function resize($width, $height, $upscale = true) argument
106 …($width, $height) = ImageInfo::boundingBox($this->width, $this->height, $width, $height, $upscale);
115 public function crop($width, $height, $upscale = true) argument
126 if (!$upscale && ($width > $this->width || $height > $this->height)) {
/dokuwiki/inc/Cache/
H A DCacheImageMod.php19 … * @param bool $upscale Was upscaling allowed? Same dimensions yield different output when disabled
21 public function __construct($file, $w, $h, $ext, $crop, $upscale = true) argument
25 $fullext .= $upscale ? '' : '.noup';
/dokuwiki/inc/
H A Dmedia.php1735 * @param bool $upscale when false, a smaller image is kept at its original size
1738 function media_mod_image($file, $ext, $w, $h = 0, $crop = false, $upscale = true) argument
1752 $cache = new CacheImageMod($file, $w, $h, $ext, $crop, $upscale);
1757 ->$operation($w, $h, $upscale)
1778 * @param bool $upscale when false, a smaller image is kept at its original size
1781 function media_resize_image($file, $ext, $w, $h = 0, $upscale = true) argument
1783 return media_mod_image($file, $ext, $w, $h, false, $upscale);
/dokuwiki/vendor/splitbrain/slika/
H A DREADME.md82 Cropping also accepts the `$upscale` parameter. When set to `false` an image that is