A Laravel app that resizes and optimizes images with Spatie's image package.
I have a static site for my blog, and I wanted more control over my image optimizations.
I use this app locally to optimize and resize my images before posting them.
I hope this repo helps if you're in a similar situation!
- Clone or fork this repo.
- Navigate to the root directory
- Copy
.env.example
to.env
. Update it with your config and point it to your database. - Run
composer install
to install Composer dependencies. - Run
npm install
to install the NPM dependencies. - Run
php artisan key:generate
to create the app key. - Run
php artisan migrate
to run the migrations. - Run
php artisan storage:link
to create a symbolic link between the storage and the public directories. - You're good to go!
This app is customized to my needs. So, please fork it and make your own changes if you'd like to add functionality.
Please open an issue if you find a bug!
Thank you to Spatie for their awesome image package!