Shrink only larger images to a rectangle of specified dimensions inside a page with a specific size
img2pdf path/to/image.ext --pagesize 30cmx20cm --imgsize 10cmx15cm --fit shrink --output path/to/file.pdf