mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
chore(deps): bump the production-deps group
This commit is contained in:
@@ -70,7 +70,7 @@ async function processImageEnhancement(
|
||||
{ width: meta.width ?? 1, height: meta.height ?? 1 },
|
||||
);
|
||||
|
||||
let buffer = await image
|
||||
let buffer: Buffer = await image
|
||||
.toFormat(outputFormat.format, { quality: outputFormat.quality })
|
||||
.toBuffer();
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ async function processImage(inputBuffer: Buffer, settings: Settings, filename: s
|
||||
|
||||
const image = sharp(inputBuffer);
|
||||
const result = await optimizeForWeb(image, engineSettings);
|
||||
let buffer = await result.toBuffer();
|
||||
let buffer: Buffer = await result.toBuffer();
|
||||
|
||||
if (isJxl) {
|
||||
buffer = await encodeJxl(buffer, settings.quality);
|
||||
|
||||
@@ -249,7 +249,7 @@ export function registerStitch(app: FastifyInstance) {
|
||||
pipeline = pipeline.png();
|
||||
}
|
||||
|
||||
let result = await pipeline.toBuffer();
|
||||
let result: Buffer = await pipeline.toBuffer();
|
||||
|
||||
if (settings.format === "jxl") {
|
||||
result = await encodeJxl(result, settings.quality);
|
||||
|
||||
Reference in New Issue
Block a user