Sorry that this has been delayed for so long, I have faced challenges in my life and grappled with my mental health concerns.
That aside, now we have the first working version 🎉 .
npx image-down images/* --width 800 --output compressed
import { compressImages } from 'image-down';
// Wildcards are not supported in library usages
await compressImages(['./images/image1.jpg'], {
width: 800,
outputDir: 'compressed',
});