You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 28, 2020. It is now read-only.
A large image with size 427 * 7200 could not be displayed, and a warning message was thrown out:
OpenGLRenderer: Bitmap too large to be uploaded into a texture (427x7200, max=4096x4096)
Images in tweets are displayed into ImageViews by Picasso. Due to limit of OpenGL, the size of a texture could not go over a limited value (which depends on the device, e.g. 4096 on Nexus 5).
To solve this bug a compressor should be implemented to limit the size of images to be displayed.
The text was updated successfully, but these errors were encountered:
It turns out that the solution is quite easy: just to use fit() when loading an image using Picasso and the image will be resized to the dimensions of the target ImageView. centerCrop() should also be used to avoid stretching.
However the bug still exists with FrescoImageViewer as mentioned in stfalcon-studio/FrescoImageViewer#3. Maybe I should rewrite the image viewer.
A large image with size 427 * 7200 could not be displayed, and a warning message was thrown out:
Images in tweets are displayed into
ImageView
s by Picasso. Due to limit of OpenGL, the size of a texture could not go over a limited value (which depends on the device, e.g. 4096 on Nexus 5).To solve this bug a compressor should be implemented to limit the size of images to be displayed.
The text was updated successfully, but these errors were encountered: