You may be able to search for “PHP” and the concept, such as PHP exif image data.
Example:
https://www.php.net/manual/en/function.imagerotate.php
You may be able to rotate the image with exif data and then zoom it in the 360 viewer.
On the thread below, there is a long list of 360 image viewers.
If you get a working solution, please post the results. It would be good to get more PHP information on this site.