fresco icon indicating copy to clipboard operation
fresco copied to clipboard

Have Fresco generate thumbnails

Open iron-man-forever opened this issue 11 years ago • 6 comments

hi guys, i'm android developer who use fresco,but i have some problem when i use fresco~ i'm make a photo app, but the original image is too large and throw too many image exception, so i wanna control the imagePipeline to generate thumbnail(use MediaStore.Images.Media.insertImage) and load the thumbnail bitmap,but i didn't know how to do

iron-man-forever avatar Jul 09 '15 06:07 iron-man-forever

Have you tried Resizing?

plamenko avatar Jul 09 '15 09:07 plamenko

the Resizing just resize the image, but the list_view load image slowly if i load too many large photo(have not thumbnail)

iron-man-forever avatar Jul 09 '15 10:07 iron-man-forever

for example: the photo which take by Samsung Camera hasn't thumbnail, the fresco run slowly if i load the original photo(it isn't thumbnail in mobile), so i wanna imagePipeline generate thumbnail and load it

iron-man-forever avatar Jul 09 '15 10:07 iron-man-forever

We are working on improving the thumbnail support, but regardless of that, you should still specify the resize options. If you don't specify the resize options, Fresco doesn't know how big image you need and will return the original size which is probably not what you want for camera images.

plamenko avatar Jul 10 '15 12:07 plamenko

@plamenko @CaiHuan I have same problem~

String url= thumbnails://328914

name = "Screenshot_2016-03-08-16-54-45.png" path = "/storage/emulated/0/Pictures/Screenshots/Screenshot_2016-03-08-16-54-45.png" photoID = 328914

ikkyu0319 avatar Mar 11 '16 06:03 ikkyu0319

setDownsampleEnabled(true) in ImagePipelineConfig

s1rius avatar Mar 11 '16 08:03 s1rius