It's read straight into your browser's memory — not sent anywhere. There is no upload step.
The image is decoded and re-encoded by the graphics engine built into your browser, right on your machine.
The converted file is created locally and saved by your browser. The server only ever sent you the page.