element. Only HTTP and HTTPS URLs are valid. * * width (required) * The width in pixels of the image specified in the url parameter. * * height (required) * The height in pixels of the image specified in the url parameter. * * Responses of this type must obey the maxwidth and maxheight request * parameter. */ class OEmbedPhoto extends OEmbed { public function getOEmbed() { $oembed = parent::getOEmbed(); if ($this->embedCode && $this->oembed) { $width = $this->oembed->get('width'); $height = $this->oembed->get('height'); $this->attributes(['width' => $width, 'height' => $height]); } return $oembed; } }