---
title: "JpegSettings"
canonical_url: "https://www.nutrient.io/api/python/settings/format/jpeg-settings/"
md_url: "https://www.nutrient.io/api/python/settings/format/jpeg-settings.md"
last_updated: "2026-06-12T15:43:20.748Z"
description: "Settings for Jpeg. Values fall back through three levels: document → SDK → built-in default."
---

Settings for Jpeg. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document's settings, otherwise the SDK globally when set on SdkSettings.

**Tags:** `Format`

```python

from nutrient_sdk import JpegSettings

```

## Construction

`JpegSettings` is accessed through a [`Document`](/api/python/document/) instance for per-document overrides, or via [`SdkSettings`](/api/python/settings/document/sdk-settings/) for SDK-wide defaults.

```python

# Per-document override

with Document.open("input.pdf") as doc:
    settings = doc.settings.jpeg_settings
    settings.some_field = new_value          # mutate fields directly

# SDK-wide default (applies to all documents)

SdkSettings.jpeg_settings.some_field = new_value

```

Settings are configured by writing to fields on the returned object. The settings property itself cannot be reassigned — `doc.settings.jpeg_settings = other_settings` is rejected.

## Properties

### quality_settings

```python

@property
def quality_settings(self) -> bytes

@quality_settings.setter
def quality_settings(self, value: bytes) -> None

```

The quality level for JPEG compression. Higher values produce better quality but larger file sizes.

**Type:** `bytes`

**Default:** `75`

---

---

## Related pages

- [Per-document override](/api/python/settings/format/email-settings.md)
- [Per-document override](/api/python/settings/format/html-settings.md)
- [Per-document override](/api/python/settings/format/image-settings.md)
- [Format](/api/python/settings/format.md)
- [Per-document override](/api/python/settings/format/cad-settings.md)
- [Per-document override](/api/python/settings/format/pdf-settings.md)
- [Per-document override](/api/python/settings/format/spreadsheet-settings.md)
- [Per-document override](/api/python/settings/format/markdown-settings.md)
- [Per-document override](/api/python/settings/format/word-settings.md)

