Fresco Bitmap too large to BES uploaded into a texture

Source: Internet
Author: User

Fresco loading Picture method

Layout file introduced xmlns:fresco= "Http://schemas.android.com/apk/res-auto"

    <Com.facebook.drawee.view.SimpleDraweeViewAndroid:id= "@id/img_icon"Android:layout_width= "42.0dip"Android:layout_height= "42.0dip"Android:layout_marginleft= "12.0dip"Android:layout_margintop= "20.0dip"fresco:roundascircle= "true"Fresco:failureimage= "@drawable/my_face"Fresco:failureimagescaletype= "Centerinside"/>

Load Picture method

M.simpledraweeview.setimageuri (Uri.parse (IMAGEURL));

Load network pictures Everything is OK (network picture Test No more than 1M is displayed after the seven Qiniu storage is cropped)
Prompt bitmap too large to be uploaded into a texture when acquiring a local phone album
Fresco default is not to print log open as follows
New Hashset<>();        Requestlisteners.add (new  Requestlogginglistener ());         = Imagepipelineconfig.newbuilder (appContext)                // other setters                . Setrequestlisteners (requestlisteners)                . Build ();        Fresco.initialize (appContext, config);        Flog.setminimumlogginglevel (flog.verbose);

Search Bitmap too large to being uploaded into a texture keyword online said in application add android:hardwareaccelerated= "false" off hardware acceleration, personal feeling since as the most There must be a solution to the fire's fresco, so I found it on the website.

Http://www.fresco-cn.org/docs/requesting-multiple-images.html

There is such a property . Setlocalthumbnailpreviewsenabled(true)

This feature only supports local URIs and is JPEG picture format

If the local JPEG map has a thumbnail image of Exif, image pipeline can immediately return it as a thumbnail image. The Drawee thumbnail is displayed first, and the full, clear, large image is displayed after the decode is finished.

My understanding is that fresco to get the album's thumbnail is tested or not still displayed.

I changed the keyword search in front of the log. Fresco becomes fresco Bitmap too large to being uploaded into a texture

The first record in the results is http://stackoverflow.com/questions/33676807/fresco-bitmap-too-large-to-be-uploaded-into-a-texture.

Imagerequest request =Imagerequestbuilder.newbuilderwithsource (Uri.parse (IMAGEURL)). setprogressiverenderingenabled (true). setautorotateenabled (true). setlocalthumbnailpreviewsenabled (true). Setresizeoptions (Newresizeoptions (View.getlayoutparams (). Width, view.getlayoutparams (). Height). build (); Draweecontroller Controller=Fresco.newdraweecontrollerbuilder (). Setimagerequest (Request). Setoldcontroller (view.ge Tcontroller ()). Setautoplayanimations (true). build (); View.setcontroller (Controller);

Run test show normal done ^0^



Fresco Bitmap too large to BES uploaded into a texture

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.