ReqEmbed.Photo (ReqEmbed v0.1.1)

View Source

The photo type as defined in https://oembed.com/#section2.3.4.1

Represents a static photo. Includes all base Content fields plus:

  • url (required) - The source URL of the image. Consumers should be able to insert this URL into an <img> 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

Photo responses must obey the maxwidth and maxheight request parameters.