question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Well, i’ve just been trying to integrate it, so far i’ve found some (outdated?) docs: http://frescolib.org/docs/progressive-jpegs.html#_

PipelineDraweeController controller = Fresco.newControllerBuilder() .setImageRequest(requests)    
.setOldController(mSimpleDraweeView.getOldController()) .build();

I had to cast the new controller builder to PipelineDraweeController, getOldController() is not a function defined in DraweeView, i only have ‘getController’. Further to that, i finally got it to compile, only to be given ‘SimpleDraweeView was not initialized!’ I dont see anywhere on the Getting started that i need to do any special initialization other than the usual view finding? edit Changing to a plain ‘DraweeView’ stopped the crash however, I’m also not sure how to actually start the image load?

            ProgressiveJpegConfig pjpegConfig = new ProgressiveJpegConfig() {
            @Override
            public int getNextScanNumberToDecode(int scanNumber) {
                return scanNumber + 2;
            }

            public QualityInfo getQualityInfo(int scanNumber) {
                boolean isGoodEnough = (scanNumber > 5);
                return ImmutableQualityInfo.of(scanNumber, isGoodEnough, false);
            }
        };
        ImagePipelineConfig config = ImagePipelineConfig.newBuilder(DetailsActivity.this)

                .setProgressiveJpegConfig(pjpegConfig)

                .build();
        Fresco.initialize(DetailsActivity.this, config);

        ImageRequest request = ImageRequestBuilder
                .newBuilderWithSource(getUriFromUrl(url))
                .setProgressiveRenderingEnabled(true)
                .build();
        PipelineDraweeController controller =  (PipelineDraweeController)       Fresco.newDraweeControllerBuilder()
                .setImageRequest(request)
                .setOldController(i.getController())
                .build();

        i.setController(controller);

From the looks of all your docs, ‘setController’ is that poiint, but the javadoc has no mention of this and i seem to see no loading occurring?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
IlyaEremincommented, Mar 28, 2015

I have same issue with image loading. I use SimpleDraweeView.setImageURI(Uri.parse(uriStr)) with next link: http://az735069.vo.msecnd.net/posts/25_8cb72bffeee54d50bc075be2ad3cf56a_o.jpg and I see only placeholder (picasso loads this image fine) But with this link: https://freeme.blob.core.windows.net/posts/25_2576773736e8485f9698eb126de3960e_o image is loaded fine. I think the issue may be related with “.jpg” ending.

0reactions
broakenmediacommented, Mar 28, 2015

Well, i went ahead and added the OKHttp just to see if it made any difference, only to hit another issue:

java.lang.NoSuchMethodError: com.squareup.okhttp.OkHttpClient.open at com.squareup.okhttp.OkUrlFactory.open(OkUrlFactory.java:44)

using: compile ‘com.facebook.fresco:imagepipeline-okhttp:0.1.0+’

Read more comments on GitHub >

github_iconTop Results From Across the Web

Template:Multiple issues - Wikipedia
This template tags articles or sections for multiple maintenance issues and then displays the alerts in a single box, as an alternative to...
Read more >
Edit multiple issues at the same time | Jira Work Management ...
Move Jira Work Management Cloud issues to a new project, assign issues to someone else, or change the issue status in a few...
Read more >
47 Words and Phrases for Multiple Issues - Power Thesaurus
Synonyms for Multiple issues · many issues · numerous issues · various issues · several issues · number of issues · complex issues...
Read more >
How to create multiple issues - Jira for Bob Swift Atlassian Apps
Configure various options as usual. Find the Create multiple issues parameter. Add a comma-separated list of entries. Processing will: Look at ...
Read more >
Cloning Multiple Issues - ALM Works Help Center
If you need to clone only some of the issue in the structure, you can use the following procedure: Select issues you'd like...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found