dev-master
9999999-devCommand line tool for the Imagine library using the Symfony2 Console component
The Requires
command line image manipulation graphics image processing drawing
Command line tool for the Imagine library using the Symfony2 Console component
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)
add this to your composer.json
, (*2)
require: { "imagine_cli/imagine_cli": "dev-master" }
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
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 an image to 400 pixels wide, and 300 pixels high, (*5)
bin/imagine_cli resize source.png destination.png --width=400 --height=300
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
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)
Command line tool for the Imagine library using the Symfony2 Console component
command line image manipulation graphics image processing drawing