bumptech / glide

An image loading and caching library for Android focused on smooth scrolling
https://bumptech.github.io/glide/
Other
34.67k stars 6.12k forks source link

GIF not loaded when the file path includes Korean name #3675

Open kyn6630 opened 5 years ago

kyn6630 commented 5 years ago

Glide Version: 4.9.0

Integration libraries: Many. But it have no relation with this issue.

Device/Android Version: Galaxy S10 / Android 9.0 (SDK 28)

Issue details / Repro steps / Use case background: I'm making chat app that can send the GIF file. I used some GIF files downloaded from website to test for sending image file ordinarily and I found the problem that the picture file named Korean(다운로드.gif) is not played well. It looks like bitmap because it show the first frame only. I did also test English(download.gif), Japanese(ダウンロード.gif) and Chinese(下载.gif) name and it worked well. In addition, I set the option "asGif" when load picture into ImageView and it worked well.

Not work:

Glide.with(context).load(imageFile).into(img_preview);

Work:

if (ext.equals("gif"))
    Glide.with(context).asGif().load(imageFile).into(img_preview);
else
    Glide.with(context).load(imageFile).into(img_preview);
stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.