-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
large panorama image reading #16
Comments
I think I found the problem. imageio which is used to read data uses PIL as backend. PIL limits image size for security reasons (Decompression bomb protection) which causes an error when reading panoramas of very large size. The solution is to change the max pixel setting in PIL: from PIL import Image
Image.MAX_IMAGE_PIXELS = 1000000000 Also maybe it will be wise to change the readimc code to give more description of errors. For example in this case we could print the error and see that it's an issue with image size and not a corrupted mcd file. |
Correct, this is due to PIL's max. image size. Unfortunately, it is not straight-forward to catch this specific error in the |
Keeping this issue open as a reminder to document this |
What can be done is catch the exception, and geometrically keep on extending the MAX_IMAGE_PIXELS with a warning / logging; |
I have a mcd file with 3 panoramas. While trying to read the panoramas I get an error :
This is not an expected behavior because if I use MCD Viewer I'm able to read everything an nothing is corrupted.
Any suggestion what can cause this? (unfortunately I cannot share the data itself)
The text was updated successfully, but these errors were encountered: