{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4222","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4222/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4222/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4222/events","html_url":"https://github.com/tensorflow/tensorflow/pull/4222","id":175155397,"number":4222,"title":"Add decode_image Op","user":{"login":"samjabrahams","id":11607205,"avatar_url":"https://avatars.githubusercontent.com/u/11607205?v=3","gravatar_id":"","url":"https://api.github.com/users/samjabrahams","html_url":"https://github.com/samjabrahams","followers_url":"https://api.github.com/users/samjabrahams/followers","following_url":"https://api.github.com/users/samjabrahams/following{/other_user}","gists_url":"https://api.github.com/users/samjabrahams/gists{/gist_id}","starred_url":"https://api.github.com/users/samjabrahams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samjabrahams/subscriptions","organizations_url":"https://api.github.com/users/samjabrahams/orgs","repos_url":"https://api.github.com/users/samjabrahams/repos","events_url":"https://api.github.com/users/samjabrahams/events{/privacy}","received_events_url":"https://api.github.com/users/samjabrahams/received_events","type":"User","site_admin":false},"labels":[{"id":390482148,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review","name":"awaiting review","color":"fef2c0","default":false},{"id":300136587,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/cla:%20yes","name":"cla: yes","color":"009800","default":false}],"state":"open","locked":false,"assignee":{"login":"girving","id":70511,"avatar_url":"https://avatars.githubusercontent.com/u/70511?v=3","gravatar_id":"","url":"https://api.github.com/users/girving","html_url":"https://github.com/girving","followers_url":"https://api.github.com/users/girving/followers","following_url":"https://api.github.com/users/girving/following{/other_user}","gists_url":"https://api.github.com/users/girving/gists{/gist_id}","starred_url":"https://api.github.com/users/girving/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/girving/subscriptions","organizations_url":"https://api.github.com/users/girving/orgs","repos_url":"https://api.github.com/users/girving/repos","events_url":"https://api.github.com/users/girving/events{/privacy}","received_events_url":"https://api.github.com/users/girving/received_events","type":"User","site_admin":false},"assignees":[{"login":"girving","id":70511,"avatar_url":"https://avatars.githubusercontent.com/u/70511?v=3","gravatar_id":"","url":"https://api.github.com/users/girving","html_url":"https://github.com/girving","followers_url":"https://api.github.com/users/girving/followers","following_url":"https://api.github.com/users/girving/following{/other_user}","gists_url":"https://api.github.com/users/girving/gists{/gist_id}","starred_url":"https://api.github.com/users/girving/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/girving/subscriptions","organizations_url":"https://api.github.com/users/girving/orgs","repos_url":"https://api.github.com/users/girving/repos","events_url":"https://api.github.com/users/girving/events{/privacy}","received_events_url":"https://api.github.com/users/girving/received_events","type":"User","site_admin":false}],"milestone":null,"comments":34,"created_at":"2016-09-06T03:55:17Z","updated_at":"2016-11-30T23:20:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/4222","html_url":"https://github.com/tensorflow/tensorflow/pull/4222","diff_url":"https://github.com/tensorflow/tensorflow/pull/4222.diff","patch_url":"https://github.com/tensorflow/tensorflow/pull/4222.patch"},"body":"For #4009: Automatically detects whether the bytes passed in are JPEG, PNG, or neither and returns a `decode_jpeg` op, `decode_png` op, or ValueError respectively.\n\nBefore merging, need to hard-code the [`imghdr.what()`](https://docs.python.org/2/library/imghdr.html#imghdr.what) function, whose source is available as [pure Python](https://hg.python.org/cpython/file/2.7/Lib/imghdr.py)\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/264028350","html_url":"https://github.com/tensorflow/tensorflow/pull/4222#issuecomment-264028350","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4222","id":264028350,"user":{"login":"Mistobaan","id":112599,"avatar_url":"https://avatars.githubusercontent.com/u/112599?v=3","gravatar_id":"","url":"https://api.github.com/users/Mistobaan","html_url":"https://github.com/Mistobaan","followers_url":"https://api.github.com/users/Mistobaan/followers","following_url":"https://api.github.com/users/Mistobaan/following{/other_user}","gists_url":"https://api.github.com/users/Mistobaan/gists{/gist_id}","starred_url":"https://api.github.com/users/Mistobaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mistobaan/subscriptions","organizations_url":"https://api.github.com/users/Mistobaan/orgs","repos_url":"https://api.github.com/users/Mistobaan/repos","events_url":"https://api.github.com/users/Mistobaan/events{/privacy}","received_events_url":"https://api.github.com/users/Mistobaan/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T23:20:16Z","updated_at":"2016-11-30T23:20:16Z","body":"The fact that it returns different tensors shapes based on the  file format is not the 'usual' tensoflow way.\r\nCan we just return the first frame in case of a gif image instead? If the user *really* wants the whole gif sequence then they can use the specialized version. This function will be very useful when you have mixed images formats in your data folder.  "}}
{"actor":{"display_login":"Mistobaan"}}