grzegorznittner / chanu

Chanu - 4chan for Android
https://play.google.com/store/apps/details?id=com.chanapps.four.activity
GNU General Public License v3.0
73 stars 32 forks source link

Images that are too tall won't load in gallery #468

Open Lightsockie opened 8 years ago

Lightsockie commented 8 years ago

(https://cloud.githubusercontent.com/assets/1125399/12481491/188e29c4-bff6-11e5-9361-ef51c86c467e.png) Whenever you view a tall image in gallery mode the picture just becomes a blank white rectangle. It seems to only be in gallery mode, because beforw I click the image in the thread, its thumbnailed properly (https://cloud.githubusercontent.com/assets/1125399/12481534/5abd9ca8-bff6-11e5-9343-91223327c69c.png) You can still "manipulate" the image and zoom in/out, but its just blank

I'm currently using the newest build (2.0.22) on a Oneplus, but this is a problem I've noticed since I first started using Chanu forever ago. Think the problem has appeared on a S2 and S4, as well.

johnarleyburns commented 8 years ago

I think this is because it takes up more memory than we have available. Memory handling for images has improved with the LruCache class, we should probably adopt this long-term:

https://developer.android.com/training/displaying-bitmaps/cache-bitmap.html

On Thu, Jan 21, 2016 at 7:24 AM, Lightsockie notifications@github.com wrote:

[image: screenshot_2016-01-21-03-47-00] https://camo.githubusercontent.com/00062c67d1a8d597fe4bcf0df923425eb9e74712/68747470733a2f2f636c6f756467697468756275736572636f6e74656e74636f6d2f6173736574732f313132353339392f31323438313439312f31383865323963342d626666362d313165352d393336312d656635316338366334363765706e67 Whenever you view a tall image in gallery mode the picture just becomes a blank white rectangle It seems to only be in gallery mode, because beforw I click the image in the thread, its thumbnailed properly [image: screenshot_2016-01-21-03-46-56] https://camo.githubusercontent.com/023bf25848aca4799f04de58b9453617176bafe1/68747470733a2f2f636c6f756467697468756275736572636f6e74656e74636f6d2f6173736574732f313132353339392f31323438313533342f35616264396361382d626666362d313165352d393334332d393132323333323763363963706e67 You can still "manipulate" the image and zoom in/out, but its just blank

I'm currently using the newest build (2022) on a Oneplus, but this is a problem I've noticed since I first started using Chanu forever ago Think the problem has appeared on a S2 and S4, as well

— Reply to this email directly or view it on GitHub https://github.com/grzegorznittner/chanu/issues/468.