Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

png in gif-drawable not show #53

Closed
wangzhiyuan opened this issue Apr 17, 2014 · 1 comment
Closed

png in gif-drawable not show #53

wangzhiyuan opened this issue Apr 17, 2014 · 1 comment

Comments

@wangzhiyuan
Copy link

log :Data is not in GIF format

code: public void display(String uri,Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom) {

if(!uri.endsWith(".gif"))
imageAware.setImageBitmap(bitmap);
else{
File file = DiscCacheUtils.findInCache(uri, ImageLoader.getInstance().getDiscCache());
try {
Lg.e("file=============" + file.getAbsolutePath() + "---------" + file.exists());
GifDrawable gf = new GifDrawable(file);
imageAware.setImageDrawable(gf);
} catch (IOException e) {
e.printStackTrace();
}
}}
}

@koral--
Copy link
Owner

koral-- commented Apr 17, 2014

It's not a bug. GifDrawable supports GIF files only as the name suggests.

@koral-- koral-- closed this as completed Apr 17, 2014
@niplus niplus mentioned this issue Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants