Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vajahath/downsizer
Reduce image size of 1000s of photos as a batch.
https://github.com/vajahath/downsizer
Last synced: 13 days ago
JSON representation
Reduce image size of 1000s of photos as a batch.
- Host: GitHub
- URL: https://github.com/vajahath/downsizer
- Owner: vajahath
- Created: 2022-09-14T12:02:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-27T04:33:11.000Z (about 1 year ago)
- Last Synced: 2024-04-10T18:09:47.871Z (10 months ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/downsizer
- Size: 243 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# downsizer
A tiny tool to reduce size of images in bulk. Helps you to bulk reduce size of images in a folder or individual images.
## Install
- Install [Node.js](https://nodejs.org/en/) first.
- Check Node.js is installed by running `node --version`
- Then run `npx downsizer --version` or `npm install --global downsizer` (This will install downsizer to your machine from the [npm registry](https://www.npmjs.com/package/downsizer))## Usage
- Put your photos into a folder
- Open Command Prompt / terminal / Power Shell, and go to that folder.
- Run `npx downsizer "./*.jpg"` : this will downsize all your `.jpg` files and put them in the `./downsized` directory inside that folder.### Extra options
```bash
# reduce all jpg files in a directory
npx downsizer "./*.jpg"# reduce a single file
npx downsizer "/path/to/my/file.jpg"# default quality is 80
npx downsizer --quality=50 "./*.jpg"```
### Internals
Under the hood, this library uses sharp and uses a thread pool to parallize the tasks.
### Motivation
During the State Ijthima held on Karunagappally, Kerala, tons of photos were taken with professional cameras and DSLRs. Photos taken with professional cameras and DSLR are often huge in size. Hence those are hard to manipulate / upload.
This tiny tool was made to reduce size of photos.
Update (Nov 27, 2023): Latter this tool has been updated and used in AMJ Kollam, Alappy, Trivandrum District Conference photo management.
## Licence
MIT © Vajahath Ahmed