🌁 Image util functions added
This commit is contained in:
@@ -1,10 +1,20 @@
|
||||
import router from "../router";
|
||||
import { walkFolder, extractArchive } from "../../utils/fs.utils";
|
||||
import {
|
||||
walkFolder,
|
||||
extractArchive,
|
||||
unrar,
|
||||
extractMetadataFromImage,
|
||||
} from "../../utils/fs.utils";
|
||||
import { Request, Response } from "express";
|
||||
|
||||
router.route("/getComicCovers").get((req: Request, res: Response) => {
|
||||
router.route("/getComicCovers").get(async (req: Request, res: Response) => {
|
||||
// unrar("./comics/covers/");
|
||||
const foo = await extractMetadataFromImage(
|
||||
"./comics/covers/Ghosts and Ruins-001.jpg",
|
||||
);
|
||||
res.json({
|
||||
jagan: "trupti",
|
||||
foo,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user