Bitmap too large to be uploaded into a texture trying to set a large Bitmap in Android ImageView

In Android development, when I tried to set a large BitMap in ImageView, the following error occurred and the image was not displayed.

Bitmap too large to be uploaded into a texture (3120x4160, max=4096x4096)

When loading it into ImageView, it seemed possible to do it through the library, so I solved it safely using glide.

imageView.setImageBitmap(bitmap);
Glide.with(getContext()).load(bitmap).into(imageView);

bonus

Easy comparison of major Glide and Picasso with Android's Image loading library This time we adopted glide which is released more frequently

Recommended Posts

Bitmap too large to be uploaded into a texture trying to set a large Bitmap in Android ImageView
Steps to set a favicon in Rails
[Android] Inherit ImageView to create a new class
Draw a too beloved Mandelbrot set in Processing
[Android] Correct order to set Context in Dao
[Android / Java] Set up a button to return to Fragment
[Rails 6] How to set a background image in Rails [CSS]