Compress images

This commit is contained in:
2023-12-25 17:24:27 +00:00
parent cc29d23bc2
commit 04b0b2972d
460 changed files with 3181 additions and 2449 deletions
+10
View File
@@ -0,0 +1,10 @@
import type { ImageFileType } from "@components/types";
export function generateImageHyrdationFunction(dir: string) {
return (s: string, fileType?: ImageFileType, optimise?: boolean) => ({
dir: dir,
name: s,
fileType: fileType,
optimise: optimise,
});
}