fresco icon indicating copy to clipboard operation
fresco copied to clipboard

some questions about fresco

Open JoneWeng opened this issue 11 years ago • 23 comments

I have some questions about fresco. I'm working on an app which is similar to facebook-- sharing words, images, etc.

  1. How can we load the big pictures that must be load and bigger than 4096*4096? I have try to set at ResizeOption, but it's useless.

2.When definite the view in fresco, some photos are transparent (getTopDraweeale). After setting the holderImage, some pictures are holderimage, and the others are target image. Really a bad experience.

qq 20150515150644

3tql7 09 6j_y_nn6_6g ub

3.when the listview sliding, it frequently appears gc and obvious memory thrashing that lead to sliding stuck ( don't exclude the problem of GPU drawing slowly). Is this problem caused by fresco memory cache or second memory cache? If yes, how can I configure the cache. Hope can get your reply soon. Thanks.

JoneWeng avatar May 15 '15 07:05 JoneWeng

problem 2 is customer view ,we want that can show single or many picture。

JoneWeng avatar May 15 '15 07:05 JoneWeng

So if I understand correctly, you want to load a picture that is bigger than 4096 * 4096? What size are you trying to resize it to?

for 2, can you give a code snippet and also the urls that are failing to load? I wouldn't expect to see these transparent images.

IanChilds avatar May 15 '15 09:05 IanChilds

Problem 1: picture height (4096+), width of uncertain (1000-), I want to 400*1000 about, there is no similar BitmapOption.inSampleSize API

JoneWeng avatar May 15 '15 09:05 JoneWeng

same question

ImageRequestBuilder.newBuilderWithSource(uri).setResizeOptions(new ResizeOptions(100, 100)).build() 

the param ResizeOptions is not useful.

lushan1314 avatar May 15 '15 10:05 lushan1314

version : 0.4.0

lushan1314 avatar May 15 '15 10:05 lushan1314

What is the image format? Currently only JPEGs get resized

IanChilds avatar May 15 '15 10:05 IanChilds

ok,i see. Here have JPEGS ,png, gif ... look like only use Postprocessor can solve it.

lushan1314 avatar May 15 '15 10:05 lushan1314

it is jpegs. what is Postprocessor ? don't see it in fresco doc .

JoneWeng avatar May 15 '15 14:05 JoneWeng

Is there any way that I can get this picture(big),sorry i'm chinese, english is so bad.Help me to explain the problem 2, 3. Under the upload customer view code .

JoneWeng avatar May 15 '15 14:05 JoneWeng

qq 20150515225903

qq 20150515225922

JoneWeng avatar May 15 '15 15:05 JoneWeng

qq 20150515225952

JoneWeng avatar May 15 '15 15:05 JoneWeng

我不知道你遇到什么问题了,显示大图会有问题吗?他这个自定义holder我没用,我建议如果不行就别用。你只用加载那块就好了

lushan1314 avatar May 18 '15 06:05 lushan1314

不是,理论上 图片不可能加载4096*4096以上的,但是有这样的需求,不知道怎么解决。

JoneWeng avatar May 18 '15 07:05 JoneWeng

他文档里有个后处理器,也就是图片加载完之后可以对图片做处理。Postprocessor

lushan1314 avatar May 18 '15 09:05 lushan1314

哥们,我也遇到这个问题了。确实加载大图会有问题,加载不出来。 我有的sd卡的图片有的一张有4m的大小,一个页面多次加载会出现加载不出来。 由于这里图片格式是jpeg,所以加上ResizeOptions暂时解决了。其他格式肯定有问题。

你这边后来有找到什么方法没?

我想应该是这样的: 用ResizeOptions他就直接缓存处理后大小的图片,如果不用,直接缓存原图,但是原图太大,所以频繁的清除cache。

lushan1314 avatar May 20 '15 06:05 lushan1314

You two guys are really funny,aren't you? So you are from the same place —— the Middle Kingdom!

Freedom000 avatar May 20 '15 08:05 Freedom000

so what

JoneWeng avatar May 20 '15 10:05 JoneWeng

Ok the issue with 4096x4096 has since been fixed. Latest Fresco will always resize the image to be less than 2048x2048 which is guaranteed to load across all devices.

For the transparency issue, can you show:

  • what is the placeholder drawable? It looks like it is transparent
  • what is the actual image? same issue
  • how are you setting the controllers to the MultiDraweeHolder?

tyronen avatar Jun 22 '15 11:06 tyronen

Latest Fresco ? what version ?

JoneWeng avatar Jun 22 '15 17:06 JoneWeng

Of course, controller be setted to MultiDraweeHolder, Otherwise actual image not be showed. ok, I have a problem. I don't understand it. how redraw work in SimpleDraweeView ( what notify?), when image be load? i have to design can show multi image view, but this can't work . so i want put question to you ? i think the question is multi image,because each image is loaded, it needs to be invalidate view?
so i want know how redraw work in SimpleDraweeView ?

JoneWeng avatar Jun 22 '15 17:06 JoneWeng