bumptech / bumptech/glide

HEIF/HEIC images are loaded so SLOW

Open
#4,608 4 comments 6 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

**Glide Version**:
4.12.0

**Device/Android Version**:
Tried in a variety of devices from Samsung(10, 20, Note...) to Pixel

**Issue details / Repro steps / Use case background**:
When loading HEIF/HEIC images with glide it loads images so slow and sometimes makes the device freeze. This works fine if there are only a few images. But when I am building a Gallery App which shows a grid of pictures (As in Samsung Gallery or Google Photos), Glide takes seconds to load heif/heic images onto ImageView. Some [heif images](https://filesamples.com/formats/heif) even don't show at all.

**Glide load line / `GlideModule` (if any) / list Adapter code (if any)**:
Within my RecyclerView Adapter I load images as below
```kotlin
Glide.with(imageView)
.asBitmap()
.load(uri)
.thumbnail(0.1f)
.into(imageView)
```
So my question is how we should load heif/heic images with Glide and how to make it faster with what configurations. A simple guide would be really beneficial.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.