fusic / imgin
Image manipulation directory
v0.1.2
2019-04-03 00:43 UTC
Requires
- php: >=5.3.2
- aws/aws-sdk-php: 3.*
- composer/installers: v1.0.21
- doctrine/cache: 1.4.0
- imagine/imagine: *
- nategood/commando: 0.2.7
Requires (Dev)
- phpunit/phpunit: 4.*
README
Install
$ composer -sdev create-project fusic/imgin ./app/webroot/img ... Writing lock file Generating autoload files Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]? Y $ chmod 777 ./app/webroot/img
Usage (File)
$ cp config.localfile.php config.php
Original image access
/img/foo/bar/large.jpg
Resized cache image access
/img/100x120/foo/bar/large.jpg
Clear cache image
$ php app/webroot/img/imgin.php clearcache /path/to/app/webroot/img/foo/bar/large.jpg
Clear all cache image
$ php app/webroot/img/imgin.php clearcache --all
Usage (S3)
$ cp config.s3.php config.php
Please edit the aws authentication information in config.php according to your environment.
Original image
https://s3-ap-northeast-1.amazonaws.com/s3-bucket-name/foo/bar/large.jpg
Original "cache" image access
/img/foo/bar/large.jpg
Resized cache image access
/img/100x120/foo/bar/large.jpg
Clear cache image
$ php app/webroot/img/imgin.php clearcache /path/to/app/webroot/img/foo/bar/large.jpg
Clear all cache image
TODO
Requirement
License
under MIT License