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

mz-img-tools

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mz-img-tools

A CLI tool for processing images, including conversion, compression, and renaming.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

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

mz-img-tools

A CLI tool for processing images, including conversion, compression, and renaming.

Install

You can use npx to execute this CLI tool directly without installing it globally.

npx mz-img-tools

Or you can install it globally:

npm install -g mz-img-tools

Usage

npx mz-img-tools [directory] [options]

Options

  • -o, --output <directory>: Specify output directory (optional)
  • -w, --width <number>: Target width (optional)
  • -h, --height <number>: Target height (optional)
  • -f, --format <string>: Target image format (jpg, jpeg, png, webp, jp2, bmp, optional)
  • -q, --quality <number>: Compression threshold (0~1, default 0.7)

Examples

Convert all images in a directory to JPEG format with a width of 800 pixels and a height of 600 pixels:

npx mz-img-tools /path/to/images -w 800 -h 600 -f jpeg -q 0.7

Convert all images to WebP format while maintaining original dimensions:

npx mz-img-tools /path/to/images -f webp -q 0.5

Process all images in the current directory with default settings:

npx mz-img-tools

License

This project is licensed under the ISC License. See the LICENSE file for details.


Keywords

FAQs

Package last updated on 30 Aug 2024

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