Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Change BitmapUtil.MAX_BITMAP_SIZE dynamically based on the device #916
Could you help us debugging this by capturing debug logs ? Here is the description how to do this: http://frescolib.org/docs/troubleshooting.html#setting-up-logcat
There are several causes related to this issue:
Source image's aspect ratio
The image's dimension that you have uploaded is 440x4200px, which is too long. I recommend making it smaller to fit into at least 1:2 (width:height), for example, 440*700 per each image, sliced in six.
Fresco's max supported width/height in resizing
@michalgr Is there any plan to make
@michalgr It depends on each device, so it can't be defined as a constant.
I'm using the modified version of fresco, which can support larger image after resizing the source image.
However, before using this method, developer must sure that given
So according to @tyronen :
I wouldn't make the BitmapUtil.MAX_BITMAP_SIZE user-configurable, but option two could be doable: adjusting the size automatically on the first draw call.
To be fair, this would be very low on our priority list but we're always happy to see a pull request :) @kunny : would you like to create one?