Typst already scales down images for me if either width or height exceed page dimensions (good!). However, in case of blank pages before a placed image, I would need to scale down that image even further (preferable not much), so I get at least a little bit of text content on that previous page.