@Statamic uses the Glide library under the hood to resize and crop or adjust images.
https://glide.thephpleague.com/
Also worth taking a look if you need a solution for regular Laravel apps.
glide.thephpleague.comGlide - HTTP based image manipulationsWonderfully easy on-demand image manipulation library with an HTTP based API.
commit 729a73b