Skip to content

justijndepover/crop-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crop Images

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.