Change either the site default (if course is following the site default) or course 'image resize method' to 'Crop'.
Courses and course formats
Photos not filling up the grid -why
This discussion has been locked so you can no longer reply to it.