skgmn / RapidDecoder

Simplified bitmap decoding and scaling for Android
Apache License 2.0
261 stars 43 forks source link

Out of memory #3

Open ghost opened 9 years ago

ghost commented 9 years ago

Hi all, I using regional decoding as: Bitmap bitmap = BitmapDecoder.from("abc.jpeg") .region(0, 0, 1080, 1920) .scaleBy(1) .decode(); This for image has high solution (14400 × 9600). App is crashed. How to fix it? Thanks

skgmn commented 9 years ago

I think it's a same bug with #2. Check if you are using the latest version.

ghost commented 9 years ago

Yes, it is latest version

danielgomezrico commented 9 years ago

Any updates on this?

skgmn commented 9 years ago

I still don't know what the problem is but some bugs have been fixed which are related to jpeg regional decoding. It's still in the develop branch and I will release a new version soon so that you can test the case.

pba-cra commented 8 years ago

you load a too big image,I think when you load a big bitmap,you should load justBounds caculate the bitmap size with ARGB8888.if too big should decode insimpleSize