2017 © Pedro Peláez
 

library imagine_cli

Command line tool for the Imagine library using the Symfony2 Console component

image

imagine_cli/imagine_cli

Command line tool for the Imagine library using the Symfony2 Console component

  • Friday, August 9, 2013
  • by wkjagt
  • Repository
  • 18 Watchers
  • 0 Stars
  • 1,615 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

ImagineCli

Command line interface for avalanche123/Imagine using the Symfony Console component. Mainly done to suit my own needs, so it may not have the features you need, but feel free to fork and send pull requests., (*1)

Installation

Using composer (only way for now)

add this to your composer.json, (*2)

require: {
    "imagine_cli/imagine_cli": "dev-master"
}

Usage

crop using all options

Crop source.png, starting at the pixel at x=20, y=20, and crop out a size 400 pixels wide and 300 pixels high and save as destination.png, (*3)

bin/imagine_cli crop source.png destination.png --cropx=20 --cropy=20 --cropwidth=400 --cropheight=300

all options are optional

Cropping can be done with only a couple of parameters set. For example, this crop will remove a 20 pixels from the left of the image, (*4)

bin/imagine_cli crop source.png destination.png --cropx=20

resize

Resize an image to 400 pixels wide, and 300 pixels high, (*5)

bin/imagine_cli resize source.png destination.png --width=400 --height=300

crop and resize

resize also takes the crop options so that the result of the crop will be resized. An example using all options:, (*6)

bin/imagine_cli resize source.png destination.png --width=400 --height=300 --cropx=20 --cropy=20 --cropwidth=400 --cropheight=300

More information

bin/imagine_cli help crop

and, (*7)

bin/imagine_cli help resize

I will add more commands and/or options as I need them. Need more now? Fork! :-) WORK IN PROGRESS!, (*8)

The Versions

09/08 2013

dev-master

9999999-dev

Command line tool for the Imagine library using the Symfony2 Console component

  Sources   Download

The Requires

 

command line image manipulation graphics image processing drawing