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

RGB_565 is used in GIFs by default #2396

Closed
SuSuWoYaYa opened this issue Sep 14, 2017 · 1 comment
Closed

RGB_565 is used in GIFs by default #2396

SuSuWoYaYa opened this issue Sep 14, 2017 · 1 comment
Milestone

Comments

@SuSuWoYaYa
Copy link

SuSuWoYaYa commented Sep 14, 2017

Glide Version 4.1.1:

**not use integration library **:

Coolpad/7320 4.2.2:

** the default DecodeFormat is still DecodeFormat.PREFER_RGB_565, the gif turn to green, but in glide 3.7, when you config it to ARGB_8888 , the gif isn't trun to green**:

Glide load line / GlideModule (if any) / list Adapter code (if any):

@GlideModule
public class MyAppGlideModule extends AppGlideModule {
    @Override
    public void applyOptions(Context context, GlideBuilder builder) {
        // nothing here
    }
}

Layout XML:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:background="@color/list_background"
    >
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:background="@drawable/list_item_shape"
        android:layout_margin="5dp"
        >

 <ImageView
        android:id="@+id/imageView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:paddingLeft="16dp"
        android:paddingRight="16dp"
        android:layout_gravity="center"
        android:scaleType="fitXY"
        android:adjustViewBounds="true"/>
    </LinearLayout>
</LinearLayout>

LogCat:

this LogCat was show in glide 3.7.0 too, but everything is ok.
@sjudd
Copy link
Collaborator

sjudd commented Sep 14, 2017

@sjudd sjudd changed the title the default DecodeFormat is not working RGB_565 is used in GIFs by default Sep 14, 2017
@sjudd sjudd added this to the 4.3 milestone Oct 13, 2017
@sjudd sjudd closed this as completed in 6f91031 Oct 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants