alexvasilkov / GestureViews

ImageView and FrameLayout with gestures control and position animation
Apache License 2.0
2.37k stars 384 forks source link

java.lang.RuntimeException: Canvas: trying to draw too large(142674480bytes) bitmap. #180

Closed qiandailu closed 1 year ago

qiandailu commented 1 year ago

http://cdn.5144wan.com/data/upload/image/20210310/ed2455d01fe349bf9a209ea606996364.jpg

alexvasilkov commented 1 year ago

This issue was reported a number of times: https://github.com/alexvasilkov/GestureViews/issues?q=is%3Aissue+too+large

The answer is still the same: this library does not render images, it just controls ImageView's drawing matrix. If you set a huge bitmap then the app will crash. You might want to check your image loading library doesn't upscale images and that original image is small enough.