{"action":"opened","issue":{"url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1369","labels_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1369/labels{/name}","comments_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1369/comments","events_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1369/events","html_url":"https://github.com/scikit-image/scikit-image/issues/1369","id":56488003,"number":1369,"title":"Apparent error when trying to load an image from a URL?","user":{"login":"jni","id":492549,"avatar_url":"https://avatars.githubusercontent.com/u/492549?v=3","gravatar_id":"","url":"https://api.github.com/users/jni","html_url":"https://github.com/jni","followers_url":"https://api.github.com/users/jni/followers","following_url":"https://api.github.com/users/jni/following{/other_user}","gists_url":"https://api.github.com/users/jni/gists{/gist_id}","starred_url":"https://api.github.com/users/jni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jni/subscriptions","organizations_url":"https://api.github.com/users/jni/orgs","repos_url":"https://api.github.com/users/jni/repos","events_url":"https://api.github.com/users/jni/events{/privacy}","received_events_url":"https://api.github.com/users/jni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-04T06:55:10Z","updated_at":"2015-02-04T06:55:10Z","closed_at":null,"body":"Haven't done any digging on this but am upset enough that it doesn't work out of the box to post it here. =P\r\n\r\n```python\r\nfrom skimage import io\r\n\r\ncoins = io.imread('https://github.com/scikit-image/scikit-image/blob/v0.10.1/skimage/data/coins.png')\r\nprint(type(coins), coins.shape, coins.dtype)\r\nplt.imshow(coins)\r\n```\r\n\r\nResults in:\r\n\r\n```python\r\n---------------------------------------------------------------------------\r\nOSError                                   Traceback (most recent call last)\r\n<ipython-input-3-9ac4ddbe14da> in <module>()\r\n      1 from skimage import io\r\n      2 \r\n----> 3 coins = io.imread('https://github.com/scikit-image/scikit-image/blob/v0.10.1/skimage/data/coins.png')\r\n      4 print(type(coins), coins.shape, coins.dtype)\r\n      5 plt.imshow(coins)\r\n\r\n/Users/nuneziglesiasj/anaconda/envs/py3k/lib/python3.4/site-packages/skimage/io/_io.py in imread(fname, as_grey, plugin, flatten, **plugin_args)\r\n     95 \r\n     96     with file_or_url_context(fname) as fname:\r\n---> 97         img = call_plugin('imread', fname, plugin=plugin, **plugin_args)\r\n     98 \r\n     99     if as_grey and getattr(img, 'ndim', 0) >= 3:\r\n\r\n/Users/nuneziglesiasj/anaconda/envs/py3k/lib/python3.4/site-packages/skimage/io/manage_plugins.py in call_plugin(kind, *args, **kwargs)\r\n    207                                (plugin, kind))\r\n    208 \r\n--> 209     return func(*args, **kwargs)\r\n    210 \r\n    211 \r\n\r\n/Users/nuneziglesiasj/anaconda/envs/py3k/lib/python3.4/site-packages/skimage/io/_plugins/pil_plugin.py in imread(fname, dtype)\r\n     21 \r\n     22     \"\"\"\r\n---> 23     im = Image.open(fname)\r\n     24     if im.mode == 'P':\r\n     25         if _palette_is_grayscale(im):\r\n\r\n/Users/nuneziglesiasj/anaconda/envs/py3k/lib/python3.4/site-packages/PIL/Image.py in open(fp, mode)\r\n   2254 \r\n   2255     raise IOError(\"cannot identify image file %r\"\r\n-> 2256                   % (filename if filename else fp))\r\n   2257 \r\n   2258 \r\n\r\nOSError: cannot identify image file '/var/folders/25/dnnk9t55369c3s4g4_3zdq4h0000gn/T/tmpbz7et_58.png'\r\n```"}}