<p dir="auto">I am trying to view image using Glide Library for some reason the background is coming up green/white.. I am checked the image URL the background is transparent. First time the images show up properly but when I open the APP again the images have green/white background. I am not sure why this is happening could be a bug?</p>
<p dir="auto">Here are the code:</p>
<p dir="auto">activityadapter.xml:</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;RelativeLayout
    android:id=&quot;@+id/abcd&quot;
    android:layout_width=&quot;120dp&quot;
    android:layout_height=&quot;120dp&quot;
    android:layout_centerHorizontal=&quot;true&quot;
    android:gravity=&quot;center_vertical&quot;&gt;

    &lt;ImageView
        android:id=&quot;@+id/grid_item_image&quot;
        android:layout_width=&quot;match_parent&quot;
        android:layout_height=&quot;wrap_content&quot;
        android:layout_centerHorizontal=&quot;true&quot;
        android:layout_centerInParent=&quot;true&quot;
        tools:ignore=&quot;ContentDescription&quot; /&gt;
&lt;/RelativeLayout&gt;"><pre class="notranslate">&lt;<span class="pl-ent">RelativeLayout</span>
    <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/abcd<span class="pl-pds">"</span></span>
    <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>120dp<span class="pl-pds">"</span></span>
    <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>120dp<span class="pl-pds">"</span></span>
    <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_centerHorizontal</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>
    <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">gravity</span>=<span class="pl-s"><span class="pl-pds">"</span>center_vertical<span class="pl-pds">"</span></span>&gt;

    &lt;<span class="pl-ent">ImageView</span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/grid_item_image<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>wrap_content<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_centerHorizontal</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>
        <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_centerInParent</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>
        <span class="pl-e">tools</span><span class="pl-e">:</span><span class="pl-e">ignore</span>=<span class="pl-s"><span class="pl-pds">"</span>ContentDescription<span class="pl-pds">"</span></span> /&gt;
&lt;/<span class="pl-ent">RelativeLayout</span>&gt;</pre></div>
<p dir="auto">activityAdapter.java: Put all the images inside listview:<br>
Has glide details from aDapter:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(DetailActivity.this)
    .load(pd.getImage())
    .diskCacheStrategy(DiskCacheStrategy.ALL)
    .fitCenter()
    .dontTransform()
    .crossFade()
    .into(imageProduct);"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-smi">DetailActivity</span>.<span class="pl-smi">this</span>)
    .<span class="pl-en">load</span>(<span class="pl-s1">pd</span>.<span class="pl-en">getImage</span>())
    .<span class="pl-en">diskCacheStrategy</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">ALL</span>)
    .<span class="pl-en">fitCenter</span>()
    .<span class="pl-en">dontTransform</span>()
    .<span class="pl-en">crossFade</span>()
    .<span class="pl-en">into</span>(<span class="pl-s1">imageProduct</span>);</pre></div>
<p dir="auto">Screenshot:</p>
<p dir="auto">Check the black marks: They have green background - It should be transparent which happens the first time it loads.</p>
<p dir="auto">{removed}</p>

<p dir="auto">Is this a bug or am I doing something wrong?</p>
<p dir="auto">This is the original image:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/784063/8439742/bbe02ae8-1f22-11e5-8676-c7a1d525782d.jpg"><img src="https://cloud.githubusercontent.com/assets/784063/8439742/bbe02ae8-1f22-11e5-8676-c7a1d525782d.jpg" alt="9k_" style="max-width: 100%;"></a></p>
<p dir="auto">This is the image rendered using Glide and ImageView:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/784063/8439751/cd1b0864-1f22-11e5-96c8-f3ee83b75f72.png"><img src="https://cloud.githubusercontent.com/assets/784063/8439751/cd1b0864-1f22-11e5-96c8-f3ee83b75f72.png" alt="screen shot 2015-06-30 at 12 16 04 pm" style="max-width: 100%;"></a></p>
<p dir="auto">I'm already using the ARGB_8888 option with the following initialization code:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new GlideBuilder(this).setDecodeFormat(DecodeFormat.PREFER_ARGB_8888);"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-smi">GlideBuilder</span>(<span class="pl-smi">this</span>).<span class="pl-en">setDecodeFormat</span>(<span class="pl-smi">DecodeFormat</span>.<span class="pl-c1">PREFER_ARGB_8888</span>);</pre></div>
<p dir="auto">Switching to Picasso does seem to resolve the problem. What might be wrong here?</p>