<p dir="auto">Hi,</p>
<ul dir="auto">
<li>
<p dir="auto">I use glide to load gif, it can be loaded and displayed in ImageView, but the display is not normal.</p>
</li>
<li>
<p dir="auto">I use another open source project(<a href="https://github.com/koral--/android-gif-drawable">GifDrawable</a>) that also support gif, the gif can be loaded and displayed normally in ImageView.</p>
</li>
<li>
<p dir="auto">Use glide and gifdrawable to load gif effect is as follows.</p>
<table role="table">
<thead>
<tr>
<th>Use glide</th>
<th>Use gifdrawable</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://www.dropbox.com/s/doe062ghzpp5ryg/device-2015-09-18-113927.mp4?dl=0" rel="nofollow">https://www.dropbox.com/s/doe062ghzpp5ryg/device-2015-09-18-113927.mp4?dl=0</a></td>
<td><a href="https://www.dropbox.com/s/whuooxsn8wdd2kr/device-2015-09-18-114503.mp4?dl=0" rel="nofollow">https://www.dropbox.com/s/whuooxsn8wdd2kr/device-2015-09-18-114503.mp4?dl=0</a></td>
</tr>
</tbody>
</table>
</li>
<li>
<p dir="auto">I suspect this is a bug of glide.</p>
</li>
</ul>
<p dir="auto"><strong>Glide Version:</strong> 3.6.1<br>
<strong>Issue details:</strong><br>
While loading GIF's there is significant delay before showing <strong>only</strong> the second frame, and this happens only for the first loop, all the later loops goes with expected delay.</p>
<p dir="auto">So after doing some research, I thought it may be because Glide is resizing the frames, so I override resize operation using <code class="notranslate">override()</code>.</p>
<p dir="auto"><strong>Below is the Glide load line:</strong><br>
<code class="notranslate">Glide.with(this).load(trainingItem.getUrl()).asGif().override(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL).diskCacheStrategy(DiskCacheStrategy.SOURCE).into(draweeView);</code></p>
<p dir="auto">But still there is significant delay before showing the next frame for the very first loop.<br>
Any suggestions/pointers?</p>