ComfyUI custom node: upscale and crop in one. Five ways to ask for a size -- percent, factor, shortest side, longest side, megapixels -- all aspect-preserving and all working downwards too, plus a crop stage with the classic formats. The upscale model is picked by a widget, so there is no loader node to wire up.
https://github.com/metamountain/upscale-universal
git clone https://github.com/metamountain/upscale-universal
comfy node install comfyui-upscale-crop-universal