Glide has error when try to load more than 5MB png file

47 views
Skip to first unread message

이권주

unread,
Nov 7, 2022, 8:33:51 AM11/7/22
to Glide
In Downsampler.java, 

int orientation = imageReader.getImageOrientation,

In Glide it use ExifInterface to get ImageOrientation when we load png file.

But we try to load more than 5MB file,

In the process ExifInterface analyze DataStream, 

Because we use limited RecycleableBufferedInputStream(it has maximum 5MB)

It throw error message( "Mark has been invalidated~") because it set maximum buf size 5MB

You can easily test by using this image file "https://www.sample-videos.com/img/Sample-png-image-5mb.png"

When I tested after set orientation to -1(default value) without using Exifinterface

It loaded image normally.

It's same issue with #4517 (https://github.com/bumptech/glide/issues/4517)

Please check this issue 


Reply all
Reply to author
Forward
0 new messages