fresco icon indicating copy to clipboard operation
fresco copied to clipboard

CloseableAnimatedImage can return a bytes ?

Open 06peng opened this issue 11 years ago • 5 comments

I want to use my custom gif view,so i need a bytes.

06peng avatar Jun 25 '15 08:06 06peng

The bytes of an individual frame, or of the entire animation? We only expose the individual frames.

What is your custom GIF view? Why do you need the bytes? Can you try using manual playing?

tyronen avatar Jun 25 '15 12:06 tyronen

Thanks for reply, I had understand.but I have another problem, My network is very bad and my GIF image is more than 2M,when imageview is loading image,I want to get a progress value to show to user.But I can not found anything about this on the docs.

06peng avatar Jun 25 '15 12:06 06peng

I would suggest not to make your users download a 2M image over a bad network!

We do have support for showing a progress bar: http://frescolib.org/docs/progress-bars.html#_

tyronen avatar Jun 26 '15 09:06 tyronen

Is there a way to know the size of an image just before downloading starts?

leeyikjiun avatar Feb 06 '16 01:02 leeyikjiun

No. Unless your server has another uri you can use to query it.

tyronen avatar Feb 10 '16 23:02 tyronen