Method and assumptions
Resize and compress a photo, then convert it to JPG, PNG, or WebP. Processing happens entirely in the current browser and the selected image is not uploaded to our server. Transparent areas are filled with white when exporting to JPG.