I'm trying to make my photo sphere gallery with MVC C#. Is there any way to test an image that is a real sphere image? A library or something? I'm currently having an upload button and I save the image's path in the Database. But I would like to validate the image that it is a real sphere image. I was searching for hours but no luck...
Thank you!
Asked
Active
Viewed 206 times
0

Coder
- 886
- 1
- 12
- 28
-
I think only the human eyes are able to tell if an image is a panoramic shot – Daniel Cheung Feb 15 '16 at 09:21
-
There are some websites that hosts spheric images and they actually return an error if the image is not spheric – Coder Feb 15 '16 at 09:25
1 Answers
1
Ok, so I figured it out how to solve this. I found multiple solutions:
- Inspect the image's XMP data if it's available. The projection type equirectangular is enough for detection. There are some libraries that can be used to get EXIF, XMP,...metadata
- Inspect the picture size. Usually speric images have 2x1 ratio, so if you devide the image width with the image height you should get 2 or a number higher. I also add the limitation that image width should be greater then 1000px.

Coder
- 886
- 1
- 12
- 28