bumptech / bumptech/glide

I use glide 4.7.1,why Ican not load success this picture

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

Description


![img_0](https://user-images.githubusercontent.com/19651932/102455791-26244b80-407b-11eb-9d0e-e1e79ec339c6.png)

Glide.with(this).asBitmap().load(picPath)
.into(new SimpleTarget(720, 1280) {
@Override
public void onResourceReady(@NonNull Bitmap resource, @Nullable Transition transition) {
isLoadSucess = true;
LogUtil.logE("resource width,height:",resource.getWidth()+","+resource.getHeight());
if(img!=null){
img.setImageBitmap(resource);
}
}
});
it can not load successful
this picture is only 432X118 ,but when I use top code,log print :resource width,height:4686,1280
and then OpenGLRenderer print:Bitmap too large to be uploaded into a texture (4686x1280, max=4096x4096),but why,I has user 720X1280,i Invalid!
but i user this bottom code ,it is successful
Glide.with(this).asBitmap().load(picPath).into(img);//img is ImageView

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.