alwx / react-native-photo-view

Pinch-to-zoom view for React Native (both iOS and Android)
MIT License
815 stars 434 forks source link

Fix cannot display large image. #73

Closed fschai89 closed 7 years ago

fschai89 commented 7 years ago

I will get error when display large image that larger than OpenGL texture size.

OpenGLRenderer: Bitmap too large to be uploaded into a texture (3088x4128, max=4096x4096)

This is a quick fix that resize image to the maximum size that can fit into the maximum OpenGL texture size.

Step to reproduce error:

  1. Open any large resolution image with android device.
alwx commented 7 years ago

Wow, thank you very much. Merged.