This is the error I am getting : java.lang.RuntimeException: Canvas: trying to draw too large(115781908bytes) bitmap.
Is there any way by which I can fix this without reducing the image quality?
CodePudding user response:
That isn't a 1.93 MB image. That's a 110MB image. The compressed size of the file isn't what matters, its the uncompressed size- which is 4*width*height
.
Why is your image so large, in terms of width and height? That's over 5300x5300. You need a smaller image. Reducing the quality wouldn't help, as the uncompressed size would be the same.
Edit: Fixed initial math where I was off by a suffix. However the math on the pixel size was correct.