Returns the product default picture.

@return string
770673
public function getDefaultPictureAttribute()
    {
        $default = $this->pictures->where('default', true)->first();

        if ($default) {
            return $default->path;
        }

        $picture = $this->pictures->first();

        if (is_null($picture)) {
            return 'images/no-image.jpg';
        }

        return $picture->path;
    }
363016
public function getDefaultAdapterExt()
    {
        $managedExt = $this->rendererAdapters->get($this->defaultAdapter)->getManagedFileExtensions();

        return array_shift($managedExt);
    }
375790
public function getImageType()
    {
        $this->imageType = ($this->imageType === 'jpg') ? 'jpeg' : $this->imageType;
        $this->imageType = ( in_array($this->imageType, $this->imageTypes) ) ? $this->imageType : 'png';

        return $this->imageType;
    }
420794
public function getImageAttribute()
    {
        $defaultPath = '/img/default-product.jpg';
        $image = $this->images()->where('is_main_image', '=', 1)->first();

        if (null === $image) {
            return new LocalFile($defaultPath);
        }

        if ($image->path instanceof LocalFile) {
            return $image->path;
        }
    }
637543
protected function getConfiguredFormat()
    {
        $format = $this->config->get('concrete.misc.default_thumbnail_format');
        if ($format === static::FORMAT_AUTO || $this->bitmapFormat->isFormatValid($format)) {
            $result = $format;
        } elseif ($format === 'jpg') { // legacy value
            $result = BitmapFormat::FORMAT_JPEG;
        } else {
            $result = static::FORMAT_AUTO;
        }

        return $result;
    }
147582
public function getDefaultTheme()
    {
        if (!$this->_defaultTheme) {
            $keys = $this->keys(); /// shame to PHP it can't be done in single line :(
            $this->_defaultTheme = reset($keys);
        }

        return $this->_defaultTheme;
    }
1132525
public function getPictureGallery()
    {
        if ($this->_aPicGallery === null) {
            //get picture gallery
            $this->_aPicGallery = $this->getPicturesProduct()->getPictureGallery();
        }

        return $this->_aPicGallery;
    }
738197
public function getPicturesProduct()
    {
        $aVariantSelections = $this->getVariantSelections();
        if ($aVariantSelections && $aVariantSelections['oActiveVariant'] && !$aVariantSelections['blPerfectFit']) {
            return $aVariantSelections['oActiveVariant'];
        }

        return $this->getProduct();
    }
975704
public function image()
    {
        if ($image = $this->articleImage()) {
            return $image;
        }
        if ($image = $this->introImage()) {
            return $image;
        }

        return config('article.image');
    }
638440
public function SortedImages()
    {
        // If this product has images, display them
        if ($this->Images()->exists()) {
            return $this->Images()->Sort('SortOrder');
        }

        $config = SiteConfig::current_site_config();
        $default_image = $config->DefaultProductImage();
        $images = ArrayList::create();
        
        // Try to use default from SiteConfig, if none is available,
        // use a system default
        if ($default_image->exists()) {
            $image = $default_image;
        } else {
            $image = Helper::generate_no_image();
        }

        // Finally return a list with only the default
        $images->add($image);
        return $images;
    }
151078
public function getImageUrl()
    {
        return !$this->hasImage() ?
            $this->getImageDefaultUrl() :
            $this->_imageUrl($this->owner->getAttribute($this->imageAttribute));
    }
732358
public function getCoverImage()
    {
        if ($this->coverImage)
        {
            return $this->coverImage;
        }

        $modelName = source_model_name($this->getNodeTypeName(), true);

        $mutatables = call_user_func([$modelName, 'getMutatables']);

        foreach ($mutatables as $mutatable => $type)
        {
            if ($type === 'gallery' && ($images = $this->getTranslationAttribute($mutatable, null, true, true)))
            {
                if ($cover = get_nuclear_cover($images))
                {
                    $this->coverImage = $cover;

                    return $cover;
                }
            }

            if ($type === 'document' && ($document = $this->getTranslationAttribute($mutatable, null, true, true)))
            {
                if ($document = get_nuclear_cover($document))
                {
                    $this->coverImage = $document;

                    return $document;
                }
            }
        }

        return null;
    }
68772
public function getDefaultImageResizeHeight()
    {
        if ($height = $this->owner->ImageDefaultResizeHeight) {
            return $height;
        }
        
        if ($this->owner->hasExtension(MetaDataExtension::class)) {
            return $this->owner->getFieldFromParent('DefaultImageResizeHeight');
        }
    }
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;
        }
    }
85853
public function getDefault()
    {
        if ($this->reflection->isDefaultValueAvailable()
            and $default = $this->reflection->getDefaultValue()
        ) {
            if (is_scalar($default)) {
                return $default;
            } else {
                return $this->tostring($default);
            }
        }
        if ($this->reflection->isArray()) {
            return '[]';
        }
        if ($this->isPassedByReference()) {
            return 'null';
        } elseif ($this->reflection->getClass()) {
            // This gets injected as a new instance.
            return null;
        }
        $type = $this->getType();
        if (!$type) {
            $type = $this->extractParameterData();
        }
        // Guesstimated values:
        switch ($type) {
            case 'int': case 'integer': case 'float':
                return 0;
            case 'string':
                return "''";
            case 'array':
                return '[]';
        }
        return null;
    }
546791
public function getBrand() : ?string 
    {
        if ( ! $this->hasBrand()) {
            $this->setBrand($this->getDefaultBrand());
        }
        return $this->brand;
    }
909101
public function getImageUrlAttribute()
    {
        if ($this->exists) {
            $image = $this->image();

            if ($image) {
                return $image->url;
            }

            return config('media.image.default');
        }

        return config('media.image.default');
    }