Skip to content

Instantly share code, notes, and snippets.

@jerazo1223
jerazo1223 / gulpfile.js
Created January 29, 2026 01:41 — forked from codigoconjuan/gulpfile.js
Crop Imagenes
export async function crop(done) {
const inputFolder = 'src/img/gallery/full'
const outputFolder = 'src/img/gallery/thumb';
const width = 250;
const height = 180;
if (!fs.existsSync(outputFolder)) {
fs.mkdirSync(outputFolder, { recursive: true })
}