public function setImage($image, $getAndSetDimensions = true)
    {
        $this->set('image', $image);
        if ($getAndSetDimensions) {
            $imageSize = $this->container->get(ImageService::class)->getImageSize($image);
            if (is_array($imageSize) && count($imageSize)) {
                $this->set('og:image:width', $imageSize[0], true);
                $this->set('og:image:height', $imageSize[1], true);
            }
        }
    }
public function setImage($image, $getAndSetDimensions = true)
    {
        $this->set('image', $image);
        if ($getAndSetDimensions) {
            $imageSize = $this->container->get(ImageService::class)->getImageSize($image);
            if (is_array($imageSize) && count($imageSize)) {
                $this->set('og:image:width', $imageSize[0], true);
                $this->set('og:image:height', $imageSize[1], true);
            }
        }
    }
public function setImage ( $ image , $ getAndSetDimensions = true ) { $ this -> set ( 'image' , $ image ) ; if ( $ getAndSetDimensions ) { $ imageSize = $ this -> container -> get ( ImageService :: class ) -> getImageSize ( $ image ) ; if ( is_array ( $ imageSize ) && count ( $ imageSize ) ) { $ this -> set ( 'og:image:width' , $ imageSize [ 0 ] , true ) ; $ this -> set ( 'og:image:height' , $ imageSize [ 1 ] , true ) ; } } }
Set the share absolute image URL.

@param string $image Absolute image URL
Set the share absolute image URL .