I have a bunch of photos from my old iPad. I have a script that create thumbnail photos from these images.
The goal is to resize the image into 150x125 and crop if necessary to achieve the result.
const options: ResizeOptions = {
width: 150,
height: 125,
fit: 'cover',
}