Skip to content

Image Generator

Compress a PNG, JPG, BMP or SVG into a ugui_compressed_image_t header ready to #include — directly in your browser.


⚠️ Backend unavailable — make sure the image generator service is deployed on this server.
Image File
🖼️
Drop image here or click to browse
Max 10 MB · PNG · JPG · BMP · SVG
Image Settings

Leave blank to keep the original dimensions.

Pick the format matching your build's UGUI_COLOR_FORMAT_* (RGB565, RGB888 or ARGB8888) for full-color methods — Indexed and Grayscale are decoded independently of it.

Generation Log
⬇ Download File

Output format

The generated header defines the compressed byte stream and a ugui_compressed_image_t descriptor — the layout the library ships in inc/ugui_types.h, so it compiles unchanged:

#include "../ugui_widget_image.h"

const uint8_t img_my_icon_compressed[] = { /* compressed bytes */ };

const ugui_compressed_image_t img_my_icon = {
  .compression_type = UGUI_COMPRESSION_TYPE_RLE,
  .width = 32,
  .height = 32,
  .compressed_size = 756,
  .data = img_my_icon_compressed,
  .palette = NULL,
  .palette_size = 0,
  .bits_per_index = 0,
};

Point an image widget's icon / img field at the generated symbol. Guarded by UGUI_ENABLE_IMAGE (ugui_config.h).

See also