Skip to content

Commit

Permalink
Refreshments
Browse files Browse the repository at this point in the history
  • Loading branch information
l-alexandrov committed Mar 29, 2024
1 parent c675d43 commit e6de9e5
Show file tree
Hide file tree
Showing 4 changed files with 285 additions and 4,003 deletions.
9 changes: 1 addition & 8 deletions gulpfile.js → main.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
const { src, dest } = require("gulp");
const sharp = require("sharp");
var fs = require('fs');
const { promisify } = require('util');
const pipeline = promisify(require('stream').pipeline);

function defaultTask(done) {
done();
}

async function getMaxWidth(filePath) {
const metadata = await sharp(filePath).metadata();
Expand Down Expand Up @@ -83,7 +79,4 @@ async function processImages() {
}
}

module.exports = {
default: defaultTask,
img: processImages,
};
processImages();
Loading

0 comments on commit e6de9e5

Please sign in to comment.