Optimus Edge

Image optimizer for the Optimus Export Figma plugin — mozjpeg, libwebp and libpng compiled to WebAssembly.

Everything runs in this browser · nothing is uploaded

Try it

Drop PNG, JPG or WebP files here — or click to pick some

Using it from the Figma plugin

Put this page's address in the plugin's Optimizer field:

The plugin loads optimus.js and the codec binaries from here once, then does every conversion inside Figma. No image data is sent anywhere.

Using it from your own code

import { optimize } from '';

const result = await optimize(bytes, { format: 'webp', width: 1600 });
// result: { bytes, mime, format, width, height, quality, inputFormat, inputBytes, steps }

Options

formatwebp (default), jpg, png
widthMax width in px. Omit or 0 to keep the source width. Never enlarges.
heightMax height in px. Optional; with width it forms a bounding box.
maxSizeMBSize budget. Quality steps down 85 → 10 until it fits. PNG is lossless, so it scales down instead — 10% a step, floor 25%.