{"action":"created","issue":{"url":"https://api.github.com/repos/desmond1121/Fresco-Source-Analysis/issues/4","repository_url":"https://api.github.com/repos/desmond1121/Fresco-Source-Analysis","labels_url":"https://api.github.com/repos/desmond1121/Fresco-Source-Analysis/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/desmond1121/Fresco-Source-Analysis/issues/4/comments","events_url":"https://api.github.com/repos/desmond1121/Fresco-Source-Analysis/issues/4/events","html_url":"https://github.com/desmond1121/Fresco-Source-Analysis/issues/4","id":134513832,"number":4,"title":"How to get preview image from AnimatedDrawable","user":{"login":"ChenSiLiang","id":9266250,"avatar_url":"https://avatars.githubusercontent.com/u/9266250?v=3","gravatar_id":"","url":"https://api.github.com/users/ChenSiLiang","html_url":"https://github.com/ChenSiLiang","followers_url":"https://api.github.com/users/ChenSiLiang/followers","following_url":"https://api.github.com/users/ChenSiLiang/following{/other_user}","gists_url":"https://api.github.com/users/ChenSiLiang/gists{/gist_id}","starred_url":"https://api.github.com/users/ChenSiLiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChenSiLiang/subscriptions","organizations_url":"https://api.github.com/users/ChenSiLiang/orgs","repos_url":"https://api.github.com/users/ChenSiLiang/repos","events_url":"https://api.github.com/users/ChenSiLiang/events{/privacy}","received_events_url":"https://api.github.com/users/ChenSiLiang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-18T08:36:31Z","updated_at":"2016-02-26T03:09:38Z","closed_at":null,"body":"I use the code to get a `AnimatedDrawable`\r\n```java\r\nif (image instanceof CloseableAnimatedImage) {\r\n            AnimatedImageResult img = ((CloseableAnimatedImage) image).getImageResult();\r\n            AnimatedDrawableFactory animatedDrawableFactory = Fresco.getImagePipelineFactory().getAnimatedDrawableFactory();\r\n            if (animatedDrawableFactory != null) {\r\n                AnimatedDrawableOptions options = new AnimatedDrawableOptionsBuilder().setForceKeepAllFramesInMemory(true).setAllowPrefetching(true).build();\r\n                AnimatedDrawable animatedDrawable = animatedDrawableFactory.create(img, options);\r\n                if (animatedDrawable != null) {\r\n                    return animatedDrawable;\r\n                }\r\n            }\r\n```\r\nand I want to get a preview image for this `AnimatedDrawable`\r\nI try `renderFrame()` but did not work\r\nhope reply soon!Thanks!"},"comment":{"url":"https://api.github.com/repos/desmond1121/Fresco-Source-Analysis/issues/comments/189090722","html_url":"https://github.com/desmond1121/Fresco-Source-Analysis/issues/4#issuecomment-189090722","issue_url":"https://api.github.com/repos/desmond1121/Fresco-Source-Analysis/issues/4","id":189090722,"user":{"login":"desmond1121","id":11497762,"avatar_url":"https://avatars.githubusercontent.com/u/11497762?v=3","gravatar_id":"","url":"https://api.github.com/users/desmond1121","html_url":"https://github.com/desmond1121","followers_url":"https://api.github.com/users/desmond1121/followers","following_url":"https://api.github.com/users/desmond1121/following{/other_user}","gists_url":"https://api.github.com/users/desmond1121/gists{/gist_id}","starred_url":"https://api.github.com/users/desmond1121/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desmond1121/subscriptions","organizations_url":"https://api.github.com/users/desmond1121/orgs","repos_url":"https://api.github.com/users/desmond1121/repos","events_url":"https://api.github.com/users/desmond1121/events{/privacy}","received_events_url":"https://api.github.com/users/desmond1121/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T03:09:38Z","updated_at":"2016-02-26T03:09:38Z","body":"@ChenSiLiang 这个场景有点复杂，祝你好运~ 有啥图片加载方面的问题可以一起研究:)"}}