Skip to content

Instantly share code, notes, and snippets.

@arron21
arron21 / deno_img_opt.js
Created September 12, 2024 19:07
Deno script for creating optimized images for the web and and their metadata
import { Image } from "https://deno.land/x/imagescript@1.2.15/mod.ts";
import { join } from "https://deno.land/std@0.220.0/path/mod.ts";
const inputDir = join(Deno.cwd(), "src", "assets", "img", "gallery");
const outputDir = join(Deno.cwd(), "src", "assets", "img", "gallery-opt");
const imagesObjsArr = [];
/**