{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/fresco/issues/1092","repository_url":"https://api.github.com/repos/facebook/fresco","labels_url":"https://api.github.com/repos/facebook/fresco/issues/1092/labels{/name}","comments_url":"https://api.github.com/repos/facebook/fresco/issues/1092/comments","events_url":"https://api.github.com/repos/facebook/fresco/issues/1092/events","html_url":"https://github.com/facebook/fresco/issues/1092","id":144256308,"number":1092,"title":"Miss parseMetaData leading to  decode source(big) Bitmap Object","user":{"login":"huangjunkun","id":815609,"avatar_url":"https://avatars.githubusercontent.com/u/815609?v=3","gravatar_id":"","url":"https://api.github.com/users/huangjunkun","html_url":"https://github.com/huangjunkun","followers_url":"https://api.github.com/users/huangjunkun/followers","following_url":"https://api.github.com/users/huangjunkun/following{/other_user}","gists_url":"https://api.github.com/users/huangjunkun/gists{/gist_id}","starred_url":"https://api.github.com/users/huangjunkun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangjunkun/subscriptions","organizations_url":"https://api.github.com/users/huangjunkun/orgs","repos_url":"https://api.github.com/users/huangjunkun/repos","events_url":"https://api.github.com/users/huangjunkun/events{/privacy}","received_events_url":"https://api.github.com/users/huangjunkun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-29T12:56:16Z","updated_at":"2016-04-11T09:45:13Z","closed_at":"2016-04-11T09:45:13Z","body":"com.facebook.imagepipeline.producers.DecodeProducer.ProgressiveDecoder#ProgressiveDecoder\r\ncommit：a617d2e300b9de389e7f6f9d0e8e1f560d5cabe7\r\nFrom：Moved sample size calculations to DecodeProducer only\r\n\r\n            if (mDownsampleEnabled) {\r\n              ImageRequest request = producerContext.getImageRequest();\r\n              if (mDownsampleEnabledForNetwork ||\r\n                  !UriUtil.isNetworkUri(request.getSourceUri())) {\r\n                encodedImage.setSampleSize(DownsampleUtil.determineSampleSize(\r\n                    request, encodedImage));\r\n              }\r\n            }\r\n==================\r\nCorrect is follow ：\r\n\r\n          if (mDownsampleEnabled) {\r\n              ImageRequest request = mProducerContext.getImageRequest();\r\n              if (mDownsampleEnabledForNetwork ||\r\n                  !UriUtil.isNetworkUri(request.getSourceUri())) {\r\n                  if (!EncodedImage.isMetaDataAvailable(newResult)) {\r\n                      newResult.parseMetaData();\r\n                  }\r\n                  newResult.setSampleSize(DownsampleUtil.determineSampleSize(\r\n                    request, newResult));\r\n              }\r\n            }\r\n"}}