Lines Matching refs:sizes
29 * @param array $sizes Optional. An array of sizes (each size is an array with a width and height)
31 * If sizes are not supplied, the size of the source image will be used.
34 public function __construct($file = false, $sizes = [])
61 $this->addImage($file, $sizes);
73 * @param array $sizes Optional. An array of sizes (each size is an array with a width and height) that the
75 * If sizes are not supplied, the size of the source image will be used.
78 public function addImage($file, $sizes = [])
84 if (empty($sizes))
85 $sizes = [imagesx($im), imagesy($im)];
88 if (!is_array($sizes[0]))
89 $sizes = [$sizes];
91 foreach ((array)$sizes as $size) {