独立运营 · 不出售排名位置  · 我们怎么评估工具 →
Anclum 提交收录
B

Baukaalm/optiq

本站为独立目录,非该工具官网;下方信息取自其公开仓库。

Try the demo · Documentation · Benchmarks (原文为英文)

装之前:命令归属未核实,仅作参考展示 · 许可证 Apache-2.0

第一步(仅参考,归属未核实):a CLI (npx optiq-image);

更新 2026-10-29
在 GitHub 查看 ↗直链 · 无中转页

我们没有可直接复制的安装命令,也没有公开的远端端点,所以不出配置。上面那条命令仅供参考,不是我们能担保的可复制命令——编一条出来比不给更糟。 各客户端的接法 →

★ 数取值
0 ★ · Baukaalm/optiq · 取自 GitHub 搜索 API · (2026-11-19 20:00:48 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-11-18 · 最近见到 2026-11-20 · 共见到 3 次 · 被 3 个来源列出
评分构成
综合分 300 · 3 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 Baukaalm/optiq;我们收录于 2026-11-18;最近见到 2026-11-20。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
README 原文(英文,未翻译) · 在 GitHub 读完整 README →

Optiq

以下摘录自该仓库的 README(片段)

Try the demo · Documentation · Benchmarks
Browser-side image optimisation for uploads. For every image Optiq encodes a bounded set of candidates
(jpegli, libwebp, libavif, oxipng — compiled to WebAssembly), measures each one, and returns the smallest
output that satisfies your constraint:
lossless — decoded pixels (including alpha) are verified identical to the input;
visually-lossless — pixels may differ; SSIM ≥ 0.99 against the input (configurable);
balanced (default) — SSIM ≥ 0.975, smaller search budget, faster AVIF preset.
AVIF is held to a stricter SSIM threshold than JPEG and WebP. It was calibrated against the independent SSIMULACRA2
metric, which showed SSIM is too lenient on AVIF's smoothing.
The same engine also runs in Node and powers:
a CLI (npx optiq-image);
a Vite plugin;
an MCP server for AI agents (optiq-mcp, source in mcp/).
In the browser, work runs in a Web Worker; the main thread only posts a Blob and receives an ArrayBuffer. Results carry the
chosen codec/settings, every candidate tried, the measured quality, warnings, fallbacks and unmet constraints.
> Benchmarks: see Benchmark results and bench/results/RESULTS.md. Optiq is not
> uniformly better than the alternatives; the trade-offs (size vs. time vs. memory) are listed there per category.
## Install
sh
pnpm add optiq-image # or npm / yarn
Requirements: an ES2022 browser with module Workers and WebAssembly (Chrome/Edge 80+, Firefox 114+, Safari 15+).
AVIF output is only useful where your audience can decode AVIF (Chrome 85+, Firefox 93+, Safari 16.4+); remove it
with autoFormats: ["jpeg", "png", "webp"] otherwise.
### Bundler setup (Vite 7 and 8)
ts
// vite.config.ts
export default defineConfig({
worker: { format: "es" }, // codecs are loaded with dynamic import() inside the worker
optimizeDeps: { // dev only: pre-bundling breaks new URL("x.wasm", import.meta.url)
exclude: ["optiq-image", "@jsquash/jpeg", "@jsquash/png", "@jsquash/webp", "@jsquash/avif", "@jsquash/oxipng", "@jsquash/resize"],
},
});
webpack 5 and Parcel 2 understand new Worker(new URL("./worker.js", import.meta.url), { type: "module" }) and
new URL(".wasm", import.meta.url) natively. For anything else pass workerFactory to createCompressor.
Each codec is a separate chunk, fetched on first use (AVIF ≈ 3.5 MB, others 35–350 KB).
## Usage
ts
import { compressImage, isOptiqError } from "optiq-image";
const controller = new AbortController();
try {
const result = await compressImage(file, {
mode: "balanced",
maxWidthOrHeight: 2560,
signal: controller.signal,
onProgress: (e) => console.log(e.stage, Math.round(e.progress 100), e.bestBytes),
});
result.blob; // Blob with the right MIME type (image/avif, image/webp, ...)
result.fileName; // "IMG_0042.webp" — extension matches the encoded bytes
result.sizeReductionRatio, result.qualityMetric, result.codec, result.warnings;
if (!result.constraintsMet) console.warn(result.unmetConstraints);
} catch (e) {
if (isOptiqError(e)) console.warn(e.code, e.message); // e.g. UNSUPPORTED_FORMAT, ABORTED
// the original file is untouched — upload it instead
React:
tsx
function useCompressed(file?: File) {
const [state, set] = useState ({ progress: 0 });
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/zh/s/baukaalm-optiq/)
来源
awesome · https://github.com/Baukaalm/optiq
按领域浏览
MCP 服务
收录来源
3 个独立来源
收录于
今天

更多 MCP 服务器

全部 6,555 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引