Set twitterImage w/ proxy.

@param Image $twitterImage

@return PageSeo
864
public function setTwitterImage($twitterImage, $locale = null)
    {
        $this->translate($locale, false)->setTwitterImage($twitterImage);
        $this->mergeNewTranslations();

        return $this;
    }
1287455
public function setDefaultImage($image)
    {
        if ($image !== false) {
            $this->cachedParams = null;

            $image = in_array(strtolower($image), $this->supportedImages)
                ? strtolower($image)
                : $this->checkImageUrl($image);
        }

        $this->defaultImage = $image;

        return $this;
    }
38948
public function setImages(\Doctrine\Common\Collections\ArrayCollection $images)
    {
        $this->images = $images;

        return $this;
    }
542049
public function setAltimages($altimages)
    {
        foreach ($altimages as $key => $dtoData) {
            $this->altimages[$key] = new ImageDto($dtoData);
        }
    
        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;
    }
607432
public function setDefaultImage($defaultImage = '')
    {
        if (empty($defaultImage)) {
            $image        = DataRepository::getData('config_image');
            $defaultImage = $image['default_image'];
        }
        $this->defaultImage = $defaultImage;

        return $this;
    }
1312038
public function useImageDriver(string $imageDriver)
    {
        if (! in_array($imageDriver, ['gd', 'imagick'])) {
            throw InvalidImageDriver::driver($imageDriver);
        }

        $this->imageDriver = $imageDriver;

        InterventionImage::configure([
            'driver' => $this->imageDriver,
        ]);

        return $this;
    }
472075
public function setLargeImageUrl($largeImageUrl) {
		if (strlen($largeImageUrl) > self::MAX_URL_CHARS) {
			throw new InvalidArgumentException('Large image URL exceeds ' . self::MAX_URL_CHARS . ' characters.');
		}

		$this->largeImageUrl = $largeImageUrl;

		return $this;
	}
1187488
public function setPixelRgb($x, $y, $rgb) {
		imagesetpixel($this->image, $x, $y, $rgb);
		return $this;
	}
1208814
public function optimize(Image $image): Image
    {
        $binary = $this->manipulate($image->getBinary(), 'optimize', $this->optimizationParams);

        return $image->modify($binary);
    }
1277950
public function twitterShare($url = '', $text = '', $referer = '')
    {
        $twitter = new Twitter();

        return $twitter
            ->createShareLink($url, $text, $referer)
            ->getLink();
    }
1222741
public function setImage($image)
    {
        if (getimagesize($image)) {
            if (strpos($image, 'http') === false) {
                loader()->loadHelper('url');
                $image = images_url($image);
            }

            $this->setObject('image', $image);
        }

        return $this;
    }
298249
public function execute($image)
    {
        $size = $this->argument(0)->type('digit')->value(10);

        return imagefilter($image->getCore(), IMG_FILTER_PIXELATE, $size, true);
    }
574017
public static function get_post_twitter_image( $post ) {
		$image = get_post_meta( $post->ID, '_yoast_wpseo_twitter-image', true );

		if ( empty( $image ) ) {
			$image = self::get_fallback_image( $post );
		}

		return $image;
	}
779269
public function setImage($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AutoMl\V1beta1\Image::class);
        $this->writeOneof(1, $var);

        return $this;
    }
991786
public function setImage($image) {

		if(false === is_string($image)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($image)), E_USER_ERROR);
		}

		$file = new File($image);

		if(false === $file -> exists()) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be an existing image', __METHOD__), E_USER_ERROR);
		}

		if(false === in_array(exif_imagetype($image), [IMAGETYPE_JPEG, IMAGETYPE_PNG])) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be an valid image (jpg, jpeg or png)', __METHOD__), E_USER_ERROR);
		}

		$this -> image = $file;

		return $this;
	}
986770
private function setImageFormat($image, $format, $backgroundColor='#FFFFFF')
    {
        if ($image->getImageFormat() !== $format) {
            if ($format == 'jpg' || $format == 'jpeg') {
                $image->setImageBackgroundColor(new \ImagickPixel($backgroundColor));
                $image = $image->mergeImageLayers(\Imagick::LAYERMETHOD_FLATTEN);
            }

            $image->setImageFormat($format);
        }
        if ($format == 'jpeg') {
            $image->setImageCompressionQuality(90);
        }

        return $image;
    }