Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flug/image-processor
Image Processor with Amazon S3
https://github.com/flug/image-processor
aws composer-project image-processing php s3-bucket
Last synced: about 1 month ago
JSON representation
Image Processor with Amazon S3
- Host: GitHub
- URL: https://github.com/flug/image-processor
- Owner: flug
- Created: 2017-09-11T08:48:30.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-25T09:36:30.000Z (about 7 years ago)
- Last Synced: 2024-06-11T19:05:05.746Z (5 months ago)
- Topics: aws, composer-project, image-processing, php, s3-bucket
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
## Image Processor
```bash
composer install
```
install inotify-tools
```bash
apt install inotify-tools #debian or #ubuntu etc...
```
define driver image process ```parameters.yml```:
```yamlimage_driver: imagick #or gd
```define S3 credentials:
```yaml
s3_key: mys3key
s3_secret: mys3 secret key
region: region of bucket
version: #version or latest
bucket_name: bucket name```
define many profiles in ```config.yml``` example:
```yaml
property:
- {width: 1600, height: null, quality: 100 }
- {width: 1280, height: null, quality: 100 }
- {width: 900, height: null, quality: 100 }
- {width: 600, height: null, quality: 100 }
- {width: 420, height: null, quality: 100 }
- {width: 300, height: null, quality: 100 }```
## Commands list:
### process your image
```bash
bin/console image:process --path=/Images/myimage.png --profile=property --outputDirectory=/tmp/images -vvv
```
### listener directory for sync with s3
```bash
bin/console -vvv s3:transport -d /tmp/images
```
### push all images on s3
```bash
bin/console sync:directory -d /tmp/images
```