Skip to content

Instantly share code, notes, and snippets.

{
"basics": {
"name": "Arron McCrory",
"label": "Full Stack Web Developer",
"picture": "https://avatars.githubusercontent.com/u/2738674?v=4",
"email": "[email protected]",
"phone": "(949) 306-6039",
"location": {
"address": "United States of America",
"postalCode": "",
@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/[email protected]/mod.ts";
import { join } from "https://deno.land/[email protected]/path/mod.ts";
const inputDir = join(Deno.cwd(), "src", "assets", "img", "gallery");
const outputDir = join(Deno.cwd(), "src", "assets", "img", "gallery-opt");
const imagesObjsArr = [];
/**