Get Images of the Articles
@param  integer  $i
@param  integer $image_min_size
@return array
973201
public function getArticleImages($i = null, $image_min_size = 0)
    {
        $result = [];

        $i = count($this->article_ids) > 1 ? $i : 0;
        $article_ids = ($i === null) ? $this->article_ids : [$this->article_ids[$i]];

        foreach ($article_ids as $page_id) {
            $result[$page_id] = [];
            $wiki_api = $this->base_api . 'action=query&generator=images&prop=imageinfo&iiprop=url|size&pageids=' . $page_id;
            $json_wapi = json_decode(file_get_contents($wiki_api), true);

            if (!$json_wapi) {
                return [];
            }

            foreach ($json_wapi['query']['pages'] as $item) {
                $imageinfo = $item['imageinfo'][0];
                if ($image_min_size > 0 && $imageinfo['size'] < $image_min_size) {
                    continue;
                }

                $result[$page_id][] = $imageinfo['url'];
            }
        }

        return ($i === null) ? $result : $result[$this->article_ids[$i]];
    }
562187
public function getAt($i){
        return isset($this->instanceByIndex[$i])
            ? $this->instanceByIndex[$i]
            : null;
    }
1084098
private function getImageFiles()
    {
        if ($this->imageFiles === null) {
            // Get a list of images.
            $this->imageFiles = $this->filesystem
                ->find()
                ->in('files://')
                ->name('/\.jpe?g$/')
                ->name('*.png')
                ->toArray()
            ;
        }

        return $this->imageFiles;
    }
435667
public function image($image, $width=null, $height=null, $alt=null, $class=null, $link=null, $caption=null, $srcset=null) {
		$image = $this->getLink($image);
		$attributes = $this->getHtmlAttributes(array(
			'width'=>$width,
			'height'=>$height,
			'alt'=>$alt,
			'caption'=>$caption,
			'class'=>$class,
			'srcset'=>$srcset
		));

		$img = "<img src='$image'$attributes />";
		if (!is_null($link)) {
			$link = $this->getLink($link);
			return "<a href='$link'>$img</a>";
		}

		return $img;
	}
84308
protected function getImagesWithResizes()
    {
        // first get the images through the relation
        $relation = $this->getRelationForImagesWithResizesCaller();

        $images = $this->{$relation}()->get();

        if (empty($images)) return $images;

        // then get extra info and retrieve the resizes for it
        $fieldId = $this->getCmsReferenceFieldId($relation);

        $resizes = $this->getResizesForFieldId($fieldId);

        if (empty($resizes)) return $images;

        // decorate the images with resizes
        foreach ($images as $image) {

            $fileName = $image->file;
            $imageResizes = [];

            foreach ($resizes as $resize) {

                $imageResizes[ $resize->prefix ] = [
                    'id'     => $resize->id,
                    'prefix' => $resize->prefix,
                    'file'   => $resize->prefix . $fileName,
                    'url'    => Paths::images($resize->prefix . $fileName),
                    'width'  => $resize->width,
                    'height' => $resize->height,
                ];
            }

            // append full resizes info
            $image->resizes = $imageResizes;
        }

        return $images;
    }
852882
private function getImage($each_anime)
    {
        $image = $each_anime->find('td', 1)->find('a img', 0)->getAttribute('data-src');

        return Helper::imageUrlCleaner($image);
    }
994120
private function getImage($each_anime)
    {
        $temp_image = $each_anime->find('div[class=image]', 0)->find('img', 0);
        $image = $temp_image->src;
        $image = !$image ? $temp_image->getAttribute('data-src') : $image;

        return Helper::imageUrlCleaner($image);
    }
47058
private function _getImageToSize(array $images, int $size)
	{
		$selectedImage = null;
		$selectedSize = 0;

		foreach ($images as $image)
		{
			if (is_array($image))
			{
				$imageWidth = isset($image['width']) && is_numeric($image['width']) ? $image['width'] : 0;
				$imageHeight = isset($image['height']) && is_numeric($image['height']) ? $image['height'] : 0;
				$imageSize = max($imageWidth, $imageHeight);

				if (!$selectedImage ||
					($selectedSize < $size && $imageSize > $selectedSize) ||
					($selectedSize > $imageSize && $imageSize > $size))
				{
					$selectedImage = $image;
					$selectedSize = $imageSize;
				}
			}
		}

		return $selectedImage;
	}
942920
public function image($large, $small = null)
    {
        $this->image = [
            'smallImageUrl' => $small ?? $large,
            'largeImageUrl' => $large,
        ];

        return $this;
    }
623247
private function getImageArray($imageId)
    {
        $array = Yii::$app->storage->getImage($imageId)->applyFilter(MediumCrop::identifier())->toArray();
        
        $array['originalImageId'] = $imageId;
        
        return $array;
    }
1009077
public function actionImagesInfo()
    {
        $ids = Yii::$app->request->getBodyParam('ids', []);
        $ids = array_unique($ids);
        return new ActiveDataProvider([
            'query' => StorageImage::find()->where(['in', 'id', $ids])->with(['file', 'tinyCropImage.file']),
            'pagination' => false,
        ]);
    }
100178
public static function get_image_sizes() {
		// Bailout early if cached image configuration is available.
		if ( self::$sizes ) {
			return self::$sizes;
		}

		/**
		 * Filters image sizes used in Timmy.
		 *
		 * @since 0.13.0
		 *
		 * @param array $sizes Image configuration array. Default array().
		 */
		$sizes = apply_filters( 'timmy/sizes', array() );

		/**
		 * Fallback for get_image_sizes() function
		 *
		 * TODO: deprecate in 1.0.0
		 */
		if ( empty( $sizes ) && function_exists( 'get_image_sizes' ) ) {
			$sizes = get_image_sizes();
		}

		// Cache sizes for next requests.
		self::$sizes = $sizes;

		return $sizes;
	}
194797
private function getAnimeImage($each_anime)
    {
        $image = $each_anime->find('div[class=image]', 0)->find('img', 0)->getAttribute('data-src');

        return  Helper::imageUrlCleaner($image);
    }
156655
private function getReviewSource($top_area, $bottom_area)
    {
        $source_area = $top_area->find('.mb8', 1);

        return [
            'type' => $this->getSourceType($source_area),
            'id'   => $this->getSourceId($source_area),
            'title'=> $this->getSourceTitle($source_area),
            'image'=> $this->getSourceImage($bottom_area),
        ];
    }
191651
public function AnimePictures(int $id): array
    {
        return $this->myanimelist->getAnimePictures(
            new Request\Anime\AnimePicturesRequest($id)
        );
    }
136418
public function getFields($i)
    {
        return (isset($this->fields[$i])) ? $this->fields[$i] : null;
    }
1000966
public function getImageLinkAttributes()
    {
        $attributes = [
            'href' => $this->ImageLinkURL,
            'data-title' => $this->ImageTitleText,
            'data-footer' => $this->dbObject('Caption')->Summary(),
            'class' => 'image'
        ];
        
        if ($this->ImageLinkURL == $this->Image()->URL) {
            $attributes['data-toggle'] = 'lightbox';
        }
        
        $this->extend('updateImageLinkAttributes', $attributes);
        
        return $attributes;
    }