How the tool reaches the target
The image is tried at its original dimensions first, and the quality is adjusted until the file is as large as it can be without going over your target. If that isn't enough, width and height are reduced, always in proportion and never upwards.
JPG suits photographs and gives transparent originals a white background. WebP can preserve transparency and will often create a smaller file. The actual file size, dimensions and encoding quality appear before download.
