Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Bitmap.Config.RGB_565 in Fresco.initialize and Postprocessor #10

Open
erva opened this issue Apr 13, 2016 · 1 comment
Open

Using Bitmap.Config.RGB_565 in Fresco.initialize and Postprocessor #10

erva opened this issue Apr 13, 2016 · 1 comment

Comments

@erva
Copy link

erva commented Apr 13, 2016

I'm using such code for initialize Fresco:

SimpleProgressiveJpegConfig jpegConfig = new SimpleProgressiveJpegConfig();
        ImagePipelineConfig config = OkHttpImagePipelineConfigFactory.newBuilder(context, new OkHttpClient())
                .setProgressiveJpegConfig(jpegConfig)
                .setBitmapsConfig(Bitmap.Config.RGB_565)
                .setResizeAndRotateEnabledForNetwork(true)
                .build();
        Fresco.initialize(context, config);

BlurPostprocessor using Bitmap.Config.ARGB_8888 and this parameter is hardcoded.
As result if user using not default Bitmap.Config in initialize - BlurPostprocessor would not work.
I have not checked other Postprocessor.

As a solution add to BlurPostprocessor constructor Bitmap.Config as parameter.
Any info log would be very useful.

@shf981862482
Copy link

i have same problem ,and don't use setBimapsConfig ,it is work ,but use this how to work ,do you have way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants