---
title: "JPEGs · Nuxt OG Image · Nuxt SEO"
canonical_url: "https://nuxtseo.com/docs/og-image/v5/guides/jpegs"
last_updated: "2026-08-16T10:00:30.938Z"
meta:
  description: "Learn how to generate JPEG images instead of PNG for Nuxt OG Image."
  "og:description": "Learn how to generate JPEG images instead of PNG for Nuxt OG Image."
  "og:title": "JPEGs · Nuxt OG Image · Nuxt SEO"
---

Nuxt SEO on GitHub

You're viewing **OG Image v5** documentation. For the latest, [~~switch to v6~~](https://nuxtseo.com/docs/og-image/getting-started/introduction).

](https://nuxtseo.com/docs/og-image/v5/getting-started/introduction)

](https://nuxtseo.com/docs/og-image/v5/api/define-og-image)

](https://nuxtseo.com/docs/og-image/v5/releases/v5)

Switch to OG Image](https://nuxtseo.com/docs/og-image/getting-started/introduction)Switch to Nuxt SEO](https://nuxtseo.com/docs/nuxt-seo/getting-started/introduction)Switch to Robots](https://nuxtseo.com/docs/robots/getting-started/introduction)Switch to Sitemap](https://nuxtseo.com/docs/sitemap/getting-started/introduction)Switch to Schema.org](https://nuxtseo.com/docs/schema-org/getting-started/introduction)Switch to Link Checker](https://nuxtseo.com/docs/link-checker/getting-started/introduction)Switch to SEO Utils](https://nuxtseo.com/docs/seo-utils/getting-started/introduction)Switch to Site Config](https://nuxtseo.com/docs/site-config/getting-started/introduction)Switch to Skew Protection](https://nuxtseo.com/docs/skew-protection/getting-started/introduction)Switch to AI Ready](https://nuxtseo.com/docs/ai-ready/getting-started/introduction)

**Core Concepts**

# **JPEGs**

The default image extension generated by Nuxt OG Image for Satori images is a `**png**`.

PNGs are great for most use cases, but they come at the cost of a larger file size.

You can opt-in we can render JPEGs instead of PNG but it requires Sharp. This is disabled by default as Sharp is a heavy dependency and [**~~compatibility~~**](https://nuxtseo.com/docs/og-image/guides/compatibility) is limited.

If you're prerendering your images or using a Node based environment, you can enable Sharp to render JPEGs.

For Chromium rendering, `**jpeg**` images are rendered by default.

## Setup

To install Sharp, you need to install the `**sharp**` dependency:

```sh
pnpm i -D sharp
```

Now you can change your default extension to either `**jpeg**` or `**jpg**`.

nuxt.config.ts

```ts
export default defineNuxtConfig({
  ogImage: {
    defaults: {
      extension: 'jpeg',
    }
  },
})
```

**Was this page helpful?**

[**Caching Images** Getting to know how the Caching works with Nuxt OG Image.](https://nuxtseo.com/docs/og-image/v5/guides/cache) [**Fonts** Using custom fonts in your OG Images.](https://nuxtseo.com/docs/og-image/v5/guides/custom-fonts)