Return the thumbnail of the element
Available size : 120*90;480*360;

@return string
490243
public function get_thumbnail()
    {
        $video_thumbnails = $this->entry->getVideoThumbnails();

        foreach ($video_thumbnails as $thumb) {
            if (120 == $thumb['width'] && 90 == $thumb['height']) {
                return $thumb['url'];
            }
        }
    }
2003
private function getImageRtfHeight()
    {
        if ($this->_height > 0) {
            return PHPRtfLite_Unit::getUnitInTwips($this->_height);
        }

        $imageHeight = $this->_imageHeight ? $this->_imageHeight : 100;
        if ($this->_width > 0) {
            $imageWidth = $this->_imageWidth ? $this->_imageWidth : 100;
            $height = ($imageHeight /$imageWidth) * $this->_width;
            return PHPRtfLite_Unit::getUnitInTwips($height);
        }

        return PHPRtfLite_Unit::getPointsInTwips($imageHeight);
    }
267711
public function thumbnail($size = 'full')
    {
        $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($this->id()), $size);
        return isset($thumb[0]) ? $thumb[0] : '';
    }
358103
public function PreviewThumbnail()
    {
        $width = (int)Config::inst()->get(__CLASS__, 'asset_preview_width');
        return $this->ScaleMaxWidth($width)  ?: $this->IconTag();
    }
631997
public function getDetailThumbnailImage()
    {
        if ($this->fvHasDetailThumbnail) {
            $app = Application::getFacadeApplication();
            $config = $app->make('config');
            $type = ThumbnailType::getByHandle($config->get('concrete.icons.file_manager_detail.handle'));
            $result = '<img src="' . $this->getThumbnailURL($type->getBaseVersion()) . '"';
            if ($config->get('concrete.file_manager.images.create_high_dpi_thumbnails')) {
                $result .= ' data-at2x="' . $this->getThumbnailURL($type->getDoubledVersion()) . '"';
            }
            $result .= ' />';
        } else {
            $result = $this->getTypeObject()->getThumbnail();
        }

        return $result;
    }
249258
public function getThumbAttribute()
    {
        if (!$this->isImage)
            return null;

        $thumb_style = ImageStyle::where('name', 'Chronos Thumbnail')->first()->id;
        $thumb = $this->image_styles()->where('image_style_id', $thumb_style)->first();

        if ($thumb)
            return $thumb->file;
        else
            return $this->file;
    }
795683
public function getSize()
    {
        if ($this->isDirty && $this->bytes) {
            return strlen($this->bytes);
        }
        if ($this->isDirty && $this->filename) {
            return filesize($this->filename);
        }
        if ($this->riakGridFSFile instanceof \RiakGridFSFile) {
            return $this->riakGridFSFile->getSize();
        }
        return 0;
    }
1135766
public function src()
    {
        $src = $this->thumbnail();

        if (!$src) {
            $src = $this->file();
        }

        return $this->createAbsoluteUrl($src);
    }
955915
public function CMSThumbnail()
    {
        $width = (int)Config::inst()->get(__CLASS__, 'cms_thumbnail_width');
        $height = (int)Config::inst()->get(__CLASS__, 'cms_thumbnail_height');
        return $this->ThumbnailIcon($width, $height);
    }
62399
public function getResize()
    {
        $ratio = 1.0;
        $image = request('img');

        $original_image = Image::make($this->lfm->setName($image)->path('absolute'));
        $original_width = $original_image->width();
        $original_height = $original_image->height();

        $scaled = false;

        // FIXME size should be configurable
        if ($original_width > 600) {
            $ratio = 600 / $original_width;
            $width = $original_width * $ratio;
            $height = $original_height * $ratio;
            $scaled = true;
        } else {
            $width = $original_width;
            $height = $original_height;
        }

        if ($height > 400) {
            $ratio = 400 / $original_height;
            $width = $original_width * $ratio;
            $height = $original_height * $ratio;
            $scaled = true;
        }

        return view('laravel-filemanager::resize')
            ->with('img', $this->lfm->pretty($image))
            ->with('height', number_format($height, 0))
            ->with('width', $width)
            ->with('original_height', $original_height)
            ->with('original_width', $original_width)
            ->with('scaled', $scaled)
            ->with('ratio', $ratio);
    }
96187
public function getWidth() {
        $width = getenv('COLUMNS');
        if (false !== $width) {
            return (int)trim($width);
        }

        $dimensions = $this->getDimensions();

        return $dimensions[0] ?: 80;
    }
1185503
private function getMaxImageSize()
    {
        $config    = $this->getServiceLocator()->get('MelisCoreConfig');
        $path      = $config->getItem('meliscore/interface/meliscore_leftmenu/interface/meliscore_toolstree_section/interface/meliscore_tool_system_config/interface/meliscore_tool_platform_scheme');
        $imagesize = null;


        if($path) {
            $imageSize = isset($path['datas']['image_size_limit']) ? $path['datas']['image_size_limit'] : null;
        }

        return $imageSize;
    }
584563
public function thumbnail()
    {
        if (is_null($thumbnailURL = $this->entity->getImagePath()))
        {
            return $this->iconThumbnail('document');
        }

        return $this->wrapThumbnail(
            $this->filteredImageWith('rthumb', 'document-thumbnail__image')
        );
    }
368593
public function size()
    {
        $size = 0;
        if ( ! is_null($this->key_)) {
            $l = strlen($this->key_);
            $size += 1 + Protobuf::size_varint($l) + $l;
        }
        if ( ! is_null($this->value_)) {
            $l = strlen($this->value_);
            $size += 1 + Protobuf::size_varint($l) + $l;
        }

        return $size;
    }
1196772
public function getImageDimensions()
    {
        $dimension = $this->_getSetting('dimension');
        if ($this->getRow()->use_crop) {
            $parentDimension = $this->_getImageEnlargeComponent()->getImageDimensions();
            $dimension['crop'] = $parentDimension['crop'];
        }
        $data = $this->getImageData();
        return Kwf_Media_Image::calculateScaleDimensions($data['file'], $dimension);
    }
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;
	}
203170
public function getWidth() : int
    {
        if (!$this->loadImageInfo()) {
            throw InvalidOperationException::format(
                    'Invalid call to %s: file \'%s\' is not a valid image',
                    __METHOD__,
                    $this->fullPath
            );
        }

        return $this->width;
    }