1.0.1 • Published 8 months ago

resizer-cli v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

resizer-cli

NPM version GitHub

Description

resizer-cli is a command-line interface (CLI) tool that utilizes FFMPEG to resize all images in a specified folder.

Installation

You can easily install resizer-cli using npm:

npm install resizer-cli

CLI Options

  • -h, --help: Display help information.
  • -s, --scale <integer>: Set the width of resized images in pixels (default = 20).
  • -d, --docker: Run the CLI tool virtually in a Docker container.

How it Works

Option 1: Run FFMPEG Locally

If you prefer to run FFMPEG locally, follow these steps:

  1. Install FFMPEG locally

    • For macOS users, you can use Homebrew:

      brew install ffmpeg
    • For linux users, use your preferred package manager

  2. In the root directory of your project, run the following command, replacing <path_to_image_folder> with the actual path to your image folder:

    npx resizer-cli <path_to_image_folder>

Option 2: Run FFMPEG Virtually

If you do not want to install FFMPEG locally, you can use the -d flag to run the CLI tool virtually in a Docker container. Follow these steps:

  1. Ensure Docker Desktop is installed:

  2. In the root directory of your project, run the following command, replacing <path_to_image_folder> with the actual path to your image folder:

    npx resizer-cli <path_to_image_folder> -d

Contributing

I welcome contributions from the community! If you'd like to contribute to resizer-cli, please follow these guidelines:

  1. Fork the repository and clone it locally.

  2. Create a new branch for your feature or bug fix.

  3. Make your changes and test them thoroughly.

  4. Ensure your code follows the project's coding style.

  5. Submit a pull request with a clear description of your changes.

License

This project is licensed under the MIT License.

1.0.1

8 months ago

1.0.0

8 months ago

0.5.0

8 months ago

0.4.0

8 months ago

0.3.0

8 months ago

0.2.0

8 months ago

0.1.0

8 months ago