Image content components

These components accept an image/* MIME type. Common web and camera formats come first. Download a .wasm file and run it with qipx run, or use the recipe finder to connect compatible decoders, transforms, and encoders.

JPEG (image/jpeg) #

Related tool: strip JPEG location.

PNG (image/png) #

Related tools: convert to favicon and compress image.

WebP (image/webp) #

Related tools: convert WebP to PNG and convert to WebP.

SVG (image/svg+xml) #

  • svg-rasterize-skia-with-fonts-to-ktx2-r8g8b8a8-srgb.wasm uses Skia’s CPU renderer for antialiased SVG paths, gradients, masks, filters, and text. It reads multipart/related input with the SVG as the root and the fonts to use as later parts, such as Inter passed with -F. It returns RGBA8 sRGB KTX2.

Related tools: compare SVG rasterizers, encode SVG as data URI, QR code, and Open Graph image.

GIF (image/gif) #

AVIF (image/avif) #

Related tool: compress image.

JPEG XL (image/jxl) #

Related tool: compress image.

BMP (image/bmp) #

Color and size

Encode

Convert to KTX2

Related tools: extract color palette, convert to favicon, convert to WebP, and compress image.

KTX2 (image/ktx2) #

Generate

Resize

The components filter in linear light with premultiplied alpha. They expose width and height uniforms, preserve aspect ratio when one dimension is omitted, and recoverably reject the opposite scaling direction.

Rotate and flip

Both components accept rotation_degrees=0|90|180|270, flip_horizontal=0|1, and flip_vertical=0|1. Rotation is clockwise and happens before either flip.

Related tool: resize image.

Decode and encode

Related tool: vectorize image.

Floating-point pipeline

JPEG 2000 (image/jp2) #

Looking for other components? See text, audio, TUI, and GUI.