facebook / fresco

An Android library for managing images and the memory they use.
https://frescolib.org/
MIT License
17.07k stars 3.75k forks source link

Fresco Resize does not work #2600

Open mkazemian opened 3 years ago

mkazemian commented 3 years ago

am trying to use fresco to load my images in Recyclerview, but I noticed that after scrolling a bit and adding new items, RecyclerView will lag. It looks like I have to use Resize but I still do not see any change in the resize code I write! Maybe I coded it wrong What do you think ?

holder.img_cover.aspectRatio = item.ratio.toFloat() val request = ImageRequestBuilder.newBuilderWithSource(Uri.parse(item.media)).setResizeOptions(ResizeOptions(50, 50)).build() holder.img_cover.controller = Fresco .newDraweeControllerBuilder() .setOldController(holder.img_cover.controller) .setControllerListener(MyControllerListener()) .setImageRequest(request) .setUri(item.media).build()

https://stackoverflow.com/questions/67383008/how-to-resize-images-with-fresco

stale[bot] commented 2 years ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "bug" or "enhancement" and I will leave it open. Thank you for your contributions.