thedevdojo/voyager

Add fit features for images

Open

#3590 opened on Sep 28, 2018

View on GitHub
 (6 comments) (1 reaction) (0 assignees)PHP (11,817 stars) (2,652 forks)batch import
help wantedtype:enhancement

Description

We've got an option to crop, resize and upsize an image. However, not always it's possible to predict in what orientation the user will upload an image so that rules resize: 300x300 and crop: 300x300 will result in either square image or rectangle because an image is landscape-oriented. Therefore there is a need in fit like in Intervention/Image so that it will be needed size always. Please, consider to add this option to image fields.

Contributor guide