glide icon indicating copy to clipboard operation
glide copied to clipboard

HEIF/HEIC images are loaded so SLOW

Open musooff opened this issue 4 years ago • 4 comments

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 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

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.

musooff avatar Aug 06 '21 01:08 musooff