Skip to content

Ngx meta.twittercardimage

Home > @davidlj95/ngx-meta > TwitterCardImage

TwitterCardImage interface

Image for the card.

Equivalent to OpenGraph.image. This one can be omitted if equivalent is set.

Can be set with GlobalMetadata.image.

Used in TwitterCard.image with type TwitterCardImage

Signature:

export interface TwitterCardImage 

Remarks

Provider:

provideTwitterCardImage()

See also:

Properties

Property Modifiers Type Description
alt readonly string

A text description of the image conveying the essential nature of an image to users who are visually impaired.

Maximum 420 characters.

Used with summary, summary_large_image, player cards

url readonly string | URL

URL of image to use in the card. Images must be less than 5MB in size.

JPG, PNG, WEBP and GIF formats are supported.

Only the first frame of an animated GIF will be used.

SVG is not supported.

Used with summary, summary_large_image, player cards