justijndepover/crop-images

Bulk crop images to a specific format

1.2.0 2020-11-05 13:45 UTC

This package is auto-updated.

Last update: 2024-04-06 01:00:26 UTC


README

Latest Version on Packagist Software License Total Downloads

Installation

You can install the package with composer

composer global require justijndepover/crop-images

Usage

crop [source] [width] [height] [-w, --whitespace]

This will generate a new folder in your current directory: [width]x[height] with all the cropped images from your source directory.

Arguments

  • source: The source directory
  • width: The width of the new images
  • height: The height of the new images
  • whitespace: add whitespace around the images, defaults to false

If you provide one of the width or height arguments with null, only a resize will happen:

crop originals 1200 null

will generate images with a width of 1200 inside: /1200x, height is variable.

Security

If you find any security related issues, please open an issue or contact me directly at justijndepover@gmail.com.

Contribution

If you wish to make any changes or improvements to the package, feel free to make a pull request.

License

The MIT License (MIT). Please see License File for more information.