Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

downsizer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

downsizer

A tiny tool to reduce image size in bulk.

  • 2.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

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 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)

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

# 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.

Licence

MIT © Vajahath Ahmed

FAQs

Package last updated on 27 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc