OFFLINE-GmbH / oc-responsive-images-plugin

Adds reponsive images capabilities to October CMS
MIT License
45 stars 26 forks source link

Webp converter #82

Closed mtellenbach closed 2 years ago

mtellenbach commented 3 years ago

Created an artisan command to convert basic images to webp-format.

The command contains the following structure:

php artisan responsiveimages:convert
   --format=webp                            # optional, default "webp"
   --include=storage/app/media              # required
   --include=storage/app/uploads         
   --include-since=""                       # optional, strtotime-compatible string
   --size-limit=500                         # optional, default 500
   --exec-time-limit=300                    # optional, default 60
   --converter-path=/usr/local/bin/cwebp    # optional, default "cwebp"
   --converter-args="-lossless -mt"         # optional, default ""

The command supports only the use of "cwebp" at this point.