Resizing the long edge is a quick way to meet social/CMS limits and speed up pages: fewer pixels mean less weight even at the same JPEG quality.
Set a max on the longer side (default 1920 px); proportions stay. No need to calculate the short side.
Upscaling is technically possible, but sharpness won’t appear: the tool is built for reducing. Files never leave the device.