Lines Matching refs:image
40 foreach ($images as $image) {
41 $this->renderImage($image);
48 * @param Image $image
51 protected function renderImage(Image $image) argument
53 [$w, $h] = $this->getThumbnailSize($image);
54 $link = $image->getDetaillink() ?: $image->getSrc();
57 'src' => $image->getSrc(),
58 'title' => $image->getTitle(),
65 if ($image->isExternal()) {
78 * @param Image $image
82 protected function getThumbnailSize(Image $image, $retina = 1) argument
88 if (!$image->getWidth() || !$image->getHeight()) {
94 $image->getWidth() < $thumbW &&
95 $image->getHeight() < $thumbH
97 return [$image->getWidth(), $image->getHeight()];
102 $image->getWidth(),
103 $image->getHeight(),