Decode and Scale Image
Free image decoding and scaling API, suitable for ESP32 screen display, Arduino, e-ink screens, TFT color screens and various embedded devices. Can upload image files or pass image links, output BMP, RGB565 or RGB888 binary data according to specified size, convenient for direct integration into image preprocessing flow. · Suitable for ESP32 screen display, Arduino projects, e-ink screens, TFT screens, digital photo frames, embedded device image preprocessing, image size unification and color format conversion and other scenarios · Decode and Scale Image
Image decode API, Image scaling interface, Free convert to BMP, Online convert to RGB565, RGB888 conversion, ESP32 image interface, Arduino image processing, E-ink screen image, TFT screen image processing, Screen image preprocessing, image decode api, image resize api
POST /image/decode - Decode and Scale Image
Decoding images on devices with extremely limited RAM and Flash is a heavy task. This endpoint is designed for IoT and embedded development, moving complex image decoding and scaling operations to the cloud, directly outputting binary pixel streams suitable for microcontroller screens.
Overview
This endpoint provides flexible cloud-based image preprocessing capabilities, helping hardware developers skip tedious image processing logic:
- Direct Streaming Rendering: If you choose to output pure pixel stream (such as RGB565), after receiving network data, the microcontroller can write it directly to video memory without parsing file headers, achieving streaming playback with extremely low memory usage.
- Perfect Screen Adaptation: No need to write cropping or padding code on the device side. Just pass in the physical resolution of the target screen, the endpoint will automatically complete proportional scaling, centered padding or fill cropping, ensuring the final display image is not distorted.
- Precise Memory Allocation: In scenarios with dynamic image scaling, the server will inject X-Image-Width and X-Image-Height into HTTP response headers in advance, allowing devices to perform accurate memory allocation before reading actual binary data.
Usage Notes
- Request Format: Whether uploading local files or passing image links, the request body must use multipart/form-data encoding format.
- Network Resource Retrieval: When you choose to pass image links, the server will automatically try to retrieve the resource. Please ensure that the image link you provide is directly accessible from the public internet and does not require any form of login authentication.