unikent / programmes-plant

A comprehensive solution for the management of university programmes, that produces an XCRI feed.
Other
7 stars 4 forks source link

Artisan task to resize thumbnails proportionally to fit within max width value #985

Closed sy238-unikent closed 4 years ago

sy238-unikent commented 4 years ago

php artisan resizethumbnails --env=local

by default will use the NEW config settings in config/images.php (or config/local/images.php) for thumbnail_max_width.

You can override this by providing a max width, e.g.:

php artisan resizethumbnails 320 --env=local

NOTE that the artisan command will resize thumbnails for ALL images, both for programmes AND for profiles.