Assuming that you have an equirectangular image, these are the steps:
- Open the image using Photoshop:
- Change the image size (the height) to match the width. The result will be a square image:
- Flip it vertically:
- Finally, apply the filter “Polar Coordinates…”
- The result: