MCPcopy
hub / github.com/jimp-dev/jimp / jpeg

Function jpeg

plugins/js-jpeg/src/index.ts:17–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17export default function jpeg() {
18 return {
19 mime: "image/jpeg",
20 encode: (bitmap, { quality = 100 }: JPEGOptions = {}) =>
21 JPEG.encode(bitmap, quality).data,
22 decode: (data, options?: DecodeJpegOptions) => JPEG.decode(data, options),
23 } satisfies Format<"image/jpeg">;
24}

Callers 1

index.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…