1.0.1 • Published 9 months ago
@davitp/editimg v1.0.1
Edit Image (editimg)
The editimg is a lightweight command-line tool for performing basic image manipulations such as splitting, cropping, resizing, and more. It provides a simple and efficient way to process images directly from the terminal without the need for complex graphical software.
Installation
Prerequisites
- Node.js: Ensure that Node.js is installed on your system. You can download it from the official website.
Install via npm
To install editimg globally using npm, run the following command:
npm install -g @davitp/editimg
Usage
editimg
provides various image manipulation commands. Below is an example usage for splitting images.
Split Images
This command splits each image in the specified folder into multiple parts.
editimg split -i FOLDER_WITH_IMAGES --parts N
Option | Description | Values |
---|---|---|
-i, --input | The directory containing input images. | Path to a folder |
--parts <N> | Number of parts to split each image into. | 1, 2, 3, 4, 6, 8, 9, 12, 16 |
Split images into 4 parts
editimg split -i ./images --parts 4