Pick up aspect ratio when uploading images to your server. Build under Laravel 5.2. To view a live demo, go here. To have the process fully explained, read this article.
Original image and uploaded image:
Make sure you have a running web server on your computer (for example xampp). Open your favorite CLI and move to the folder that will hold the project (typically C:\xampp\htdocs for xampp users). Then type the following commands:
First clone the repo
git clone https://github.com/jeanquark/uploadResizedImage.git
cd to the newly created folder and install required dependencies
composer update
copy .env.example file and save it as .env. Then generate application key
php artisan key:generate
Head over to the homepage and click the upload image link.