i have local images unknown size. format jpeg. task resize fit max size 1280x960 keeping original aspect ratio , save new file low memory consumption. found out useful method in fresco lib: jpegtranscoder.transcodejpeg() operating streams. has scalenumerator param rules downsampling. how can original bitmap size fresco without full bitmap loading memory calculate scalenumerator value? injustdecodebounds in android bitmapfactory.options class
you should able use bitmaputil.decodedimensions(...) this.
Comments
Post a Comment