An open API service indexing awesome lists of open source software.

https://github.com/runningdeveloper/image-resize-folder

Simple thing to resize a bunch of images in folder
https://github.com/runningdeveloper/image-resize-folder

Last synced: about 1 year ago
JSON representation

Simple thing to resize a bunch of images in folder

Awesome Lists containing this project

README

          

# Resize images in a folder
## Super basic thing for #100DaysOfCode

# Install
```
$ git clone https://github.com/runningdeveloper/image-resize-folder.git
$ cd image-resize-folder
$ npm i
```

# Usage
Change these variables in the index.js file
```
const inputDir = '/Users/geoffreyhunt/Desktop/image-test/in'
const outputDir = '/Users/geoffreyhunt/Desktop/image-test/out'
const size = {width: 1600, height: 1200, type: 'cover', quality: 80} // type: https://sharp.pixelplumbing.com/en/stable/api-resize/
```
Then you can run it with
```
$ node .
```