Compress images
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user