returns the image with the face marked in a red square

@return Image_Cached|SecureImage_Cached
337720
public function DetectedFace(){
			if($this->owner->exists()) {
				$cacheFile = $this->owner->cacheDetectedFaceFilename();

				if(!file_exists(Director::baseFolder()."/".$cacheFile) || isset($_GET['flush'])) {
					$this->owner->generateDetectedFaceImage();
				}
				
				if($this->owner instanceof SecureImage) $cached = new SecureImage_Cached($cacheFile);
				else $cached = new Image_Cached($cacheFile);

				// Pass through the title so the templates can use it
				$cached->Title = $this->owner->Title;
				$cached->ID = $this->owner->ID;
				$cached->ParentID = $this->owner->ParentID;
				return $cached;
			}
		}
532654
public function getImageBlob()
    {
        if (!$this->processed) {
            return file_get_contents($this->source);
        }

        if ($this->isMultipartImage()) {

            $this->tmpFile = tempnam($this->tmp, 'jitim_');

            $image = $this->resource->deconstructImages();
            $image->writeImages($this->tmpFile, true);

            $image->clear();
            $image->destroy();

            return file_get_contents($this->tmpFile);

        }

        return $this->resource->getImageBlob();
    }
1270045
public function getImage()
    {
        $value = parent::getValue();
        
        if ($value) {
            return Yii::$app->storage->getImage($value);
        }
        
        return false;
    }
1369744
private function getImage($result_area)
    {
        $image = $result_area->find('td', 0)->find('a img', 0)->src;

        return Helper::imageUrlCleaner($image);
    }
831855
public function Image()
    {
        if ($this->ActionImage()) {
            return $this->ActionImage();
        }
        if ($this->Type == 'SiteTree') {
            return $this->SiteTree()->ActionImage();
        }
    }
1215548
public function getPinterestImage()
    {
        $pinImage = $this->owner->PinterestImageCustom();
        if ($pinImage->exists()) {
            return ($pinImage->getWidth() > 1200) ? $pinImage->scaleWidth(1200) : $pinImage;
        }

        return $this->owner->getOGImage();
    }
826406
function get_orientation() {
        if (imagesx($this->image) > imagesy($this->image)) {
            return 'landscape';
        }
        if (imagesx($this->image) < imagesy($this->image)) {
            return 'portrait';
        }
        return 'square';
    }
1270284
public function getAvatar(){
		$result = null;
		if (isset($this->userInfo[$this->socialFieldsMap['avatar']])) {
			$result = $this->userInfo[$this->socialFieldsMap['avatar']];
			}
		return $result;
		}
301417
protected function _getPicture()
    {
        if (!empty($this->_properties['id'])) {
            $files = ((new Folder(USER_PICTURES))->find($this->_properties['id'] . '\..+'));

            if (!empty($files)) {
                return 'users' . DS . array_values($files)[0];
            }
        }

        //Checks for `webroot/img/no-avatar.jpg`
        if (is_readable(WWW_ROOT . 'img' . DS . 'no-avatar.jpg')) {
            return 'no-avatar.jpg';
        }

        return 'MeCms.no-avatar.jpg';
    }
579194
protected function getBrokenImageHash()
    {
        if ($this->brokenImageHash) {
            return $this->brokenImageHash;
        }

        $fullPath = $this->getBrokenImagePath();

        return $this->brokenImageHash = hash_file('crc32', $fullPath);
    }
1213707
public function getNoSslImageDir()
    {
        if (($sValue = $this->getViewConfigParam('nossl_imagedir')) === null) {
            $sValue = $this->getConfig()->getImageUrl($this->isAdmin(), false);
            $this->setViewConfigParam('nossl_imagedir', $sValue);
        }

        return $sValue;
    }
1265596
public function image() {
		if (empty($this->_stub['image-src'])) {
			return '';
		}
		$thumb = $this->_stub['image-src'];

		$count = count($this->_match);
		for ($i = 1; $i <= $count; $i++) {
			$thumb = str_ireplace('$' . $i, $this->_match[$i - 1], $thumb);
		}

		return $thumb;
	}
322985
public function getOGImage()
    {
        $config = $this->getSiteConfig();
        
        if (($image = $this->owner->MetaImage) && $image->exists()) {
            return $image->AbsoluteURL;
        }
        
        if ($config->AppIconLargeID && $config->AppIconLarge()->exists()) {
            return $config->AppIconLarge()->AbsoluteURL;
        }
    }
662453
public function getImgSrc() {
        if ($this->type == 'image' && $this->img_src == null) {
            $this->img_src = 'data:'.$this->content_type.';base64,'.base64_encode($this->content);
        }
        return $this->img_src;
    }
480636
protected function getImageInstance()
    {
        //Tries to create the image instance
        try {
            $imageInstance = $this->ImageManager->make($this->path);
        } catch (NotReadableException $e) {
            $message = __d('thumber', 'Unable to read image from file `{0}`', rtr($this->path));

            if ($e->getMessage() == 'Unsupported image type. GD driver is only able to decode JPG, PNG, GIF or WebP files.') {
                $message = __d('thumber', 'Image type `{0}` is not supported by this driver', mime_content_type($this->path));
            }

            throw new RuntimeException($message);
        }

        return $imageInstance;
    }
165239
public function getEtag()
    {
        $sha1Able = ($this instanceof IdentifiableInterface)
            ? $this->getId()
            : spl_object_hash($this);

        if ($this instanceof DateTimeInterface) {
            $sha1Able .= $this
                ->getUpdatedAt()
                ->getTimestamp();
        }

        return sha1($sha1Able);
    }
1369004
protected function image_element() {
    $cached_image_path = $this->get_cached_image_path();

    $class = $this->get_class();

    $src = $this->generateUrl($cached_image_path);

    $data = array(
      'path' => $this->get_full_path_to_cached_image(),
      'src' => $src,
      'img' => '<img src="'. $src .'" width="'. $this->preset->width .'" height="'. $this->preset->height .'"'. $class .' alt="'. $this->alt .'" title="'. $this->title .'"/>',
      'img_nosize' => '<img src="'. $src .'"'. $class .' alt="'. $this->alt .'" title="'. $this->title .'"/>',
    );

    return $data;
  }