@pratik I didn’t build any conversion into that shortcut for simplicity’s sake. It just uploads in the original’s file format.

But here’s a special version just for you that gives an option to choose between PNG and JPEG each time. www.icloud.com/shortcuts...
(Fair warning, it’s untested.)