Skip to content

Commit f615fb7

Browse files
committed
compress
1 parent 713fa58 commit f615fb7

7 files changed

Lines changed: 0 additions & 6 deletions

File tree

public/images/011125-redtrees.jpg

-100 KB
Loading

public/images/conversationpark.jpg

-146 Bytes
Loading

public/images/gradceremony.jpeg

-313 Bytes
Loading

public/images/here.jpg

-24 Bytes
Loading

public/images/jerome.jpg

-77 Bytes
Loading

public/images/melencolia.jpg

-540 Bytes
Loading

scripts/compressImages.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ async function compressImage(filePath) {
3030
const image = sharp(filePath);
3131
const metadata = await image.metadata();
3232

33-
// Create backup
34-
const backupPath = filePath + ".backup";
35-
if (!fs.existsSync(backupPath)) {
36-
fs.copyFileSync(filePath, backupPath);
37-
}
38-
3933
// Resize if very large
4034
let processor = image;
4135
if (metadata.width > 2000) {

0 commit comments

Comments
 (0)