{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/fresco/issues/655","labels_url":"https://api.github.com/repos/facebook/fresco/issues/655/labels{/name}","comments_url":"https://api.github.com/repos/facebook/fresco/issues/655/comments","events_url":"https://api.github.com/repos/facebook/fresco/issues/655/events","html_url":"https://github.com/facebook/fresco/issues/655","id":110961251,"number":655,"title":"imagePipeline.fetchEncodedImage with local image Uri (\"file://...\") throws exception","user":{"login":"MRusinov","id":15088286,"avatar_url":"https://avatars.githubusercontent.com/u/15088286?v=3","gravatar_id":"","url":"https://api.github.com/users/MRusinov","html_url":"https://github.com/MRusinov","followers_url":"https://api.github.com/users/MRusinov/followers","following_url":"https://api.github.com/users/MRusinov/following{/other_user}","gists_url":"https://api.github.com/users/MRusinov/gists{/gist_id}","starred_url":"https://api.github.com/users/MRusinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MRusinov/subscriptions","organizations_url":"https://api.github.com/users/MRusinov/orgs","repos_url":"https://api.github.com/users/MRusinov/repos","events_url":"https://api.github.com/users/MRusinov/events{/privacy}","received_events_url":"https://api.github.com/users/MRusinov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/fresco/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-12T12:08:27Z","updated_at":"2016-01-22T01:37:19Z","closed_at":null,"body":"Next code:\r\n```javascript\r\n    private void makeImageThumbnail(final String imgFile) {\r\n        int width = ImageSize, height = ImageSize;\r\n        ImageRequest imageRequest = ImageRequestBuilder.newBuilderWithSource(Uri.parse(\"file:/\" + imgFile))\r\n                .setResizeOptions(new ResizeOptions(width, height))\r\n                .build();\r\n\r\n        ImagePipeline imagePipeline = Fresco.getImagePipeline();\r\n\r\n        DataSource<CloseableReference<PooledByteBuffer>>\r\n                dataSource = imagePipeline.fetchEncodedImage(imageRequest, getActivity());\r\n```\r\nthrows exception on last line:\r\n```\r\njava.lang.IllegalArgumentException\r\nat com.facebook.common.internal.Preconditions.checkArgument(Preconditions.java:108)\r\nat com.facebook.imagepipeline.core.ProducerSequenceFactory.validateEncodedImageRequest(ProducerSequenceFactory.java:119)\r\nat com.facebook.imagepipeline.core.ProducerSequenceFactory.getEncodedImageProducerSequence(ProducerSequenceFactory.java:93)\r\n```\r\n\r\nWhy aren't local files supported in fetchEncodedImage?\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/fresco/issues/comments/173772031","html_url":"https://github.com/facebook/fresco/issues/655#issuecomment-173772031","issue_url":"https://api.github.com/repos/facebook/fresco/issues/655","id":173772031,"user":{"login":"shawyou","id":15062764,"avatar_url":"https://avatars.githubusercontent.com/u/15062764?v=3","gravatar_id":"","url":"https://api.github.com/users/shawyou","html_url":"https://github.com/shawyou","followers_url":"https://api.github.com/users/shawyou/followers","following_url":"https://api.github.com/users/shawyou/following{/other_user}","gists_url":"https://api.github.com/users/shawyou/gists{/gist_id}","starred_url":"https://api.github.com/users/shawyou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawyou/subscriptions","organizations_url":"https://api.github.com/users/shawyou/orgs","repos_url":"https://api.github.com/users/shawyou/repos","events_url":"https://api.github.com/users/shawyou/events{/privacy}","received_events_url":"https://api.github.com/users/shawyou/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T01:37:19Z","updated_at":"2016-01-22T01:37:19Z","body":"Are there any news on this?"}}