fresco icon indicating copy to clipboard operation
fresco copied to clipboard

Why fresco don't open downsample feature by default, is there any disadvantage?

Open sidneywang opened this issue 11 years ago • 5 comments

I think downsmaple feature cost less than resize, and android support it in skia, why Fresco didn't support before and closed by default now?

sidneywang avatar Nov 18 '15 09:11 sidneywang

http://frescolib.org/docs/resizing-rotating.html#_ We're still in the stage of experimenting downsampling.

Depending on your need, downsample may be better to use in you case.

aagnes-zz avatar Nov 18 '15 10:11 aagnes-zz

My doubt is why fresco didn't support it at first. After all downsample is supported in android natively.

sidneywang avatar Nov 18 '15 10:11 sidneywang

There's limited for downsampling which you can find online as well. Downsampling might not cover what the use cases.

aagnes-zz avatar Nov 18 '15 11:11 aagnes-zz

It will be appreciated if you give me a url. ;)

sidneywang avatar Nov 18 '15 12:11 sidneywang

I tested resize in fresco and inSampleSize in android, the picture effort is totally same. Actually they both call libjpeg function in a same way. I am full of doubt why Freco do that.

sidneywang avatar Nov 19 '15 07:11 sidneywang