Answers the image for the open graph tag.

@return string
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;
        }
    }
42960
public function getImage()
    {
        $this->imageWidth = null;
        $this->imageHeight = null;

        $images = $this->images;
        $bigger = (bool) $this->getConfig('choose_bigger_image');
        $minWidth = $this->getConfig('min_image_width', 1);
        $minHeight = $this->getConfig('min_image_height', 1);

        $images = array_filter($images, function ($image) use ($minWidth, $minHeight) {
            return $image['width'] >= $minWidth && $image['height'] >= $minHeight;
        });

        if (empty($images)) {
            return null;
        }

        reset($images);
        $image = current($images);

        if ($bigger) {
            $sizes = [];

            foreach ($images as $img) {
                $sizes[$img['url']] = $img['size'];
            }

            $biggest = static::getBigger($sizes);

            foreach ($images as $img) {
                if ($biggest == $img['url']) {
                    $image = $img;
                    break;
                }
            }
        }

        $this->imageWidth = $image['width'];
        $this->imageHeight = $image['height'];

        return $image['url'];
    }
1116158
public function getOpeningTag(): string
    {
        $attributes = [];

        foreach ($this->attributes as $name => $value) {
            $attributes[] = self::getHtmlAttribute($name, $value);
        }

        $attributes = implode(' ', array_filter($attributes));

        return sprintf('<%s%s>', $this->nodeName, $attributes === '' ? '' : " {$attributes}");
    }
1206946
protected static function assembleOpenGraph()
    {
        $meta = [];
        foreach (static::$openGraph as $key => $value) {
            $meta[] = "<meta property='og:$key' content='" . Html::e($value) . "' />";
        }

        return implode("\n\t", $meta) . "\n";
    }
584563
public function thumbnail()
    {
        if (is_null($thumbnailURL = $this->entity->getImagePath()))
        {
            return $this->iconThumbnail('document');
        }

        return $this->wrapThumbnail(
            $this->filteredImageWith('rthumb', 'document-thumbnail__image')
        );
    }
323189
public function getShopLogo()
    {
        if (is_null($this->_sShopLogo)) {
            $sLogoImage = $this->getConfig()->getConfigParam('sShopLogo');
            if (empty($sLogoImage)) {
                $editionSelector = new EditionSelector();
                $sLogoImage = "logo_" . strtolower($editionSelector->getEdition()) . ".png";
            }

            $this->setShopLogo($sLogoImage);
        }

        return $this->_sShopLogo;
    }
1113664
public function thumbnail()
    {
        // This part is because of the uploader
        if ($this->type === 'image')
        {
            return $this->wrapThumbnail(
                '<img class="document-thumbnail__image" src="' .
                url(config('imagecache.route') . '/rthumb/' . $this->path). '" alt="' . $this->alttext . '">'
            );
        }

        $icon = 'document';

        if (array_key_exists($this->mimetype, $this->icons))
        {
            $icon = $this->icons[$this->mimetype];
        }

        return $this->iconThumbnail($icon);
    }
316334
private function getImage()
    {
        $image = $this->_parser->find('#content table tr', 0)->find('td', 0)->find('img', 0);

        return $image ? $image->src : '';
    }
1215548
public function getPinterestImage()
    {
        $pinImage = $this->owner->PinterestImageCustom();
        if ($pinImage->exists()) {
            return ($pinImage->getWidth() > 1200) ? $pinImage->scaleWidth(1200) : $pinImage;
        }

        return $this->owner->getOGImage();
    }
38476
private function getImage()
    {
        $image = $this->_parser->find('.container-left .user-profile', 0);
        $image = $image->find('.user-image img', 0);

        return $image ? Helper::imageUrlCleaner($image->src) : '';
    }
1318418
public function renderImage()
    {
        $rules = array();
        foreach ($this->rules as $rule) {
            $rules[] = '[' . implode(", ", $rule) . ']';
        }
        $this->htmlOptions['data-interchange'] = implode(", ", $rules);
        return \CHtml::tag('img', $this->htmlOptions);
    }
1235229
public function opengraphType()
    {
        $context = $this->contextObject();

        $type = null;

        if ($context instanceof HasMetatagInterface) {
            $type = $context['opengraph_type'];
        }

        if (!$type) {
            $type = HasOpenGraphInterface::DEFAULT_OPENGRAPH_TYPE;
        }

        return $type;
    }
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;
  }
610151
public function getSlideImage()
    {
        if ($this->hasImage()) {
            
            if ($this->Image()->exists()) {
                return $this->Image();
            } elseif ($this->LinkPage()->hasMetaImage()) {
                return $this->LinkPage()->getMetaImage();
            }
            
        }
    }
270130
public function getImagePath()
    {
        if ($this->imagePath === null) {
            $this->imagePath = '/images/' . strtolower((new \ReflectionClass($this->owner))->getShortName());
        }
        return $this->imagePath;
    }
690660
protected function getResizedImageUrl()
    {
        $imageUrl = "";

        if ($this->getResizedImagePath()) {
            $imageUrl = $this->getImageDirUrl() . $this->getResizedImageName();
        }

        return $imageUrl;
    }
798470
public function getWrappedImage()
    {
        if(!$this->zendImage)
        {
            $this->zendImage = $this->createImage($this->path);
            $this->path = null;
        }

        return $this->zendImage;
    }