8000 GitHub - flug/image-processor: Image Processor with Amazon S3
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

flug/image-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Processor

    composer install 

install inotify-tools

    apt install inotify-tools #debian or #ubuntu etc... 

define driver image process parameters.yml:

        image_driver: imagick  #or gd
      

define S3 credentials:

        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:

            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

    bin/console image:process --path=/Images/myimage.png --profile=property --outputDirectory=/tmp/images -vvv

listener directory for sync with s3

    bin/console -vvv s3:transport -d /tmp/images

push all images on s3

    bin/console  sync:directory -d /tmp/images

Releases

No releases published

Packages

No packages published

Languages

0