Set image open graph

@param  object $imageObj
@return $this
181638
public function setImageOG($imageObj)
    {
        if($imageObj) {
            Meta::set("og:image", asset($imageObj->url), "property");
            Meta::set("og:image:type", $imageObj->type."/".str_replace("jpg", "jpeg", $imageObj->extension), "property");
            if($imageObj->description) {
                Meta::set("og:image:alt", $imageObj->description, "property");
            }

            if($imageObj->dimensions) {
                $image = explode("x", $imageObj->dimensions);
                Meta::set("og:image:width", $image[0], "property");
                Meta::set("og:image:height", $image[1], "property");
            }
        }
        return $this;
    }
538228
public function setDescription($description)
    {
        $this->meta()->setDescription($description);
        $this->openGraph()->setDescription($description);
        $this->twitter()->setDescription($description);

        return $this;
    }
456948
public function openImage($watermarkableImageFullPath) 
	{
		$this->setImageFullPath($watermarkableImageFullPath);
		$this->thumbnailerService->open($watermarkableImageFullPath);
		$this->setImageInfo($this->thumbnailerService->getImageInfo());
		
		return $this;
	}
283359
public static function setNailsJs()
    {
        $oAsset     = Factory::service('Asset');
        $aVariables = [
            'ENVIRONMENT' => Environment::get(),
            'SITE_URL'    => site_url('', Functions::isPageSecure()),
            'NAILS'       => (object) [
                'URL'  => NAILS_ASSETS_URL,
                'LANG' => (object) [],
                'USER' => (object) [
                    'ID'    => activeUser('id') ? activeUser('id') : null,
                    'FNAME' => activeUser('first_name'),
                    'LNAME' => activeUser('last_name'),
                    'EMAIL' => activeUser('email'),
                ],
            ],
        ];
        foreach ($aVariables as $sKey => $mValue) {
            $oAsset->inline('window.' . $sKey . ' = ' . json_encode($mValue) . ';', 'JS', 'HEADER');
        }
    }
1098310
public function setArticleOG($postObj)
    {
        Meta::set("article:published_time", $postObj->created_at->format('c'), "propery");// When the article was first published.
        Meta::set("article:modified_time", $postObj->updated_at->format('c'), "propery");// When the article was last changed.

        // Author
        if($postObj->user) {
            Meta::set("article:author", $postObj->user->firstName . " " . $postObj->user->lastName, "propery");// Writers of the article.
        }

        // Category
        if($postObj->hasCategory()) {
            Meta::set("article:section", $postObj->category->title, "propery");// - A high-level section name. E.g. Technology
        }

        // Tags
        if($postObj->hasTags()) {
            foreach($postObj->tags as $tag){
                Meta::set("article:tag", $tag->title, "propery");// Tag words associated with this article.
            }
        }
        return $this;
    }
1155477
public function setPictureId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->picture_id !== $v) {
            $this->picture_id = $v;
            $this->modifiedColumns[SkillVersionTableMap::COL_PICTURE_ID] = true;
        }

        return $this;
    }
913761
public function image(string $imageFile, array $attributes = null) : self
    {
        if ($this->validate and ! $imageFile) {
            throw new Exception("Open Graph: Invalid image URL (empty)");
        }

        if (strpos($imageFile, '://') === false and function_exists('asset')) {
            $imageFile = asset($imageFile);
        }

        if ($this->validate and ! filter_var($imageFile, FILTER_VALIDATE_URL)) {
            throw new Exception("Open Graph: Invalid image URL '{$imageFile}'");
        }

        $this->tags[] = $this->createTag('image', $imageFile);

        if ($attributes) {
            $valid = [
                'secure_url',
                'type',
                'width',
                'height',
            ];

            $this->attributes('image', $attributes, $valid);
        }

        return $this;
    }
940785
public function setImage($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Vision\V1\Image::class);
        $this->image = $var;

        return $this;
    }
719238
public function createAttributeValue($obj)
    {
        if ($obj && !is_object($obj)) {
            $obj = File::getByID($obj);
        }

        $value = new ImageFileValue();
        $value->setFileObject($obj);

        return $value;
    }
11324
public Message setObject(Object obj) {
        if(obj == null) return this;
        if(obj instanceof byte[])
            return setBuffer((byte[])obj);
        if(obj instanceof Buffer)
            return setBuffer((Buffer)obj);
        try {
            return setBuffer(Util.objectToByteBuffer(obj));
        }
        catch(Exception ex) {
            throw new IllegalArgumentException(ex);
        }
    }
486292
public function setImageResource($value = null)
    {
        $this->imageResource = $value;

        if (!is_null($this->imageResource)) {
            // Get width/height
            $this->width  = imagesx($this->imageResource);
            $this->height = imagesy($this->imageResource);
        }
        return $this;
    }
541327
public function setImageUrl($imageUrl)
    {
        $this->style    = null;
        $this->subStyle = null;
        $this->imageUrl = (string)$imageUrl;
        return $this;
    }
308925
public function setImageManager(ImageManager $imageManager = null, array $config = [])
    {
        if (!$imageManager) {
            $imageManager = new ImageManager($config);
        }
        $this->imageManager = $imageManager;

        return $this;
    }
292414
public function setPhoto($src, $href = null)
    {
        if (isset($href)) {
            $this->photo = new Link(new Image($src), $href);
        } else {
            $this->photo = new Image($src);
        }

        return $this;
    }
1243190
public function setContainerObj($obj)
    {
        if ($obj === null) {
            $this->containerObj = null;

            return $this;
        }

        if (!$obj instanceof AttachmentContainerInterface) {
            throw new InvalidArgumentException(sprintf(
                'Container object must be an instance of %s; received %s',
                AttachmentContainerInterface::class,
                (is_object($obj) ? get_class($obj) : gettype($obj))
            ));
        }

        if (!$obj->id()) {
            throw new InvalidArgumentException(sprintf(
                'Container object must have an ID.',
                (is_object($obj) ? get_class($obj) : gettype($obj))
            ));
        }

        $this->containerObj = $obj;

        return $this;
    }
625410
public static function setup(/* mixed */ $obj): void
    {
        if($obj instanceof Graph\GraphInterface) {
            Hooks\Graph::setup($obj);
        }
        // . (on purpose)
        if($obj instanceof Graph\EdgeInterface) {
            Hooks\Edge::setup($obj);
        }
        elseif($obj instanceof Graph\NodeInterface) {
            Hooks\Node::setup($obj);
        }
        elseif($obj instanceof AbstractNotification) {
            Hooks\Notification::setup($obj);
        }
    }
747797
public function from($element = null)
    {
        if (!empty($element) && $element instanceof Image) {
            foreach (get_object_vars($element) as $key => $value) {
                $this->$key = $value;
            }

            return $this;
        }
    }