Home

ogimage

Ogimage refers to the Open Graph protocol meta tag used to specify the image that represents a webpage when it is shared on social media. In HTML, it is included in the head section as a meta tag with property="og:image" and a URL to the image, for example: <meta property="og:image" content="https://example.com/preview.jpg" />. Some pages provide multiple og:image tags to offer alternatives for different contexts; social platforms may select the most appropriate image from the list.

In addition to og:image, several related properties can be used to influence rendering. These include og:image:width

Guidelines emphasize using an image that clearly represents the page content. For best display in modern feeds,

Effectively configuring og:image can improve the appearance of shared links, potentially enhancing click-through rates on social

and
og:image:height
to
hint
the
image’s
dimensions,
og:image:secure_url
for
a
HTTPS
URL,
and
og:image:alt
for
accessibility.
The
image
URL
should
be
absolute
and
publicly
accessible,
and
it
is
not
required
to
be
the
first
image
on
the
page.
landscape
images
with
a
typical
aspect
ratio
around
1.91:1
and
a
resolution
near
1200
by
630
pixels
are
commonly
recommended.
Smaller
images
may
be
cropped
or
upscaled,
and
large
files
can
affect
loading
times.
Providing
descriptive
alt
text
through
og:image:alt
helps
accessibility
and
reach.
networks
that
implement
the
Open
Graph
protocol.