# Espressif releases esp_new_jpeg, a ~10 kB JPEG codec for the ESP32 family

> **Key takeaway:** esp_new_jpeg gives ESP32-class microcontrollers a memory-frugal baseline JPEG encoder and decoder, with the ESP32-S3 decoding 640x480 at roughly 20 fps.

**Published:** 2026-12-03T15:27:48+00:00 
**Source:** Adafruit Electronics 
**Category:** open-hardware 
**Canonical URL:** https://fosswire.org/news/espressif-releases-espnewjpeg-a-10-kb-jpeg-codec-for-the-esp 

## Summary
Espressif has published esp_new_jpeg, a JPEG encoder and decoder library written for its own ESP32 family of chips. The library is deliberately small in both memory footprint and CPU demand: memory use stays at about 10 kB, and the encoder accepts raw RGB input while the decoder can rotate, crop and scale the images it reads. It handles baseline JPEG files and is distributed through components.espressif.com with source content on GitHub.

The headline performance figure comes from the ESP32-S3, which decodes a 640x480 image at around 20 frames per second and can split encoding work across two tasks to speed up wider images. Because the code targets the whole ESP32 family rather than a single part, it applies to the dual-core Xtensa LX6 and LX7 devices as well as the RISC-V-based variants in the lineup. The practical audience is embedded developers building camera, display and image-logging firmware on ESP32 boards.

## How esp_new_jpeg fits ESP32 image pipelines
- **Memory footprint:** The library is designed to hold memory use at roughly 10 kB, which keeps JPEG work viable on ESP32 parts where PSRAM is absent or reserved for other buffers.
- **Encoder input and decoder operations:** The encoder consumes raw RGB frames, while the decoder supports rotation, cropping and scaling of the decoded output, so display orientation and thumbnail generation can be handled inside the codec rather than in application code.
- **ESP32-S3 throughput:** On the ESP32-S3, decoding a 640x480 image runs at about 20 frames per second, and encoding of wider images can be parallelised across two tasks on the dual-core part.
- **Format and device coverage:** Only baseline JPEG is decoded, and the library is stated to work across the ESP32 family rather than being tied to one SoC variant.
- **Distribution:** The component is published on components.espressif.com with content on GitHub, matching Espressif's component-registry model for ESP-IDF projects.

## Why it matters
Camera and display projects on ESP32 boards have usually depended on third-party JPEG code or on hardware-assisted paths tied to specific modules; a first-party, low-memory codec from Espressif simplifies that choice for ESP-IDF builds. The 20 fps decode figure on the ESP32-S3 sets a realistic ceiling for small LCD preview streams and image capture over Wi-Fi, and the two-task encoding path gives developers a documented way to use the second core. Because the component ships through Espressif's registry, version pinning and updates follow the same workflow as other ESP-IDF dependencies.