fix: remove all linter errors
This commit is contained in:
@@ -8,7 +8,7 @@ import { DATA_DIR } from "@lib/env.ts";
|
||||
import { db } from "@lib/db/sqlite.ts";
|
||||
import { imageTable } from "@lib/db/schema.ts";
|
||||
import { eq } from "drizzle-orm";
|
||||
import sharp from "npm:sharp@next";
|
||||
import sharp from "sharp";
|
||||
|
||||
const log = createLogger("cache/image");
|
||||
|
||||
@@ -219,7 +219,11 @@ async function createThumbhash(
|
||||
.raw()
|
||||
.toBuffer();
|
||||
|
||||
const [hash, average] = generateThumbhash(resizedImage, 100, 100);
|
||||
const [hash, average] = generateThumbhash(
|
||||
new Uint8Array(resizedImage),
|
||||
100,
|
||||
100,
|
||||
);
|
||||
|
||||
return {
|
||||
hash: btoa(String.fromCharCode(...hash)),
|
||||
|
||||
Reference in New Issue
Block a user