template-project/node_modules/@jimp/js-jpeg/dist/esm/index.js
2025-05-30 18:13:30 +08:00

9 lines
294 B
JavaScript

import JPEG from "jpeg-js";
export default function jpeg() {
return {
mime: "image/jpeg",
encode: (bitmap, { quality = 100 } = {}) => JPEG.encode(bitmap, quality).data,
decode: (data, options) => JPEG.decode(data, options),
};
}
//# sourceMappingURL=index.js.map