Pixels or percentage
With “Keep aspect ratio” on, fill only the width (or only the height) and the other side follows. Fill both and the image fits inside that box. Percentage mode scales everything by the same amount: 50% halves both sides.
Formats
Each image keeps its format by default (JPG stays JPG, PNG stays PNG). You can also convert while resizing, for example to WebP for websites.